Commit 12543f4
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 <[email protected]>
[mani: reworded subject]
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Link: https://patch.msgid.link/[email protected]1 parent fd6e050 commit 12543f4
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
| 305 | + | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| |||
1027 | 1030 | | |
1028 | 1031 | | |
1029 | 1032 | | |
| 1033 | + | |
1030 | 1034 | | |
1031 | 1035 | | |
1032 | 1036 | | |
| |||
1332 | 1336 | | |
1333 | 1337 | | |
1334 | 1338 | | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
1335 | 1342 | | |
1336 | 1343 | | |
1337 | 1344 | | |
| |||
1404 | 1411 | | |
1405 | 1412 | | |
1406 | 1413 | | |
| 1414 | + | |
| 1415 | + | |
1407 | 1416 | | |
1408 | 1417 | | |
1409 | 1418 | | |
| |||
1417 | 1426 | | |
1418 | 1427 | | |
1419 | 1428 | | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1420 | 1432 | | |
1421 | 1433 | | |
1422 | 1434 | | |
| |||
0 commit comments