Skip to content

Commit 9fbc8bd

Browse files
committed
Merge tag 'spi-fix-v6.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown: "A few small fixes for v6.9, The core fix is for issues with reuse of a spi_message in the case where we've got queued messages (a relatively rare occurrence with modern code so it wasn't noticed in testing). We also avoid an issue with the Kunpeng driver by simply removing the debug interface that could trigger it, and address issues with confusing and corrupted output when printing the IP version of the AXI SPI engine" * tag 'spi-fix-v6.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spi: fix null pointer dereference within spi_sync spi: hisi-kunpeng: Delete the dump interface of data registers in debugfs spi: axi-spi-engine: fix version format string
2 parents f03359b + 4756fa5 commit 9fbc8bd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

drivers/spi/spi-axi-spi-engine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ static int spi_engine_probe(struct platform_device *pdev)
623623

624624
version = readl(spi_engine->base + ADI_AXI_REG_VERSION);
625625
if (ADI_AXI_PCORE_VER_MAJOR(version) != 1) {
626-
dev_err(&pdev->dev, "Unsupported peripheral version %u.%u.%c\n",
626+
dev_err(&pdev->dev, "Unsupported peripheral version %u.%u.%u\n",
627627
ADI_AXI_PCORE_VER_MAJOR(version),
628628
ADI_AXI_PCORE_VER_MINOR(version),
629629
ADI_AXI_PCORE_VER_PATCH(version));

drivers/spi/spi-hisi-kunpeng.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ static const struct debugfs_reg32 hisi_spi_regs[] = {
151151
HISI_SPI_DBGFS_REG("ENR", HISI_SPI_ENR),
152152
HISI_SPI_DBGFS_REG("FIFOC", HISI_SPI_FIFOC),
153153
HISI_SPI_DBGFS_REG("IMR", HISI_SPI_IMR),
154-
HISI_SPI_DBGFS_REG("DIN", HISI_SPI_DIN),
155-
HISI_SPI_DBGFS_REG("DOUT", HISI_SPI_DOUT),
156154
HISI_SPI_DBGFS_REG("SR", HISI_SPI_SR),
157155
HISI_SPI_DBGFS_REG("RISR", HISI_SPI_RISR),
158156
HISI_SPI_DBGFS_REG("ISR", HISI_SPI_ISR),

drivers/spi/spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4523,6 +4523,7 @@ static int __spi_sync(struct spi_device *spi, struct spi_message *message)
45234523
wait_for_completion(&done);
45244524
status = message->status;
45254525
}
4526+
message->complete = NULL;
45264527
message->context = NULL;
45274528

45284529
return status;

0 commit comments

Comments
 (0)