public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] microchip core-qspi cleanup
@ 2026-04-28 18:11 Conor Dooley
  2026-04-28 18:11 ` [PATCH v2 1/2] spi: microchip-core-qspi: report device on which timeout occured instead of which controller Conor Dooley
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Conor Dooley @ 2026-04-28 18:11 UTC (permalink / raw)
  To: broonie
  Cc: conor, Conor Dooley, Daire McNamara, Cyril Jean,
	Valentina.FernandezAlanis, linux-riscv, linux-spi, linux-kernel

From: Conor Dooley <conor.dooley@microchip.com>

Hey Mark,

Here's the other two changes, that didn't conflict with the fixes.

Cheers,
Conor.

CC: Conor Dooley <conor.dooley@microchip.com>
CC: Daire McNamara <daire.mcnamara@microchip.com>
CC: Mark Brown <broonie@kernel.org>
CC: Cyril Jean <cyril.jean@microchip.com>
CC: Valentina.FernandezAlanis@microchip.com
CC: linux-riscv@lists.infradead.org
CC: linux-spi@vger.kernel.org
CC: linux-kernel@vger.kernel.org

Conor Dooley (2):
  spi: microchip-core-qspi: report device on which timeout occured
    instead of which controller
  spi: microchip-core-qspi: remove an unused define

 drivers/spi/spi-microchip-core-qspi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/2] spi: microchip-core-qspi: report device on which timeout occured instead of which controller
  2026-04-28 18:11 [PATCH v2 0/2] microchip core-qspi cleanup Conor Dooley
@ 2026-04-28 18:11 ` Conor Dooley
  2026-04-28 18:11 ` [PATCH v2 2/2] spi: microchip-core-qspi: remove an unused define Conor Dooley
  2026-04-29  2:12 ` [PATCH v2 0/2] microchip core-qspi cleanup Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2026-04-28 18:11 UTC (permalink / raw)
  To: broonie
  Cc: conor, Conor Dooley, Daire McNamara, Cyril Jean,
	Valentina.FernandezAlanis, linux-riscv, linux-spi, linux-kernel

From: Conor Dooley <conor.dooley@microchip.com>

When prepare_message callbacks fail, the SPI core already reports which
controller the failure happened on. The corresponding code in the mem_ops
portion of the driver already reports the device a timeout occurred on,
so make the regular part of the driver do the same.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 drivers/spi/spi-microchip-core-qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-microchip-core-qspi.c b/drivers/spi/spi-microchip-core-qspi.c
index eab059fb0bc2c..c8b053c7c857b 100644
--- a/drivers/spi/spi-microchip-core-qspi.c
+++ b/drivers/spi/spi-microchip-core-qspi.c
@@ -604,7 +604,7 @@ static int mchp_coreqspi_prepare_message(struct spi_controller *ctlr, struct spi
 	ret = mchp_coreqspi_wait_for_ready(qspi);
 	if (ret) {
 		mutex_unlock(&qspi->op_lock);
-		dev_err(&ctlr->dev, "Timeout waiting on QSPI ready.\n");
+		dev_err(&m->spi->dev, "Timeout waiting on QSPI ready.\n");
 		return ret;
 	}
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] spi: microchip-core-qspi: remove an unused define
  2026-04-28 18:11 [PATCH v2 0/2] microchip core-qspi cleanup Conor Dooley
  2026-04-28 18:11 ` [PATCH v2 1/2] spi: microchip-core-qspi: report device on which timeout occured instead of which controller Conor Dooley
@ 2026-04-28 18:11 ` Conor Dooley
  2026-04-29  2:12 ` [PATCH v2 0/2] microchip core-qspi cleanup Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2026-04-28 18:11 UTC (permalink / raw)
  To: broonie
  Cc: conor, Conor Dooley, Daire McNamara, Cyril Jean,
	Valentina.FernandezAlanis, linux-riscv, linux-spi, linux-kernel

From: Conor Dooley <conor.dooley@microchip.com>

I noticed this define was incorrect, it should be UpperAddress, but in
renaming it it became clear there were actually no users. Just get rid
of it.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
 drivers/spi/spi-microchip-core-qspi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/spi-microchip-core-qspi.c b/drivers/spi/spi-microchip-core-qspi.c
index c8b053c7c857b..477a1bb390bb9 100644
--- a/drivers/spi/spi-microchip-core-qspi.c
+++ b/drivers/spi/spi-microchip-core-qspi.c
@@ -92,7 +92,6 @@
 #define REG_IEN			(0x0c)
 #define REG_STATUS		(0x10)
 #define REG_DIRECT_ACCESS	(0x14)
-#define REG_UPPER_ACCESS	(0x18)
 #define REG_RX_DATA		(0x40)
 #define REG_TX_DATA		(0x44)
 #define REG_X4_RX_DATA		(0x48)
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 0/2] microchip core-qspi cleanup
  2026-04-28 18:11 [PATCH v2 0/2] microchip core-qspi cleanup Conor Dooley
  2026-04-28 18:11 ` [PATCH v2 1/2] spi: microchip-core-qspi: report device on which timeout occured instead of which controller Conor Dooley
  2026-04-28 18:11 ` [PATCH v2 2/2] spi: microchip-core-qspi: remove an unused define Conor Dooley
@ 2026-04-29  2:12 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2026-04-29  2:12 UTC (permalink / raw)
  To: Conor Dooley
  Cc: Conor Dooley, Daire McNamara, Cyril Jean,
	Valentina.FernandezAlanis, linux-riscv, linux-spi, linux-kernel

On Tue, 28 Apr 2026 19:11:10 +0100, Conor Dooley wrote:
> microchip core-qspi cleanup
> 
> From: Conor Dooley <conor.dooley@microchip.com>
> 
> Hey Mark,
> 
> Here's the other two changes, that didn't conflict with the fixes.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.2

Thanks!

[1/2] spi: microchip-core-qspi: report device on which timeout occured instead of which controller
      https://git.kernel.org/broonie/spi/c/4cf8806a637e
[2/2] spi: microchip-core-qspi: remove an unused define
      https://git.kernel.org/broonie/spi/c/9c69bc6057a2

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-04-29  4:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28 18:11 [PATCH v2 0/2] microchip core-qspi cleanup Conor Dooley
2026-04-28 18:11 ` [PATCH v2 1/2] spi: microchip-core-qspi: report device on which timeout occured instead of which controller Conor Dooley
2026-04-28 18:11 ` [PATCH v2 2/2] spi: microchip-core-qspi: remove an unused define Conor Dooley
2026-04-29  2:12 ` [PATCH v2 0/2] microchip core-qspi cleanup Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox