lkml.org 
[lkml]   [2022]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/18] can: m_can: Remove double interrupt enable
    Date
    Interrupts are enabled a few lines further down as well. Remove this
    second call to enable all interrupts.

    Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
    ---
    drivers/net/can/m_can/m_can.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c
    index 4b387403a7c7..a76465016e17 100644
    --- a/drivers/net/can/m_can/m_can.c
    +++ b/drivers/net/can/m_can/m_can.c
    @@ -1347,7 +1347,6 @@ static void m_can_chip_config(struct net_device *dev)
    m_can_write(cdev, M_CAN_TEST, test);

    /* Enable interrupts */
    - m_can_write(cdev, M_CAN_IR, IR_ALL_INT);
    if (!(cdev->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING))
    if (cdev->version == 30)
    m_can_write(cdev, M_CAN_IE, IR_ALL_INT &
    --
    2.38.1
    \
     
     \ /
      Last update: 2023-03-26 23:16    [W:2.318 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site