linux-kernelorg-stable/drivers
Won Chung 6423d29510 driver core: Add sysfs support for physical location of a device
When ACPI table includes _PLD fields for a device, create a new
directory (physical_location) in sysfs to share _PLD fields.

Currently without PLD information, when there are multiple of same
devices, it is hard to distinguish which device corresponds to which
physical device at which location. For example, when there are two Type
C connectors, it is hard to find out which connector corresponds to the
Type C port on the left panel versus the Type C port on the right panel.
With PLD information provided, we can determine which specific device at
which location is doing what.

_PLD output includes much more fields, but only generic fields are added
and exposed to sysfs, so that non-ACPI devices can also support it in
the future. The minimal generic fields needed for locating a device are
the following.
- panel
- vertical_position
- horizontal_position
- dock
- lid

Signed-off-by: Won Chung <wonchung@google.com>
Link: https://lore.kernel.org/r/20220314195458.271430-1-wonchung@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-27 09:51:57 +02:00
..
accessibility
acpi
amba
android
ata
atm
auxdisplay
base driver core: Add sysfs support for physical location of a device 2022-04-27 09:51:57 +02:00
bcma
block
bluetooth
bus fsl-mc: Use driver_set_override() instead of open-coding 2022-04-22 17:13:53 +02:00
cdrom
char
clk clk: imx: scu: Fix kfree() of static memory on setting driver_override 2022-04-22 17:13:54 +02:00
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio
gpu
greybus
hid
hsi
hv hv: Use driver_set_override() instead of open-coding 2022-04-22 17:13:53 +02:00
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci PCI: Use driver_set_override() instead of open-coding 2022-04-22 17:13:54 +02:00
pcmcia
peci
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg rpmsg: Fix kfree() of static memory on setting driver_override 2022-04-22 17:13:54 +02:00
rtc
s390 s390/cio: Use driver_set_override() instead of open-coding 2022-04-22 17:13:54 +02:00
sbus
scsi
sh
siox
slimbus slimbus: qcom-ngd: Fix kfree() of static memory on setting driver_override 2022-04-22 17:13:54 +02:00
soc
soundwire
spi spi: Use helper for safer setting of driver_override 2022-04-22 17:13:54 +02:00
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
uio
usb
vdpa vdpa: Use helper for safer setting of driver_override 2022-04-22 17:13:54 +02:00
vfio
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile