mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
can: rockchip_canfd: rkcanfd_chip_fifo_setup(): remove duplicated setup of RX FIFO
The rockchip_canfd driver doesn't make use of the TXE FIFO.
Although the comment states that the TXE FIFO is setup, it's actually
a setup of the RX FIFO. The regular setup of the RX FIFO follows.
Remove the duplicated setup of the RX FIFO.
Fixes: ff60bfbaf6 ("can: rockchip_canfd: add driver for Rockchip CAN-FD controller")
Signed-off-by: Robin van der Gracht <robin@protonic.nl>
Link: https://patch.msgid.link/20250219-rk3568-canfd-v1-1-453869358c72@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
32f08b22f3
commit
d9e1cc087a
|
|
@ -236,11 +236,6 @@ static void rkcanfd_chip_fifo_setup(struct rkcanfd_priv *priv)
|
|||
{
|
||||
u32 reg;
|
||||
|
||||
/* TXE FIFO */
|
||||
reg = rkcanfd_read(priv, RKCANFD_REG_RX_FIFO_CTRL);
|
||||
reg |= RKCANFD_REG_RX_FIFO_CTRL_RX_FIFO_ENABLE;
|
||||
rkcanfd_write(priv, RKCANFD_REG_RX_FIFO_CTRL, reg);
|
||||
|
||||
/* RX FIFO */
|
||||
reg = rkcanfd_read(priv, RKCANFD_REG_RX_FIFO_CTRL);
|
||||
reg |= RKCANFD_REG_RX_FIFO_CTRL_RX_FIFO_ENABLE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user