projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b9aefe
)
can: ifi: use correct register to read rx status
author
Markus Marb
<markus@marb.org>
Fri, 17 Mar 2017 22:14:47 +0000
(23:14 +0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 4 Apr 2017 15:48:22 +0000
(17:48 +0200)
The incorrect offset was used when trying to read the RXSTCMD register.
Signed-off-by: Markus Marb <markus@marb.org>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ifi_canfd/ifi_canfd.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/ifi_canfd/ifi_canfd.c
b/drivers/net/can/ifi_canfd/ifi_canfd.c
index 138f5ae75c0bc6fcf912d30975197caedb0e0b3e..4d1fe8d9504234f436a0b9dd739b41089f563225 100644
(file)
--- a/
drivers/net/can/ifi_canfd/ifi_canfd.c
+++ b/
drivers/net/can/ifi_canfd/ifi_canfd.c
@@
-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_
RX
STCMD);
u32 errctr = readl(priv->base + IFI_CANFD_ERROR_CTR);
/* Handle bus state changes */