lkml.org 
[lkml]   [2017]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.10 46/69] can: ifi: use correct register to read rx status
    Date
    4.10-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Markus Marb <markus@marb.org>

    commit 57c1d4c33e8f7ec90976d79127059c1919cc0651 upstream.

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

    Signed-off-by: Markus Marb <markus@marb.org>
    Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/can/ifi_canfd/ifi_canfd.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- 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_st
    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 */

    \
     
     \ /
      Last update: 2017-04-19 17:24    [W:2.428 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site