* [PATCH v2 0/1] spi: spi-dw-dma: fix print error log when wait finish transaction
@ 2026-03-02 22:20 Vladimir Yakovlev
2026-03-02 22:20 ` [PATCH v2 1/1] " Vladimir Yakovlev
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Vladimir Yakovlev @ 2026-03-02 22:20 UTC (permalink / raw)
To: Mark Brown; +Cc: Vladimir Yakovlev, linux-spi, linux-kernel
Hello!
This patch fixes a system crash if there is no current message
for a transaction.
Changes in v2:
- Sorry for the inattention. The variable in the dw_spi structure,
- which has the struct spi_controller type, was renamed from host to ctlr
- starting with version 6.19.
Thanks
Vladimir Yakovlev (1):
spi: spi-dw-dma: fix print error log when wait finish transaction
drivers/spi/spi-dw-dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2 1/1] spi: spi-dw-dma: fix print error log when wait finish transaction
2026-03-02 22:20 [PATCH v2 0/1] spi: spi-dw-dma: fix print error log when wait finish transaction Vladimir Yakovlev
@ 2026-03-02 22:20 ` Vladimir Yakovlev
2026-03-02 22:33 ` [PATCH v2 0/1] " Mark Brown
2026-03-03 14:20 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Vladimir Yakovlev @ 2026-03-02 22:20 UTC (permalink / raw)
To: Mark Brown; +Cc: Vladimir Yakovlev, linux-spi, linux-kernel
If an error occurs, the device may not have a current message. In this
case, the system will crash.
In this case, it's better to use dev from the struct ctlr (struct spi_controller*).
Signed-off-by: Vladimir Yakovlev <vovchkir@gmail.com>
---
drivers/spi/spi-dw-dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-dw-dma.c b/drivers/spi/spi-dw-dma.c
index 65adec7c7524..fe726b9b1780 100644
--- a/drivers/spi/spi-dw-dma.c
+++ b/drivers/spi/spi-dw-dma.c
@@ -271,7 +271,7 @@ static int dw_spi_dma_wait(struct dw_spi *dws, unsigned int len, u32 speed)
msecs_to_jiffies(ms));
if (ms == 0) {
- dev_err(&dws->ctlr->cur_msg->spi->dev,
+ dev_err(&dws->ctlr->dev,
"DMA transaction timed out\n");
return -ETIMEDOUT;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2 0/1] spi: spi-dw-dma: fix print error log when wait finish transaction
2026-03-02 22:20 [PATCH v2 0/1] spi: spi-dw-dma: fix print error log when wait finish transaction Vladimir Yakovlev
2026-03-02 22:20 ` [PATCH v2 1/1] " Vladimir Yakovlev
@ 2026-03-02 22:33 ` Mark Brown
2026-03-03 14:20 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2026-03-02 22:33 UTC (permalink / raw)
To: Vladimir Yakovlev; +Cc: linux-spi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
On Tue, Mar 03, 2026 at 01:20:16AM +0300, Vladimir Yakovlev wrote:
> Hello!
>
> This patch fixes a system crash if there is no current message
> for a transaction.
Please don't send cover letters for single patches, if there is anything
that needs saying put it in the changelog of the patch or after the ---
if it's administrative stuff. This reduces mail volume and ensures that
any important information is recorded in the changelog rather than being
lost.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/1] spi: spi-dw-dma: fix print error log when wait finish transaction
2026-03-02 22:20 [PATCH v2 0/1] spi: spi-dw-dma: fix print error log when wait finish transaction Vladimir Yakovlev
2026-03-02 22:20 ` [PATCH v2 1/1] " Vladimir Yakovlev
2026-03-02 22:33 ` [PATCH v2 0/1] " Mark Brown
@ 2026-03-03 14:20 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2026-03-03 14:20 UTC (permalink / raw)
To: Vladimir Yakovlev; +Cc: linux-spi, linux-kernel
On Tue, 03 Mar 2026 01:20:16 +0300, Vladimir Yakovlev wrote:
> This patch fixes a system crash if there is no current message
> for a transaction.
>
> Changes in v2:
> - Sorry for the inattention. The variable in the dw_spi structure,
> - which has the struct spi_controller type, was renamed from host to ctlr
> - starting with version 6.19.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: spi-dw-dma: fix print error log when wait finish transaction
commit: 3b46d61890632c8f8b117147b6923bff4b42ccb7
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-03 14:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-02 22:20 [PATCH v2 0/1] spi: spi-dw-dma: fix print error log when wait finish transaction Vladimir Yakovlev
2026-03-02 22:20 ` [PATCH v2 1/1] " Vladimir Yakovlev
2026-03-02 22:33 ` [PATCH v2 0/1] " Mark Brown
2026-03-03 14:20 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox