• Ioana Ciornei's avatar
    dpaa2-switch: do not clear any interrupts automatically · f6da2764
    Ioana Ciornei authored
    The DPSW object has multiple event sources multiplexed over the same
    IRQ. The driver has the capability to configure only some of these
    events to trigger the IRQ.
    
    The dpsw_get_irq_status() can clear events automatically based on the
    value stored in the 'status' variable passed to it. We don't want that
    to happen because we could get into a situation when we are clearing
    more events than we actually handled.
    
    Just resort to manually clearing the events that we handled. Also, since
    status is not used on the out path we remove its initialization to zero.
    
    This change does not have a user-visible effect because the dpaa2-switch
    driver enables and handles all the DPSW events which exist at the
    moment.
    Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
    Reviewed-by: default avatarSimon Horman <horms@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f6da2764
dpaa2-switch.c 88.4 KB