]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: hd3ss3220: support configuring role preference based on fwnode property...
authorOliver Facklam <oliver.facklam@zuehlke.com>
Wed, 11 Dec 2024 16:32:47 +0000 (17:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Dec 2024 07:56:04 +0000 (08:56 +0100)
commit6fdc943251865979c995798b6b246ffa8381f2dc
treea2b3bec722dda160b6dad08c3e0bb7d86a597bca
parent5d2c32d506d89a4f657b44b74c61b8f74ba1a23a
usb: typec: hd3ss3220: support configuring role preference based on fwnode property and typec_operation

The TI HD3SS3220 Type-C controller supports configuring
its role preference when operating as a dual-role port
through the SOURCE_PREF field of the General Control Register.

The previous driver behavior was to set the role preference
based on the dr_set typec_operation.
However, the controller does not support swapping the data role
on an active connection due to its lack of Power Delivery support.

Remove previous dr_set typec_operation, and support setting
the role preference based on the corresponding fwnode property,
as well as the try_role typec_operation.

Signed-off-by: Oliver Facklam <oliver.facklam@zuehlke.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20241211-usb-typec-controller-enhancements-v3-3-e4bc1b6e1441@zuehlke.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/hd3ss3220.c