cd83fac83c814423fb062f3a770e04b3b6f95d52
[openwrt/staging/jogo.git] /
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
5
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.
9
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>
13 ---
14 drivers/net/phy/at803x.c | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17 --- a/drivers/net/phy/at803x.c
18 +++ b/drivers/net/phy/at803x.c
19 @@ -1413,6 +1413,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,
25 }, {
26 /* QCA8327-A from switch QCA8327-AL1A */
27 .phy_id = QCA8327_A_PHY_ID,
28 @@ -1426,6 +1428,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,
34 }, {
35 /* QCA8327-B from switch QCA8327-BL1A */
36 .phy_id = QCA8327_B_PHY_ID,
37 @@ -1439,6 +1443,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,
43 }, };
44
45 module_phy_driver(at803x_driver);