diff options
| author | Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> | 2025-10-14 19:06:45 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-22 11:58:31 +0300 |
| commit | f83cb615cb7a615f9c15787f914a8eee1c6e93d4 (patch) | |
| tree | aa6e85332de9c847bf1eadf01e2b97ca1993a2cd /include/linux/usb | |
| parent | 26c3af0cd8b44c591f27be373266765a8606ad69 (diff) | |
| download | linux-f83cb615cb7a615f9c15787f914a8eee1c6e93d4.tar.xz | |
usb: typec: ps883x: Cache register settings, not Type-C mode
Certain Type-C mode configurations may result in identical settings of
the PS8830. Check if the latter have changed instead of assuming
there's always a difference.
ps883x_set() is changed to accept a typec_retimer_state in preparation
for more work and the ps883x_sw_set() (which only handles orientation
switching) is changed to use regmap_assign_bits(), which itself does
not perform any writes if the desired value is already set.
Reviewed-by: Jack Pham <jack.pham@oss.qualcomm.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20251014-topic-ps883x_usb4-v1-1-e6adb1a4296e@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
0 files changed, 0 insertions, 0 deletions
