OSDN Git Service

net: of_mdio: do not overwrite PHY interrupt configuration
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 5 Dec 2013 22:52:12 +0000 (14:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2013 19:57:21 +0000 (14:57 -0500)
commit7d976376560b72e187c96e4b18d059e0a0f9eba5
treecf45208ea156824643ce01398abefa2feba4da4a
parentbed2f9ed2f3c4debe2e930c44ee95af980db7e20
net: of_mdio: do not overwrite PHY interrupt configuration

If irq_of_parse_and_map fails to find an interrupt line for a given PHY,
we will force the PHY interrupt to be PHY_POLL, completely overriding
the previous value that the MDIO bus may have set for us (e.g:
PHY_IGNORE_INTERRUPT). In case of failure, just restore the previous
value.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c