summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-10-15 21:24:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-03 17:04:27 +0100
commit0deb9532cafb37a0775e8e853fca0272eb2bee0f (patch)
treedd20bb55ff51d3fb66a1d6fa3844304f24da03f8 /scripts/stackusage
parent77e1eb750f4172f0718a6d770798b0ab9eeeb8d6 (diff)
ACPI / bus: Leave modalias empty for devices which are not present
[ Upstream commit 10809bb976648ac58194a629e3d7af99e7400297 ] Most Bay and Cherry Trail devices use a generic DSDT with all possible peripheral devices present in the DSDT, with their _STA returning 0x00 or 0x0f based on AML variables which describe what is actually present on the board. Since ACPI device objects with a 0x00 status (not present) still get an entry under /sys/bus/acpi/devices, and those entry had an acpi:PNPID modalias, userspace would end up loading modules for non present hardware. This commit fixes this by leaving the modalias empty for non present devices. This results in 10 modules less being loaded with a generic distro kernel config on my Cherry Trail test-device (a GPD pocket). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions