Commit e56b71d
committed
NVIDIA: SAUCE: MEDIATEK: pinctrl: mediatek: Add eint hotplug driver
This driver is used to manage PCIe link for NVIDIA ConnectX-7 (CX7)
hot-plug/unplug on DGX Spark. We need to disable PCIe link when
CX7 cable plug out happens and enable pcie link when
CX7 cable plug in happens.
It also creates a sysfs entry to emulate cable plug in/out
behavior as below:
plug in - echo 1 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin
plug out - echo 0 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin
We also implement uevent to notify user-space applications when a
cable is plugged in or removed. Below are the details of our process:
* cable plug-in:
report plug-in uevent (driver)
enable pcie link (application)
rescan devices (application)
* cable removal:
report removal uevent (driver)
remove devices (application)
disable pcie link (application)
Signed-off-by: Vaibhav Vyas <vavyas@nvidia.com>
Signed-off-by: Jerry.Guo <jerry.guo@mediatek.com>
Signed-off-by: Yenchia Chen <yenchia.chen@mediatek.com>
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Signed-off-by: Abhishek Sahu <abhsahu@nvidia.com>
Signed-off-by: Surabhi Chythanya Kumar <schythanyaku@nvidia.com>1 parent be01c90 commit e56b71d
File tree
4 files changed
+970
-0
lines changed- debian.nvidia-6.14/config
- drivers/pinctrl/mediatek
4 files changed
+970
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
15 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments