Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joachim Eastwood and committed by
David S. Miller
63f71dd0 e086cadc

+6
+6
drivers/net/phy/davicom.c
··· 150 150 .name = "Davicom DM9161E", 151 151 .phy_id_mask = 0x0ffffff0, 152 152 .features = PHY_BASIC_FEATURES, 153 + .flags = PHY_HAS_INTERRUPT, 153 154 .config_init = dm9161_config_init, 154 155 .config_aneg = dm9161_config_aneg, 155 156 .read_status = genphy_read_status, 157 + .ack_interrupt = dm9161_ack_interrupt, 158 + .config_intr = dm9161_config_intr, 156 159 .driver = { .owner = THIS_MODULE,}, 157 160 }, { 158 161 .phy_id = 0x0181b8a0, 159 162 .name = "Davicom DM9161A", 160 163 .phy_id_mask = 0x0ffffff0, 161 164 .features = PHY_BASIC_FEATURES, 165 + .flags = PHY_HAS_INTERRUPT, 162 166 .config_init = dm9161_config_init, 163 167 .config_aneg = dm9161_config_aneg, 164 168 .read_status = genphy_read_status, 169 + .ack_interrupt = dm9161_ack_interrupt, 170 + .config_intr = dm9161_config_intr, 165 171 .driver = { .owner = THIS_MODULE,}, 166 172 }, { 167 173 .phy_id = 0x00181b80,