realtek: Convert incorrect v5.10 patches
[openwrt/staging/dedeckeh.git] / target / linux / realtek / patches-5.10 / 704-include-linux-add-phy-hsgmii-mode.patch
1 From 9d9bf16aa8d966834ac1280f96c37d22552c33d1 Mon Sep 17 00:00:00 2001
2 From: Birger Koblitz <git@birger-koblitz.de>
3 Date: Wed, 8 Sep 2021 16:13:18 +0200
4 Subject: phy: Add PHY hsgmii mode
5
6 This adds RTL93xx-specific MAC configuration routines that allow also configuration
7 of 10GBit links for phylink. There is support for the Realtek-specific HISGMI
8 protocol.
9
10 Submitted-by: Birger Koblitz <git@birger-koblitz.de>
11 ---
12 include/linux/phy.h | 3 +++
13 1 file changed, 3 insertions(+)
14
15 --- a/include/linux/phy.h
16 +++ b/include/linux/phy.h
17 @@ -134,6 +134,7 @@ typedef enum {
18 PHY_INTERFACE_MODE_XGMII,
19 PHY_INTERFACE_MODE_XLGMII,
20 PHY_INTERFACE_MODE_MOCA,
21 + PHY_INTERFACE_MODE_HSGMII,
22 PHY_INTERFACE_MODE_QSGMII,
23 PHY_INTERFACE_MODE_TRGMII,
24 PHY_INTERFACE_MODE_100BASEX,
25 @@ -201,6 +202,8 @@ static inline const char *phy_modes(phy_
26 return "xlgmii";
27 case PHY_INTERFACE_MODE_MOCA:
28 return "moca";
29 + case PHY_INTERFACE_MODE_HSGMII:
30 + return "hsgmii";
31 case PHY_INTERFACE_MODE_QSGMII:
32 return "qsgmii";
33 case PHY_INTERFACE_MODE_TRGMII: