diff options
author | Arun Ramadoss <arun.ramadoss@microchip.com> | 2022-09-22 12:40:24 +0530 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-26 12:41:05 -0700 |
commit | abc1cb8cbd7376a2f856e64986ee5ce0849d974b (patch) | |
tree | 9ad63d14d2d9c6b3e552f12d24bd4921c8a3e3ee /drivers/net/dsa/microchip/ksz_common.h | |
parent | 978f1f72460cb2dc742a35bae4de50b6b9ac653f (diff) |
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>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.h')
0 files changed, 0 insertions, 0 deletions