platform/chrome: cros_ec_typec: Make sure the USB role switch has PLD
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 13 Feb 2024 13:00:18 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:02:42 +0000 (17:02 +0100)
commit56403220577b95276b8080e8480adc7e1f9d43ec
tree3c5e6fa1a95bb1692ce028f9d169a825cfbe6bef
parent9a270ec7bfb0b928ff7c11a4b1f8a026cd20e6b4
platform/chrome: cros_ec_typec: Make sure the USB role switch has PLD

The USB role switch does not always have the _PLD (Physical
Location of Device) in ACPI tables. If it's missing,
assigning the PLD hash of the port to the switch. That
should guarantee that the USB Type-C port mapping code is
always able to find the connection between the two (the port
and the switch).

Tested-by: Uday Bhat <uday.m.bhat@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240213130018.3029991-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/chrome/cros_ec_typec.c