Revert "usb: typec: mux: Remove requirement for the "orientation-switch" device property"
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 2 Jun 2021 11:22:53 +0000 (14:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Jun 2021 14:40:43 +0000 (16:40 +0200)
commit7f7d0afe1d479990b712ecb494257dcd706a8016
tree5e53d0ae190abd2335973eafeff2a97fd9aa2899
parentaa10fab0f859ef86e998ee1cdaa89fc8e542e2c9
Revert "usb: typec: mux: Remove requirement for the "orientation-switch" device property"

This reverts commit acad3e9c7250c5fd20d9778a163f2adc95de38f5.

The device property that can be used to identify the device
class/type of the remote port parent when device graph is
used is always needed after all. Without it there is no real
way to know is the requested connection actually described
in the device graph or not.

If the connection is described in the device graph but the
device instance is still missing for what ever reason, the
code defers probe for now.

Adding a comment to the code to explain this.

Reviewed-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210602112253.70200-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux.c