Skip to contentSkip to conversation

can: ifi: use correct register to read rx status

PATCH Applied Markus Marb 2 participants 2 messages Mar 17, 2017 – Mar 21, 2017 CAN network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 can: ifi: use correct register to read rx status

The incorrect offset was used when trying to read the RXSTCMD register.

---
 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
index 138f5ae..4d1fe8d 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 3 lines · Markus Marb

The incorrect offset was used when trying to read the RXSTCMD register.

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   |