Re: [PATCH] arm: atmel_qspi: fix race condition in transfer completion check

2025-07-21 Thread Eugen Hristev
On 7/20/25 14:48, Ramin Moussavi wrote: > Hello Eugen > > here is the updated patch Please do not attach the patch to the email. Just create the patch using git format-patch -v 2 and then use git send-email to send the patch. We will review it after you send it like that. Thanks > > Am Mo.

Re: [PATCH] arm: atmel_qspi: fix race condition in transfer completion check

2025-07-20 Thread Ramin Moussavi
Hello Eugen here is the updated patch Am Mo., 14. Juli 2025 um 22:33 Uhr schrieb Eugen Hristev < eugen.hris...@linaro.org>: > Hello Ramin, > > Thank you for your patch. > > Can you please change the subject to have "spi: atmel_qspi: ..." > > On 7/13/25 19:08, Ramin Moussavi wrote: > > In atmel_q

Re: [PATCH] arm: atmel_qspi: fix race condition in transfer completion check

2025-07-14 Thread Eugen Hristev
Hello Ramin, Thank you for your patch. Can you please change the subject to have "spi: atmel_qspi: ..." On 7/13/25 19:08, Ramin Moussavi wrote: > In atmel_qspi_transfer(), the status register is polled with: > > imr = QSPI_SR_INSTRE | QSPI_SR_CSR; > return readl_poll_timeout(aq->regs + QSPI

[PATCH] arm: atmel_qspi: fix race condition in transfer completion check

2025-07-13 Thread Ramin Moussavi
In atmel_qspi_transfer(), the status register is polled with: imr = QSPI_SR_INSTRE | QSPI_SR_CSR; return readl_poll_timeout(aq->regs + QSPI_SR, sr, (sr & imr) == imr, ATMEL_QSPI_TIMEOUT); However, this is racy: QSPI_SR_INSTRE can be set