• Alex Elder's avatar
    net: ipa: use bitmasks for GSI IRQ values · c5ebba75
    Alex Elder authored
    There are seven GSI interrupt types that can be signaled by a single
    GSI IRQ.  These are represented in a bitmask, and the gsi_irq_type_id
    enumerated type defines what each bit position represents.
    
    Similarly, the global and general GSI interrupt types each has a set
    of conditions it signals, and both types have an enumerated type
    that defines which bit that represents each condition.
    
    When used, these enumerated values are passed as an argument to BIT()
    in *all* cases.  So clean up the code a little bit by defining the
    enumerated type values as one-bit masks rather than bit positions.
    
    Rename gsi_general_id to be gsi_general_irq_id for consistency.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c5ebba75
gsi.c 65.3 KB