]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6a1d91f23b64102015f5cf655f7e7796ad19b74
tree60097b55f40ca2436f16293b5da29647575a75ba
parent4ef15953cec81a15dc3e27a633353a116b50844f
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