1 From 15b9df4ece17d084f14eb0ca1cf05f2ad497e425 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Sun, 19 Sep 2021 18:28:16 +0200
4 Subject: net: phy: at803x: add resume/suspend function to qca83xx phy
6 Add resume/suspend function to qca83xx internal phy.
7 We can't use the at803x generic function as the documentation lacks of
8 any support for WoL regs.
10 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
11 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
14 drivers/net/phy/at803x.c | 6 ++++++
15 1 file changed, 6 insertions(+)
17 --- a/drivers/net/phy/at803x.c
18 +++ b/drivers/net/phy/at803x.c
19 @@ -1411,6 +1411,8 @@ static struct phy_driver at803x_driver[]
20 .get_sset_count = at803x_get_sset_count,
21 .get_strings = at803x_get_strings,
22 .get_stats = at803x_get_stats,
23 + .suspend = genphy_suspend,
24 + .resume = genphy_resume,
26 /* QCA8327-A from switch QCA8327-AL1A */
27 .phy_id = QCA8327_A_PHY_ID,
28 @@ -1424,6 +1426,8 @@ static struct phy_driver at803x_driver[]
29 .get_sset_count = at803x_get_sset_count,
30 .get_strings = at803x_get_strings,
31 .get_stats = at803x_get_stats,
32 + .suspend = genphy_suspend,
33 + .resume = genphy_resume,
35 /* QCA8327-B from switch QCA8327-BL1A */
36 .phy_id = QCA8327_B_PHY_ID,
37 @@ -1437,6 +1441,8 @@ static struct phy_driver at803x_driver[]
38 .get_sset_count = at803x_get_sset_count,
39 .get_strings = at803x_get_strings,
40 .get_stats = at803x_get_stats,
41 + .suspend = genphy_suspend,
42 + .resume = genphy_resume,
45 module_phy_driver(at803x_driver);