usb: typec: fusb302: Always provide fwnode for the port
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 14 Aug 2019 13:24:19 +0000 (16:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2019 19:30:12 +0000 (21:30 +0200)
commit8f6244055bd33695ce28f6b9b454fc1ae05bcd9c
tree60097b55f40ca2436f16293b5da29647575a75ba
parentc7316315a22164ee09059b8e148b52920a2521de
usb: typec: fusb302: Always provide fwnode for the port

By registering a software fwnode for the port when the
firmware does not supply one, we can always provide tcpm the
connector capabilities by using the common USB connector
device properties instead of using tcpc_config platform data.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190814132419.39759-4-heikki.krogerus@linux.intel.com
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/fusb302.c