Commit 77741f2a authored by Wesley Cheng's avatar Wesley Cheng Committed by Todd Kjos
Browse files

FROMGIT: usb: host: xhci-plat: Set XHCI_STATE_REMOVING before resuming XHCI HC



There are situations during the xhci_resume() sequence, which allows for
re-initializing of the XHCI HC.  However, in case the HCD is being removed,
these operations may not be needed.  Set the removal state before issuing
the runtime PM get on the XHCI device, so that the XHCI resume routine will
know when to bypass the re-init logic.

Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
Message-ID: <20230531222719.14143-3-quic_wcheng@quicinc.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 329755736
Bug: 285037166
(cherry picked from commit 18af4b5c https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git

 usb-testing)
Change-Id: I59ca78320bb2705c8aed8a9823de5a955ff97b0c
Signed-off-by: default avatarWesley Cheng <quic_wcheng@quicinc.com>
(cherry picked from commit a39af621)
parent 3dad6bbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment