diff mbox series

spi: dw: announce driver probe

Message ID 20230531110339.321387-1-ben.dooks@codethink.co.uk (mailing list archive)
State New, archived
Headers show
Series spi: dw: announce driver probe | expand

Commit Message

Ben Dooks May 31, 2023, 11:03 a.m. UTC
From: Ben Dooks <ben.dooks@sifive.com>

It is useful to know the driver probed, so print some basic
info when it does, such as the spi bus name, irq, etc.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 drivers/spi/spi-dw-core.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/drivers/spi/spi-dw-core.c b/drivers/spi/spi-dw-core.c
index 071a7604a8ab..8e8a0d063519 100644
--- a/drivers/spi/spi-dw-core.c
+++ b/drivers/spi/spi-dw-core.c
@@ -958,6 +958,9 @@  int dw_spi_add_host(struct device *dev, struct dw_spi *dws)
 		goto err_dma_exit;
 	}
 
+	dev_info(dev, "%s: irq %d, %d fifo, max freq %u",
+		 dev_name(&master->dev), dws->irq, dws->fifo_len,
+		 dws->max_freq);
 	dw_spi_debugfs_init(dws);
 	return 0;