mbox series

[linux,dev-5.15,0/2] spi: fsi: Fix spurious timeout

Message ID 20220525170240.33918-1-eajames@linux.ibm.com
Headers show
Series spi: fsi: Fix spurious timeout | expand

Message

Eddie James May 25, 2022, 5:02 p.m. UTC
The driver may return a timeout error even if the status register
indicates that the transfer may proceed. Fix this by restructuring
the polling loop.
Also include a patch to display the error return code when failing
to transfer one message, which would have been very helpful in
debugging this issue.

Eddie James (2):
  spi: fsi: Fix spurious timeout
  spi: core: Display return code when failing to transfer message

 drivers/spi/spi-fsi.c | 12 ++++++------
 drivers/spi/spi.c     |  3 ++-
 2 files changed, 8 insertions(+), 7 deletions(-)

Comments

Joel Stanley May 27, 2022, 7:24 a.m. UTC | #1
On Wed, 25 May 2022 at 17:02, Eddie James <eajames@linux.ibm.com> wrote:
>
> The driver may return a timeout error even if the status register
> indicates that the transfer may proceed. Fix this by restructuring
> the polling loop.
> Also include a patch to display the error return code when failing
> to transfer one message, which would have been very helpful in
> debugging this issue.
>
> Eddie James (2):
>   spi: fsi: Fix spurious timeout
>   spi: core: Display return code when failing to transfer message

Applied, thanks.

>
>  drivers/spi/spi-fsi.c | 12 ++++++------
>  drivers/spi/spi.c     |  3 ++-
>  2 files changed, 8 insertions(+), 7 deletions(-)
>
> --
> 2.27.0
>