spi: dw: announce driver probe
PATCH 1/1 spi: dw: announce driver probe
From: Ben Dooks <[email protected]>
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 <[email protected]>
Signed-off-by Ben Dooks <[email protected]>
--- drivers/spi/spi-dw-core.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/spi/spi-dw-core.c +3 -0
@@ -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 ;
Signature · 1 line
2.39.2
Mark Brown
maintainerQuoted 2 lines · Ben Dooks
It is useful to know the driver probed, so print some basic info when it does, such as the spi bus name, irq, etc.
No, we don't want every driver spamming the logs at probe - apart from anything else this slows down boot. There's already some standard logging from the driver core that can be turned on if needed for debug purposes. If there's things being enumerated from the hardware it can be useful to record those but that's chip revisions and so on rather than things like interrupt numbers.