summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorVibhor Goel <vibhor1102@gmail.com>2026-10-03 22:10:19 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-10-12 19:55:53 +0200
commit029d11df81278d99d8a0441ff45a5dfdfce0168b (patch)
tree10ced052de3b68837b4928663451ca689285edb4 /include/uapi/linux
parent24a19b953e2a3d0ea5a8c4951a0ab8f32720c907 (diff)
downloadlinux-next-029d11df81278d99d8a0441ff45a5dfdfce0168b.tar.gz
linux-next-029d11df81278d99d8a0441ff45a5dfdfce0168b.zip
ACPI: dock: Retry probing battery docks after hotplug
On a ThinkPad T480 booted with the removable battery absent, reinserting that battery can leave BAT1 missing from /sys/class/power_supply even after firmware sends an ACPI add notification. The battery dock platform device already exists, but its driver did not bind while the battery was absent. During hotplug, acpi_bus_scan() updates the ACPI device and attempts to attach it on the ACPI bus. acpi_create_platform_device() does not create another platform device because the existing physical node is still associated with the ACPI device. Consequently, the existing platform device remains unbound. Retry probing the battery dock platform device after hotplug_dock_devices() has refreshed the ACPI state. Restrict this to battery docks. If the platform device is already bound, device_initial_probe() leaves that binding in place. Signed-off-by: Vibhor Goel <vibhor1102@gmail.com> [ rjw: Add empty code line after a conditional ] Link: https://patch.msgid.link/20261003164019.11195-1-vibhor1102@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions