diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-01-05 14:48:07 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-06 15:52:43 -0500 |
commit | 5ca7d1ca77dc23934504b95a96d2660d345f83c2 (patch) | |
tree | a3e13c40e1e0e4039c9e178013adcad2cbfaaeb7 /net | |
parent | 896b4db685cf06bd7d50ed22c53ebd069e0b90e9 (diff) | |
download | linux-stable-5ca7d1ca77dc23934504b95a96d2660d345f83c2.tar.gz linux-stable-5ca7d1ca77dc23934504b95a96d2660d345f83c2.tar.bz2 linux-stable-5ca7d1ca77dc23934504b95a96d2660d345f83c2.zip |
net: phy: dp83867: fix irq generation
For proper IRQ generation by DP83867 phy the INT/PWDN pin has to be
programmed as an interrupt output instead of a Powerdown input in
Configuration Register 3 (CFG3), Address 0x001E, bit 7 INT_OE = 1. The
current driver doesn't do this and as result IRQs will not be generated by
DP83867 phy even if they are properly configured in DT.
Hence, fix IRQ generation by properly configuring CFG3.INT_OE bit and
ensure that Link Status Change (LINK_STATUS_CHNG_INT) and Auto-Negotiation
Complete (AUTONEG_COMP_INT) interrupt are enabled. After this the DP83867
driver will work properly in interrupt enabled mode.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions