ravb: Separate handling of irq enable/disable regs into feature
authorPhil Edworthy <phil.edworthy@renesas.com>
Thu, 12 May 2022 11:47:19 +0000 (12:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:14:27 +0000 (10:14 +0100)
commitcb99badde146c327f150773921ffe080abe1eb44
treeed32cf8caef04e70525f0224f34ed1b3dd916638
parenta7931ac16128bb3af5c4ac482057a711da117856
ravb: Separate handling of irq enable/disable regs into feature

Currently, when the HW has a single interrupt, the driver uses the
GIC, TIC, RIC0 registers to enable and disable interrupts.
When the HW has multiple interrupts, it uses the GIE, GID, TIE, TID,
RIE0, RID0 registers.

However, other devices, e.g. RZ/V2M, have multiple irqs and only have
the GIC, TIC, RIC0 registers.
Therefore, split this into a separate feature.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c
drivers/net/ethernet/renesas/ravb_ptp.c