Просмотр исходного кода

net: phy: at803x: support interrupt on 8030 and 8035

Commit 77a993942 "phy/at8031: enable at8031 to work on interrupt mode"
added interrupt support for the 8031 PHY but left out the other two
chips supported by this driver.

This patch sets the .ack_interrupt and .config_intr functions for the
8030 and 8035 drivers as well.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Måns Rullgård 10 лет назад
Родитель
Сommit
0eae5982a3
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      drivers/net/phy/at803x.c

+ 4 - 0
drivers/net/phy/at803x.c

@@ -308,6 +308,8 @@ static struct phy_driver at803x_driver[] = {
 	.flags			= PHY_HAS_INTERRUPT,
 	.flags			= PHY_HAS_INTERRUPT,
 	.config_aneg		= genphy_config_aneg,
 	.config_aneg		= genphy_config_aneg,
 	.read_status		= genphy_read_status,
 	.read_status		= genphy_read_status,
+	.ack_interrupt		= at803x_ack_interrupt,
+	.config_intr		= at803x_config_intr,
 	.driver			= {
 	.driver			= {
 		.owner = THIS_MODULE,
 		.owner = THIS_MODULE,
 	},
 	},
@@ -327,6 +329,8 @@ static struct phy_driver at803x_driver[] = {
 	.flags			= PHY_HAS_INTERRUPT,
 	.flags			= PHY_HAS_INTERRUPT,
 	.config_aneg		= genphy_config_aneg,
 	.config_aneg		= genphy_config_aneg,
 	.read_status		= genphy_read_status,
 	.read_status		= genphy_read_status,
+	.ack_interrupt		= at803x_ack_interrupt,
+	.config_intr		= at803x_config_intr,
 	.driver			= {
 	.driver			= {
 		.owner = THIS_MODULE,
 		.owner = THIS_MODULE,
 	},
 	},