Re: [PATCH net] can: m_can: pci: fix iomap_read_fifo() and iomap_write_fifo()

From: Jarkko Nikula
Date: Thu Nov 18 2021 - 10:09:47 EST


On 11/18/21 4:40 PM, Matthias Schiffer wrote:
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")
Signed-off-by: Matthias Schiffer <matthias.schiffer@xxxxxxxxxxxxxxx>
---
drivers/net/can/m_can/m_can_pci.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

I tested this on top of plain v5.15 (v5.16-rc1 has some rootfs regression on my EHL HW) where my test case was receiving zeros and this makes it working again like in v5.14 and earlier.

Tested-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>