]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:14 +0000 (09:49 +0100)
commitaf045ddd511ea42b75acdc593b168552bde6ed76
tree91a58534b16d9f524e7d2aa64176ff84cb083531
parent61f9fd796a864bb0ff073dbb6bd4b96708cd198e
can: m_can: pci: fix iomap_read_fifo() and iomap_write_fifo()

BugLink: https://bugs.launchpad.net/bugs/1954931
commit d737de2d7cc3efdacbf17d4e22efc75697bd76d9 upstream.

The same fix that was previously done in m_can_platform in commit
99d173fbe894 ("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: 812270e5445b ("can: m_can: Batch FIFO writes during CAN transmit")
Fixes: 1aa6772f64b4 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/can/m_can/m_can_pci.c