summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarkus Marb <markus@marb.org>2017-03-17 23:14:47 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2017-04-04 17:48:22 +0200
commit57c1d4c33e8f7ec90976d79127059c1919cc0651 (patch)
tree743ee15869602e3f19cc3f6300e6445a15ec3049 /drivers
parent0b9aefea860063bb39e36bd7fe6c7087fed0ba87 (diff)
downloadlinux-stable-57c1d4c33e8f7ec90976d79127059c1919cc0651.tar.gz
linux-stable-57c1d4c33e8f7ec90976d79127059c1919cc0651.tar.bz2
linux-stable-57c1d4c33e8f7ec90976d79127059c1919cc0651.zip
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 <markus@marb.org> Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/can/ifi_canfd/ifi_canfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/ifi_canfd/ifi_canfd.c b/drivers/net/can/ifi_canfd/ifi_canfd.c
index 138f5ae75c0b..4d1fe8d95042 100644
--- 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_RXSTCMD);
u32 errctr = readl(priv->base + IFI_CANFD_ERROR_CTR);
/* Handle bus state changes */