diff options
| author | Sven Peter <sven@kernel.org> | 2025-09-20 15:28:03 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-13 10:11:50 +0300 |
| commit | 1c1b2a247c384179fcc97b63bb0c17e112217d7a (patch) | |
| tree | eff272e3fad7296f8cd12052cda8313263eab4ae /include/linux | |
| parent | 0e61e71538d2d52971a90b02c3abd43816ad8c70 (diff) | |
| download | linux-1c1b2a247c384179fcc97b63bb0c17e112217d7a.tar.xz | |
usb: typec: tipd: Fix error handling in cd321x_read_data_status
Right now cd321x_read_data_status always returns true even if it
encounters any errors: tps6598x_read_data_status returns a boolean but
we treated it as an errno and then we have a bunch of dev_errs in case
tps6598x_block_read fails but just continue along and return true.
Fix that to correctly report errors to the callee.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-usb/aMvWJo3IkClmFoAA@stanley.mountain/
Signed-off-by: Sven Peter <sven@kernel.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250920-tipd-fix-v1-1-49886d4f081d@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
