generic: 6.6: refresh backport patches
[openwrt/staging/981213.git] / target / linux / generic / backport-6.6 / 761-v6.9-net-phy-aquantia-add-AQR113-PHY-ID.patch
1 From 71b605d32017e5b8d257db7344bc2f8e8fcc973e Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Thu, 15 Feb 2024 16:30:05 +0100
4 Subject: [PATCH] net: phy: aquantia: add AQR113 PHY ID
5
6 Add Aquantia AQR113 PHY ID. Aquantia AQR113 is just a chip size variant of
7 the already supported AQR133C where the only difference is the PHY ID
8 and the hw chip size.
9
10 Signed-off-by: Christian Marangi <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/aquantia/aquantia_main.c | 21 +++++++++++++++++++++
15 1 file changed, 21 insertions(+)
16
17 --- a/drivers/net/phy/aquantia/aquantia_main.c
18 +++ b/drivers/net/phy/aquantia/aquantia_main.c
19 @@ -26,6 +26,7 @@
20 #define PHY_ID_AQR111B0 0x03a1b612
21 #define PHY_ID_AQR112 0x03a1b662
22 #define PHY_ID_AQR412 0x03a1b712
23 +#define PHY_ID_AQR113 0x31c31c40
24 #define PHY_ID_AQR113C 0x31c31c12
25
26 #define MDIO_PHYXS_VEND_IF_STATUS 0xe812
27 @@ -840,6 +841,25 @@ static struct phy_driver aqr_driver[] =
28 .link_change_notify = aqr107_link_change_notify,
29 },
30 {
31 + PHY_ID_MATCH_MODEL(PHY_ID_AQR113),
32 + .name = "Aquantia AQR113",
33 + .probe = aqr107_probe,
34 + .get_rate_matching = aqr107_get_rate_matching,
35 + .config_init = aqr107_config_init,
36 + .config_aneg = aqr_config_aneg,
37 + .config_intr = aqr_config_intr,
38 + .handle_interrupt = aqr_handle_interrupt,
39 + .read_status = aqr107_read_status,
40 + .get_tunable = aqr107_get_tunable,
41 + .set_tunable = aqr107_set_tunable,
42 + .suspend = aqr107_suspend,
43 + .resume = aqr107_resume,
44 + .get_sset_count = aqr107_get_sset_count,
45 + .get_strings = aqr107_get_strings,
46 + .get_stats = aqr107_get_stats,
47 + .link_change_notify = aqr107_link_change_notify,
48 +},
49 +{
50 PHY_ID_MATCH_MODEL(PHY_ID_AQR113C),
51 .name = "Aquantia AQR113C",
52 .probe = aqr107_probe,
53 @@ -874,6 +894,7 @@ static struct mdio_device_id __maybe_unu
54 { PHY_ID_MATCH_MODEL(PHY_ID_AQR111B0) },
55 { PHY_ID_MATCH_MODEL(PHY_ID_AQR112) },
56 { PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
57 + { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
58 { PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) },
59 { }
60 };