Commit 772ce13
committed
NVIDIA: VR: SAUCE: firmware: smccc: lfa: Emit a uevent on inventory updates
Firmware image directories are plain kobjects under /sys/firmware.
udev coldplug does not enumerate them as devices, so rules matching
the per-image LFA kobjects do not run reliably at boot.
LFA already creates the arm-lfa faux device. Emit KOBJ_CHANGE from
that device after the firmware image tree is refreshed, so user space
can use the existing driver-core device as the notification anchor
for runtime inventory updates. The same udev rule then also covers
coldplug via the device add event, e.g.:
ACTION=="add|change", SUBSYSTEM=="faux", KERNEL=="arm-lfa", \
RUN+="/usr/local/sbin/lfa-auto-activate"
Signed-off-by: Nirmoy Das <nirmoyd@nvidia.com>1 parent 01cd0f8 commit 772ce13
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
244 | 260 | | |
245 | 261 | | |
246 | 262 | | |
| |||
967 | 983 | | |
968 | 984 | | |
969 | 985 | | |
970 | | - | |
971 | 986 | | |
972 | 987 | | |
973 | 988 | | |
| |||
0 commit comments