summaryrefslogtreecommitdiff
path: root/net/ieee802154
diff options
context:
space:
mode:
authorKyle Tso <kyletso@google.com>2023-12-16 18:46:30 +0800
committerParth Pancholi <parth.pancholi@toradex.com>2024-09-05 09:21:40 +0200
commit8b28dd2adf722e0d12e0d07b80625a2b75ca1a7a (patch)
treec9ad1d123ca6bf2a1752c61e478d5d5d1054f9a1 /net/ieee802154
parent5cbf0cf0bf5ca9974c54957f44ddaee14cec69c6 (diff)
usb: typec: tcpm: Support multiple capabilities
Refactor tcpm_fw_get_caps to support the multiple pd capabilities got from fwnode. For backward compatibility, the original single capability is still applicable. The fetched data is stored in the newly defined structure "pd_data" and there is an array "pd_list" to store the pointers to them. A dedicated array "pds" is used to store the handles of the registered usb_power_delivery instances. Also implement the .pd_get and .pd_set ops which are introduced in commit a7cff92f0635 ("usb: typec: USB Power Delivery helpers for ports and partners"). Once the .pd_set is called, the current capability will be updated and state machine will re-negotiate the power contract if possible. Upstream-Status: Backport [cd099cde4ed264403b434d8344994f97ac2a4349] Signed-off-by: Kyle Tso <kyletso@google.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20231216104630.2720818-3-kyletso@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Parth Pancholi <parth.pancholi@toradex.com>
Diffstat (limited to 'net/ieee802154')
0 files changed, 0 insertions, 0 deletions