kernel: qca-ssdk: update to 12.4
[openwrt/staging/jow.git] / package / kernel / qca-ssdk / patches / 0002-qca807x-add-a-LED-quirk-for-Xiaomi-AX3600.patch
1 From 957ee476ddec289973e0af07917da7bfee660af0 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Tue, 7 Nov 2023 12:24:17 +0100
4 Subject: [PATCH 2/3] qca807x: add a LED quirk for Xiaomi AX3600
5
6 AX3600 requires the same LED quirk so that PHY LED-s will blink even
7 once Linux resets the PHY.
8
9 So, just check for its compatible.
10
11 Signed-off-by: Robert Marko <robimarko@gmail.com>
12 ---
13 src/hsl/phy/malibu_phy.c | 5 +++--
14 1 file changed, 3 insertions(+), 2 deletions(-)
15
16 --- a/src/hsl/phy/malibu_phy.c
17 +++ b/src/hsl/phy/malibu_phy.c
18 @@ -1811,8 +1811,9 @@ malibu_phy_hw_init(a_uint32_t dev_id, a_
19 hsl_phy_modify_mmd(dev_id, phy_addr, A_FALSE, MALIBU_PHY_MMD7_NUM,
20 MALIBU_PHY_MMD7_LED_1000_CTRL1, MALIBU_LED_1000_CTRL1_100_10_MASK,
21 MALIBU_LED_1000_CTRL1_100_10_MASK);
22 - if (of_machine_is_compatible("xiaomi,ax9000")) {
23 - /* add 1000M link LED behavior for Xiaomi AX9000 */
24 + if (of_machine_is_compatible("xiaomi,ax9000") ||
25 + of_machine_is_compatible("xiaomi,ax3600")) {
26 + /* add 1000M link LED behavior for Xiaomi boards */
27 hsl_phy_modify_mmd(dev_id, phy_addr, A_FALSE, MALIBU_PHY_MMD7_NUM,
28 MALIBU_PHY_MMD7_LED_100_CTRL1,
29 MALIBU_LED_100_CTRL1_1000_MASK,