Re: [PATCH] spi: atmel-quadspi: Print the controller version and used irq

From: Mark Brown
Date: Tue Oct 08 2024 - 06:30:20 EST


On Tue, Oct 08, 2024 at 10:34:39AM +0100, Tudor Ambarus wrote:
> On 10/8/24 9:32 AM, Mihai Sain wrote:

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

> > + dev_info(&pdev->dev, "AT91 QSPI Controller version %#x (irq %d)\n",
> > + atmel_qspi_read(aq, QSPI_VERSION), irq);

> This pollutes the console. Better to add a dev_dbg if you care.
> And irq number doesn't bring too much value as you can see it in dt,
> isn't it?

The objective of bringing the various AT91 drivers into consistency does
seem useful so if this isn't OK for this driver we should probably
update the other drivers as well. Ensuring that people can get at the
IP version does feel useful, I guess it could also be a sysfs thing?

Attachment: signature.asc
Description: PGP signature