Commit 8c9d9d8e authored by Wesley Cheng's avatar Wesley Cheng Committed by Todd Kjos
Browse files

FROMGIT: usb: gadget: f_mass_storage: Disable eps during disconnect



When receiving a disconnect event from the UDC, the mass storage
function driver currently runs the handle_exception() routine
asynchronously.  For UDCs that support runtime PM, there is a
possibility the UDC is already suspended by the time the
do_set_interface() is executed.  This can lead to HW register access
while the UDC is already suspended.

Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>

Bug: 204343836
(cherry picked from commit 9fff139a
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git

 usb-testing)
Change-Id: I6c8011baddf02d6b0eadb5934416bc24b8a93f4a
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
parent cde1d53c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment