aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2023-02-15 14:01:28 +0100
committerMark Brown <[email protected]>2023-02-15 16:07:53 +0000
commite6a0b671880207566e1ece983bf989dde60bc1d7 (patch)
tree393ff68a9bca2c5efe90cdb90b203f22c7c25565 /drivers/usb/cdns3/cdns3-debug.h
parent1dd46599f83ac5323a175d32955b1270e95cd11b (diff)
spi: synquacer: Fix timeout handling in synquacer_spi_transfer_one()
wait_for_completion_timeout() never returns a <0 value. It returns either on timeout or a positive value (at least 1, or number of jiffies left till timeout) So, fix the error handling path and return -ETIMEDOUT should a timeout occur. Fixes: b0823ee35cf9 ("spi: Add spi driver for Socionext SynQuacer platform") Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Jassi Brar <[email protected]> Link: https://lore.kernel.org/r/c2040bf3cfa201fd8890cfab14fa5a701ffeca14.1676466072.git.christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions