diff options
| author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2024-03-29 08:15:37 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-04 17:07:03 +0200 |
| commit | 41e1cd1401fcd1f1ae9e47574af2d9fc44a870b3 (patch) | |
| tree | 19eb85db8c7e888515b21e030861e4b2dd65e117 /tools/perf/scripts/python/sctop.py | |
| parent | c0f66d78f42353d38b9608c05f211cf0773d93ac (diff) | |
usb: typec: ucsi: simplify partner's PD caps registration
In a way similar to the previous commit, move
typec_partner_set_usb_power_delivery() to be called after reading the PD
caps. This also removes calls to
usb_power_delivery_unregister_capabilities() from the error path. Keep
all capabilities registered until they are cleared by
ucsi_unregister_partner_pdos().
Fixes: b04e1747fbcc ("usb: typec: ucsi: Register USB Power Delivery Capabilities")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240329-qcom-ucsi-fixes-v2-5-0f5d37ed04db@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
