build: don't drop 'user' flag when using the ImageBuilder
[openwrt/staging/jow.git] / target / linux / generic / hack-6.1 / 724-net-phy-aquantia-Add-AQR113-driver-support.patch
1 From 2e677e4ae8f8330f68013163b060d0fda3a43095 Mon Sep 17 00:00:00 2001
2 From: "Langer, Thomas" <tlanger@maxlinear.com>
3 Date: Fri, 9 Jul 2021 17:36:46 +0200
4 Subject: [PATCH] PONRTSYS-8842: aquantia: Add AQR113 driver support
5
6 Add a new entry for AQR113 PHY_ID
7 ---
8 drivers/net/phy/aquantia/aquantia_main.c | 10 ++++++++++
9 1 file changed, 10 insertions(+)
10
11 --- a/drivers/net/phy/aquantia/aquantia_main.c
12 +++ b/drivers/net/phy/aquantia/aquantia_main.c
13 @@ -26,6 +26,7 @@
14 #define PHY_ID_AQR813 0x31c31cb2
15 #define PHY_ID_AQR112 0x03a1b662
16 #define PHY_ID_AQR412 0x03a1b712
17 +#define PHY_ID_AQR113 0x31c31c40
18
19 #define MDIO_PHYXS_VEND_IF_STATUS 0xe812
20 #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK GENMASK(7, 3)
21 @@ -932,6 +933,14 @@ static struct phy_driver aqr_driver[] =
22 .get_strings = aqr107_get_strings,
23 .get_stats = aqr107_get_stats,
24 },
25 +{
26 + PHY_ID_MATCH_MODEL(PHY_ID_AQR113),
27 + .name = "Aquantia AQR113",
28 + .config_aneg = aqr_config_aneg,
29 + .config_intr = aqr_config_intr,
30 + .handle_interrupt = aqr_handle_interrupt,
31 + .read_status = aqr107_read_status,
32 +},
33 };
34
35 module_phy_driver(aqr_driver);
36 @@ -948,6 +957,7 @@ static struct mdio_device_id __maybe_unu
37 { PHY_ID_MATCH_MODEL(PHY_ID_AQR813) },
38 { PHY_ID_MATCH_MODEL(PHY_ID_AQR112) },
39 { PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
40 + { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
41 { }
42 };
43