]> git.baikalelectronics.ru Git - kernel.git/commit
can: m_can: pci: fix iomap_read_fifo() and iomap_write_fifo()
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Thu, 18 Nov 2021 14:40:11 +0000 (15:40 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 7 Dec 2021 08:51:36 +0000 (09:51 +0100)
commit34b7c313c964c24cd94b3a94f19b7cfe39311643
tree2f5f43c38276673c12eb2f3969d585b3722ebf7d
parent2189ba72514f79f838ff8a51c7a794b4827409e0
can: m_can: pci: fix iomap_read_fifo() and iomap_write_fifo()

The same fix that was previously done in m_can_platform in commit
06440fb81705 ("can: m_can: fix iomap_read_fifo() and iomap_write_fifo()")
is required in m_can_pci as well to make iomap_read_fifo() and
iomap_write_fifo() work for val_count > 1.

Fixes: 0eb3c0751a4d ("can: m_can: Batch FIFO writes during CAN transmit")
Fixes: c395407bbc9b ("can: m_can: Batch FIFO reads during CAN receive")
Link: https://lore.kernel.org/all/20211118144011.10921-1-matthias.schiffer@ew.tq-group.com
Cc: stable@vger.kernel.org
Cc: Matt Kline <matt@bitbashing.io>
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can_pci.c