aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPrashant Malani <[email protected]>2023-01-04 06:08:44 +0000
committerPrashant Malani <[email protected]>2023-01-10 20:47:32 +0000
commitef9c00dbd383d2b68207cc996caa05c25c7894f5 (patch)
tree3e1d25f55d40dff69503e333b1c7adefff39f8aa /tools/perf/scripts/python
parent40a9b13a09ef2ec207fec1b328ed796d08e20e54 (diff)
platform/chrome: cros_typec_switch: Use fwnode* prop check
Using device_property_present() multiple times on an ACPI device leads to kernel panics on Chromebook systems. This happens when there is > 1 boolean property in an ACPI device which is created dynamically by the BIOS as part of SSDT[1] on Chromebook systems Since fwnode_* can handle simple device tree properties equally well, switch to using the fwnode_property_present() function version. This will avoid panics and make the usage consistent when we introduce a check for the 2nd property in a subsequent patch. [1] https://wiki.osdev.org/SSDT Signed-off-by: Prashant Malani <[email protected]> Reviewed-by: Benson Leung <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions