usb: typec: tcpm: Don't block probing of consumers of "connector" nodes
authorSaravana Kannan <saravanak@google.com>
Thu, 6 May 2021 00:44:22 +0000 (17:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 14:22:27 +0000 (16:22 +0200)
commit28ec344bb8911bb0d4910456b22ba0dd4f662521
treea8a2ec137b0210c956bdf37bf631194d9f6f97f6
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
usb: typec: tcpm: Don't block probing of consumers of "connector" nodes

fw_devlink expects DT device nodes with "compatible" property to have
struct devices created for them. Since the connector node might not be
populated as a device, mark it as such so that fw_devlink knows not to
wait on this fwnode being populated as a struct device.

Without this patch, USB functionality can be broken on some boards.

Fixes: f7514a663016 ("of: property: fw_devlink: Add support for remote-endpoint")
Reported-by: John Stultz <john.stultz@linaro.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20210506004423.345199-1-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
drivers/usb/typec/tcpm/tcpm.c
include/linux/fwnode.h