net: phy: smsc: skip ENERGYON interrupt if disabled
authorMarco Felsch <m.felsch@pengutronix.de>
Wed, 9 Sep 2020 13:44:57 +0000 (15:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 21:15:02 +0000 (14:15 -0700)
commit7365494550f6e96b8e444201bf5fdaec40e7e007
treef5b118f8e002fc728b36574fe44b38475f16d2e5
parent74c654a852fe94f7d5ea5ebc49f2ce6fd1a551e6
net: phy: smsc: skip ENERGYON interrupt if disabled

Don't enable the interrupt if the platform disable the energy detection
by "smsc,disable-energy-detect".

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c