summaryrefslogtreecommitdiffstats
path: root/drivers/usb/wusbcore
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-06-25 00:08:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-28 12:36:06 +0200
commit8982c8440f564549261fb80ca3fe1e3266635936 (patch)
tree4931542eab4751ce3aead8b98914ec17b59432e5 /drivers/usb/wusbcore
parentusb: usblp: use irqsave() in USB's complete callback (diff)
downloadlinux-8982c8440f564549261fb80ca3fe1e3266635936.tar.xz
linux-8982c8440f564549261fb80ca3fe1e3266635936.zip
usb: usb-skeleton: use irqsave() in USB's complete callback
The USB completion callback does not disable interrupts while acquiring the lock. We want to remove the local_irq_disable() invocation from __usb_hcd_giveback_urb() and therefore it is required for the callback handler to disable the interrupts while acquiring the lock. The callback may be invoked either in IRQ or BH context depending on the USB host controller. Use the _irqsave() variant of the locking primitives. Signed-off-by: John Ogness <john.ogness@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/wusbcore')
0 files changed, 0 insertions, 0 deletions