diff options
| author | Xu Rao <raoxu@uniontech.com> | 2026-08-12 17:46:32 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-08-14 10:49:43 +0900 |
| commit | 10ff55ff552b3bf1dadba03fcc430ea205fa2761 (patch) | |
| tree | 638960a11655b077534e352b697e71204ba77110 /include | |
| parent | 0dd68b5d01d022fc9c5e71c82a82b0a94d3d0671 (diff) | |
| download | linux-10ff55ff552b3bf1dadba03fcc430ea205fa2761.tar.gz linux-10ff55ff552b3bf1dadba03fcc430ea205fa2761.zip | |
usb: typec: hd3ss3220: fix VBUS regulator error message
hd3ss3220_regulator_control() enables the VBUS regulator when @on is
true and disables it when @on is false. However, its error message uses
the opposite operation name, so an enable failure is reported as a
disable failure and vice versa.
Print the operation that was actually attempted. Reporting the opposite
regulator operation on failures can mislead debugging of VBUS problems.
Fixes: 27fbc19e52b9 ("usb: typec: hd3ss3220: Enable VBUS based on role state")
Cc: stable@vger.kernel.org
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Xu Rao <raoxu@uniontech.com>
Link: https://patch.msgid.link/7A42A287B2B588D0+20260812094632.348581-1-raoxu@uniontech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
