summaryrefslogtreecommitdiff
path: root/drivers/net/phy/uPD60620.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2021-01-05 22:41:38 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-01-07 11:02:09 +0100
commit2fbb397f584077e3c90abd06829f5a1f66fdd5f4 (patch)
treedd5cb7cb0f2d8156681b2ec3cd92dd61f82e8128 /drivers/net/phy/uPD60620.c
parent6086f02a18aeae795a61a3fc6566920891ea3b52 (diff)
can: mcp251xfd: mcp251xfd_handle_rxif_ring(): first increment RX tail pointer in HW, then in driver
The previous patch fixes a TEF vs. TX race condition, by first updating the TEF tail pointer in hardware, and then updating the driver internal pointer. The same pattern exists in the RX-path, too. This should be no problem, as the driver accesses the RX-FIFO from the interrupt handler only, thus the access is properly serialized. Fix the order here, too, so that the TEF- and RX-path look similar. Fixes: 1f652bb6bae7 ("can: mcp25xxfd: rx-path: reduce number of SPI core requests to set UINC bit") Link: https://lore.kernel.org/r/20210105214138.3150886-3-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/phy/uPD60620.c')
0 files changed, 0 insertions, 0 deletions