Commit 7446284
spi: cadence-quadspi: Implement refcount to handle unbind during busy
driver support indirect read and indirect write operation with
assumption no force device removal(unbind) operation. However
force device removal(removal) is still available to root superuser.
Unbinding driver during operation causes kernel crash. This changes
ensure driver able to handle such operation for indirect read and
indirect write by implementing refcount to track attached devices
to the controller and gracefully wait and until attached devices
remove operation completed before proceed with removal operation.
Signed-off-by: Khairul Anuar Romli <[email protected]>
Reviewed-by: Matthew Gerlach <[email protected]>
Reviewed-by: Niravkumar L Rabara <[email protected]>
Link: https://patch.msgid.link/8704fd6bd2ff4d37bba4a0eacf5eba3ba001079e.1756168074.git.khairul.anuar.romli@altera.com
Signed-off-by: Mark Brown <[email protected]>1 parent 89e7353 commit 7446284
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
735 | 737 | | |
736 | 738 | | |
737 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
738 | 743 | | |
739 | 744 | | |
740 | 745 | | |
| |||
1071 | 1076 | | |
1072 | 1077 | | |
1073 | 1078 | | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1074 | 1082 | | |
1075 | 1083 | | |
1076 | 1084 | | |
| |||
1461 | 1469 | | |
1462 | 1470 | | |
1463 | 1471 | | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1464 | 1475 | | |
1465 | 1476 | | |
1466 | 1477 | | |
1467 | 1478 | | |
1468 | 1479 | | |
1469 | 1480 | | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
1470 | 1492 | | |
1471 | 1493 | | |
1472 | 1494 | | |
1473 | 1495 | | |
1474 | 1496 | | |
1475 | 1497 | | |
1476 | 1498 | | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
1477 | 1502 | | |
1478 | 1503 | | |
1479 | 1504 | | |
| |||
1925 | 1950 | | |
1926 | 1951 | | |
1927 | 1952 | | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
1928 | 1956 | | |
1929 | 1957 | | |
1930 | 1958 | | |
| |||
1987 | 2015 | | |
1988 | 2016 | | |
1989 | 2017 | | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
1990 | 2023 | | |
1991 | 2024 | | |
1992 | 2025 | | |
| |||
0 commit comments