diff options
author | Joachim Eastwood <manabian@gmail.com> | 2012-11-11 08:56:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-14 18:51:02 -0500 |
commit | 63f71dd026cc6b2cc1cc26299720d763269f65b6 (patch) | |
tree | 7a5136706bd46caf61a6be013771fd8bd210c5f0 /drivers/net/phy/davicom.c | |
parent | e086cadc08e259150b2ab8f7f4a16dbf9e3c2f22 (diff) |
net/phy/davicom: add irq functions to DM9161E and DM9161A
Both these PHYs support interrupt generation on IC pin 32.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/davicom.c')
-rw-r--r-- | drivers/net/phy/davicom.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/phy/davicom.c b/drivers/net/phy/davicom.c index 81c7bc010dd8..383e8338ad86 100644 --- a/drivers/net/phy/davicom.c +++ b/drivers/net/phy/davicom.c | |||
@@ -150,18 +150,24 @@ static struct phy_driver dm91xx_driver[] = { | |||
150 | .name = "Davicom DM9161E", | 150 | .name = "Davicom DM9161E", |
151 | .phy_id_mask = 0x0ffffff0, | 151 | .phy_id_mask = 0x0ffffff0, |
152 | .features = PHY_BASIC_FEATURES, | 152 | .features = PHY_BASIC_FEATURES, |
153 | .flags = PHY_HAS_INTERRUPT, | ||
153 | .config_init = dm9161_config_init, | 154 | .config_init = dm9161_config_init, |
154 | .config_aneg = dm9161_config_aneg, | 155 | .config_aneg = dm9161_config_aneg, |
155 | .read_status = genphy_read_status, | 156 | .read_status = genphy_read_status, |
157 | .ack_interrupt = dm9161_ack_interrupt, | ||
158 | .config_intr = dm9161_config_intr, | ||
156 | .driver = { .owner = THIS_MODULE,}, | 159 | .driver = { .owner = THIS_MODULE,}, |
157 | }, { | 160 | }, { |
158 | .phy_id = 0x0181b8a0, | 161 | .phy_id = 0x0181b8a0, |
159 | .name = "Davicom DM9161A", | 162 | .name = "Davicom DM9161A", |
160 | .phy_id_mask = 0x0ffffff0, | 163 | .phy_id_mask = 0x0ffffff0, |
161 | .features = PHY_BASIC_FEATURES, | 164 | .features = PHY_BASIC_FEATURES, |
165 | .flags = PHY_HAS_INTERRUPT, | ||
162 | .config_init = dm9161_config_init, | 166 | .config_init = dm9161_config_init, |
163 | .config_aneg = dm9161_config_aneg, | 167 | .config_aneg = dm9161_config_aneg, |
164 | .read_status = genphy_read_status, | 168 | .read_status = genphy_read_status, |
169 | .ack_interrupt = dm9161_ack_interrupt, | ||
170 | .config_intr = dm9161_config_intr, | ||
165 | .driver = { .owner = THIS_MODULE,}, | 171 | .driver = { .owner = THIS_MODULE,}, |
166 | }, { | 172 | }, { |
167 | .phy_id = 0x00181b80, | 173 | .phy_id = 0x00181b80, |