]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: enable phy interrupts only if interrupt enabled in dts
authorArun Ramadoss <arun.ramadoss@microchip.com>
Thu, 22 Sep 2022 07:10:24 +0000 (12:40 +0530)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 19:41:05 +0000 (12:41 -0700)
commitf3d5ae3b0c2072258d0f4667596d113ac3941bbf
tree9ad63d14d2d9c6b3e552f12d24bd4921c8a3e3ee
parent9aab02208e030bb1081c0cb05f1ab94a1e27e1dc
net: dsa: microchip: enable phy interrupts only if interrupt enabled in dts

In the lan937x_mdio_register function, phy interrupts are enabled
irrespective of irq is enabled in the switch. Now, the check is added to
enable the phy interrupt only if the irq is enabled in the switch.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/lan937x_main.c