linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: atmel-quadspi: Print the controller version and used irq
@ 2024-10-08  8:32 Mihai Sain
  2024-10-08  9:34 ` Tudor Ambarus
  2025-01-10 10:25 ` Alexander Dahl
  0 siblings, 2 replies; 6+ messages in thread
From: Mihai Sain @ 2024-10-08  8:32 UTC (permalink / raw)
  To: broonie, nicolas.ferre, alexandre.belloni, claudiu.beznea,
	linux-spi, linux-arm-kernel, linux-kernel
  Cc: Mihai Sain

Add support to print the controller version and used irq
similar to other at91 drivers (spi, twi, usart).

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
 drivers/spi/atmel-quadspi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index 95cdfc28361e..757f07132585 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -687,6 +687,8 @@ static int atmel_qspi_probe(struct platform_device *pdev)
 	pm_runtime_mark_last_busy(&pdev->dev);
 	pm_runtime_put_autosuspend(&pdev->dev);
 
+	dev_info(&pdev->dev, "AT91 QSPI Controller version %#x (irq %d)\n",
+		 atmel_qspi_read(aq, QSPI_VERSION), irq);
 	return 0;
 
 disable_qspick:

base-commit: 87d6aab2389e5ce0197d8257d5f8ee965a67c4cd
prerequisite-patch-id: 5e1313094386b146c9180d72c15bae49aaffbfa8
-- 
2.47.0


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

end of thread, other threads:[~2025-01-13  7:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08  8:32 [PATCH] spi: atmel-quadspi: Print the controller version and used irq Mihai Sain
2024-10-08  9:34 ` Tudor Ambarus
2024-10-08 10:29   ` Mark Brown
2024-10-09  7:04     ` Tudor Ambarus
2025-01-10 10:25 ` Alexander Dahl
2025-01-13  7:52   ` Mihai.Sain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).