Commit 57c1d4c3 authored by Markus Marb's avatar Markus Marb Committed by Marc Kleine-Budde

can: ifi: use correct register to read rx status

The incorrect offset was used when trying to read the RXSTCMD register.
Signed-off-by: default avatarMarkus Marb <markus@marb.org>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 0b9aefea
...@@ -557,7 +557,7 @@ static int ifi_canfd_poll(struct napi_struct *napi, int quota) ...@@ -557,7 +557,7 @@ static int ifi_canfd_poll(struct napi_struct *napi, int quota)
int work_done = 0; int work_done = 0;
u32 stcmd = readl(priv->base + IFI_CANFD_STCMD); u32 stcmd = readl(priv->base + IFI_CANFD_STCMD);
u32 rxstcmd = readl(priv->base + IFI_CANFD_STCMD); u32 rxstcmd = readl(priv->base + IFI_CANFD_RXSTCMD);
u32 errctr = readl(priv->base + IFI_CANFD_ERROR_CTR); u32 errctr = readl(priv->base + IFI_CANFD_ERROR_CTR);
/* Handle bus state changes */ /* Handle bus state changes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment