[linux-usb-devel] ehci calling put_device from irq handler

2006-01-18 Thread Greg KH
We can not call put_device() from irq context :( I added a "might_sleep()" to the driver core and get the following from the ehci driver. Any thoughts? thanks, greg k-h Debug: sleeping function called from invalid context at drivers/base/core.c:343 in_atomic():1, irqs_disabled():0 [] __might

Re: [linux-usb-devel] ehci calling put_device from irq handler

2006-01-18 Thread David Brownell
On Wednesday 18 January 2006 1:54 pm, Alan Stern wrote: > On Wed, 18 Jan 2006, Greg KH wrote: > > > We can not call put_device() from irq context :( > > > > I added a "might_sleep()" to the driver core and get the following from > > the ehci driver. Any thoughts? > > In principle the put_device

Re: [linux-usb-devel] ehci calling put_device from irq handler

2006-01-18 Thread Greg KH
On Wed, Jan 18, 2006 at 04:54:04PM -0500, Alan Stern wrote: > On Wed, 18 Jan 2006, Greg KH wrote: > > > We can not call put_device() from irq context :( > > > > I added a "might_sleep()" to the driver core and get the following from > > the ehci driver. Any thoughts? > > In principle the put_de

Re: [linux-usb-devel] ehci calling put_device from irq handler

2006-01-18 Thread Alan Stern
On Wed, 18 Jan 2006, Greg KH wrote: > We can not call put_device() from irq context :( > > I added a "might_sleep()" to the driver core and get the following from > the ehci driver. Any thoughts? In principle the put_device and corresponding get_device calls aren't needed. We don't release a u