net: ravb: Fix possible hang if RIS2_QFF1 happen
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 24 Jan 2023 00:02:11 +0000 (09:02 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2023 13:00:27 +0000 (13:00 +0000)
commitf3c07758c9007a6bfff5290d9e19d3c41930c897
tree3c5cb83b570454e4a910d65ddda4322f3aaea0b7
parentc2b6cdee1d13ffbb24baca3c9b8a572d6b541e4e
net: ravb: Fix possible hang if RIS2_QFF1 happen

Since this driver enables the interrupt by RIC2_QFE1, this driver
should clear the interrupt flag if it happens. Otherwise, the interrupt
causes to hang the system.

Note that this also fix a minor coding style (a comment indentation)
around the fixed code.

Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb_main.c