Re: [PATCH 5/5] usb_debug: EXPERIMENTAL - poll hcd device toforcewrites

From: Alan Stern
Date: Thu May 07 2009 - 10:02:35 EST


On Wed, 6 May 2009, Greg KH wrote:

> > If I want to printk from the nmi_watchdog out to this device, am I going
> > to get anything if the write is not synchronous, because in theory the
> > hcd device is never going to get accessed again?
>
> No you are not, sorry, USB doesn't work without interrupts in this kind
> of mode at all.

This really is an interesting point. Provided the hardware is
functioning correctly and enough free memory is available, Jason's
polling approach would indeed allow USB to work without interrupts --
to a limited extent, which is all one needs for console support.
Especially when the system has just crashed and you want to see that
final "oops" message...

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/