]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2fe95cf1511ed72ac6230d2334058df56381dc1
treec34e788f397309985068e45f38779e26e1e6f426
parentdfb50a2e5b5fd1b258d3c4a4a5409c3d6ff48589
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