Skip to contentSkip to conversation

USB: cdc-wdm: don't enable interrupts in USB-giveback

PATCH Superseded Oliver Neukum 1 participant 1 message Jun 13, 2018 USB

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 USB: cdc-wdm: don't enable interrupts in USB-giveback

Quoted 5 lines · Sebastian Andrzej Siewior

The function service_outstanding_interrupt() will unconditionally enable interrupts during unlock and invoke usb_submit_urb() with GFP_KERNEL. If the HCD completes in BH (like ehci does) then the context remains atomic due local_bh_disable() and enabling interrupts does not change this.

Hi,

I am just looking at your patch and I am wondering why wdm_in_callback() won't just call service_outstanding_interrupt() again and again? OK, maybe I am dense and it may well be present now, but it just looks to me that way.

Regards
Oliver
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html