linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] tty: atmel_serial: print the controller version
@ 2024-10-08  8:34 Mihai Sain
  2024-10-08  8:37 ` Greg KH
  2024-10-08  9:13 ` Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Mihai Sain @ 2024-10-08  8:34 UTC (permalink / raw)
  To: richard.genoud, gregkh, jirislaby, nicolas.ferre,
	alexandre.belloni, claudiu.beznea, linux-kernel, linux-serial,
	linux-arm-kernel
  Cc: Mihai Sain

Add support to print the controller version similar
to other at91 drivers like spi and twi.

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

diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index 09b246c9e389..5f93974918c0 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -2970,6 +2970,8 @@ static int atmel_serial_probe(struct platform_device *pdev)
 	 */
 	clk_disable_unprepare(atmel_port->clk);
 
+	dev_info(&pdev->dev, "AT91 USART Controller version %#x",
+		 atmel_uart_readl(&atmel_port->uart, ATMEL_US_VERSION));
 	return 0;
 
 err_add_port:

base-commit: 87d6aab2389e5ce0197d8257d5f8ee965a67c4cd
-- 
2.47.0



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

end of thread, other threads:[~2024-10-08  9:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08  8:34 [PATCH 1/2] tty: atmel_serial: print the controller version Mihai Sain
2024-10-08  8:37 ` Greg KH
     [not found]   ` <PH8PR11MB6804E661B89912C18703AC6A827E2@PH8PR11MB6804.namprd11.prod.outlook.com>
2024-10-08  9:09     ` Greg KH
2024-10-08  9:13 ` Greg KH

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).