can: mcp251xfd: ring: update FIFO setup debug info
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 4 Aug 2021 11:26:34 +0000 (13:26 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Feb 2022 07:47:00 +0000 (08:47 +0100)
commit83daa863f16bc8fcc8c277f80ffd94042b71e0cf
treec34e788f397309985068e45f38779e26e1e6f426
parentfa0b68df7c95043685f339cf27d2539c001a21fd
can: mcp251xfd: ring: update FIFO setup debug info

The recent change of the order of the TX and RX FIFOs is not reflected
in the debug info of the FIFO setup. This patch adjust the order and
additionally prints the base address of each FIFO.

Since the mcp251xfd_ring_init() may fail due to wrongly configured
FIFOs, printing of the FIFO setup is moved there. In case of an error
it would not be printed in mcp251xfd_ring_init().

Link: https://lore.kernel.org/all/20220217103826.2299157-7-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c