All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Disable mass storage endpoints during disconnect
@ 2021-10-27  2:50 Wesley Cheng
  2021-10-27  2:50 ` [PATCH v2 1/2] usb: gadget: udc: core: Revise comments for usb_ep_disable() Wesley Cheng
  2021-10-27  2:50 ` [PATCH v2 2/2] usb: gadget: f_mass_storage: Disable eps during disconnect Wesley Cheng
  0 siblings, 2 replies; 5+ messages in thread
From: Wesley Cheng @ 2021-10-27  2:50 UTC (permalink / raw)
  To: balbi, gregkh; +Cc: linux-kernel, linux-usb, jackp, Wesley Cheng

Changes in v2:
 - Revised comments for usb_ep_disable() as it should be safe to be
   executed in atomic contexts as well.  Other FDs are currently
   calling ep disable during the disconnect event as well.

This series calls the usb_ep_disable() API directly from fsg_disable()
as there is a possibility that UDCs that support runtime PM may
already be in a suspended state, leading to HW access while resources
are disabled.

Wesley Cheng (2):
  usb: gadget: udc: core: Revise comments for usb_ep_disable()
  usb: gadget: f_mass_storage: Disable eps during disconnect

 drivers/usb/gadget/function/f_mass_storage.c | 10 ++++++++++
 drivers/usb/gadget/udc/core.c                |  2 --
 2 files changed, 10 insertions(+), 2 deletions(-)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-27 19:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27  2:50 [PATCH v2 0/2] Disable mass storage endpoints during disconnect Wesley Cheng
2021-10-27  2:50 ` [PATCH v2 1/2] usb: gadget: udc: core: Revise comments for usb_ep_disable() Wesley Cheng
2021-10-27 14:24   ` Alan Stern
2021-10-27 19:58     ` Wesley Cheng
2021-10-27  2:50 ` [PATCH v2 2/2] usb: gadget: f_mass_storage: Disable eps during disconnect Wesley Cheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.