can: ifi: use correct register to read rx status
PATCH 1/1 can: ifi: use correct register to read rx status
The incorrect offset was used when trying to read the RXSTCMD register.
Signed-off-by Markus Marb <[email protected]>
--- drivers/net/can/ifi_canfd/ifi_canfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/ifi_canfd/ifi_canfd.c +1 -1
@@ -557,7 +557,7 @@ static int ifi_canfd_poll(struct napi_struct *napi, int quota)int work_done =0 ;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 );/* Handle bus state changes */
Signature · 1 line
2.7.4
Quoted 3 lines · Markus Marb
The incorrect offset was used when trying to read the RXSTCMD register.
Signed-off-by Markus Marb <[email protected]>
Applied to can.
tnx,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |