summaryrefslogtreecommitdiff
path: root/rust/helpers/usb.c
diff options
context:
space:
mode:
authorVivek Pernamitta <quic_vpernami@quicinc.com>2025-09-12 15:48:08 +0300
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>2025-09-19 08:53:08 +0300
commit12543f4405887da9f3e401e708ca0ff796a7b866 (patch)
treecdd5b93be38ca957bc13ed8c3a155e77fa1a7d79 /rust/helpers/usb.c
parentfd6e0509d0e86059f9a1c25b0b91ef5d0021701f (diff)
downloadlinux-12543f4405887da9f3e401e708ca0ff796a7b866.tar.xz
bus: mhi: host: pci_generic: Reset QDU100 while the MHI driver is removed
So, When the MHI driver is removed from the host side, it is essential to ensure a clean and stable recovery of the device. This commit introduces the following steps to achieve that: 1. Disable SR-IOV for any SR-IOV-enabled devices on the Physical Function. 2. Perform a SOC_RESET on the PF to fully reset the device. Disabling SR-IOV ensures all Virtual Functions (VFs) are properly shutdown, preventing issues during the reset process. The SOC_RESET guarantees that the PF is restored to a known good state. If soc_reset is not performed device at driver remove, device will be stuck in mission mode state and subsequent driver insert/power_up will not proceed further. Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com> [mani: reworded subject] Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Link: https://patch.msgid.link/20250912-uevent_vdev_next-20250911-v4-4-fa2f6ccd301b@quicinc.com
Diffstat (limited to 'rust/helpers/usb.c')
0 files changed, 0 insertions, 0 deletions