mvebu: refresh 5.15 patches
authorRui Salvaterra <rsalvaterra@gmail.com>
Sun, 10 Apr 2022 11:42:32 +0000 (12:42 +0100)
committerRui Salvaterra <rsalvaterra@gmail.com>
Tue, 16 Aug 2022 21:38:31 +0000 (22:38 +0100)
Deleted (upstreamed):
303-linksys_hardcode_nand_ecc_settings.patch [1]

Deleted (not needed):
314-arm64-dts-uDPU-switch-PHY-operation-mode-to-2500base.patch [2]

Manually rebased:
700-mvneta-tx-queue-workaround.patch

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4daff3e5b42422cd4af758cc7768223d2b7f6e14
[2] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=7f73acade0cde61341cb77e0dc74de51ac059d4f

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
16 files changed:
target/linux/mvebu/patches-5.15/300-mvebu-Mangle-bootloader-s-kernel-arguments.patch
target/linux/mvebu/patches-5.15/302-add_powertables.patch
target/linux/mvebu/patches-5.15/303-linksys_hardcode_nand_ecc_settings.patch [deleted file]
target/linux/mvebu/patches-5.15/314-arm64-dts-uDPU-switch-PHY-operation-mode-to-2500base.patch [deleted file]
target/linux/mvebu/patches-5.15/700-mvneta-tx-queue-workaround.patch
target/linux/mvebu/patches-5.15/702-net-next-ethernet-marvell-mvnetaMQPrioOffload.patch
target/linux/mvebu/patches-5.15/703-net-next-ethernet-marvell-mvnetaMQPrioFlag.patch
target/linux/mvebu/patches-5.15/704-net-next-ethernet-marvell-mvnetaMQPrioQueue.patch
target/linux/mvebu/patches-5.15/705-net-next-ethernet-marvell-mvnetaMQPrioTCOffload.patch
target/linux/mvebu/patches-5.15/801-pci-mvebu-time-out-reset-on-link-up.patch
target/linux/mvebu/patches-5.15/901-dt-bindings-Add-IEI-vendor-prefix-and-IEI-WT61P803-P.patch
target/linux/mvebu/patches-5.15/902-drivers-mfd-Add-a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch
target/linux/mvebu/patches-5.15/903-drivers-hwmon-Add-the-IEI-WT61P803-PUZZLE-HWMON-driv.patch
target/linux/mvebu/patches-5.15/904-drivers-leds-Add-the-IEI-WT61P803-PUZZLE-LED-driver.patch
target/linux/mvebu/patches-5.15/906-Documentation-hwmon-Add-iei-wt61p803-puzzle-hwmon-dr.patch
target/linux/mvebu/patches-5.15/907-MAINTAINERS-Add-an-entry-for-the-IEI-WT61P803-PUZZLE.patch

index 36f10fcfb52c5b64ccfbb73bf94a7bc0b1184013..071ea6742dfe6b5a9dfe6b4ddcea328b3fd532ca 100644 (file)
@@ -28,7 +28,7 @@ Signed-off-by: Michael Gray <michael.gray@lantisproject.com>
 
 --- a/arch/arm/Kconfig
 +++ b/arch/arm/Kconfig
-@@ -1781,6 +1781,17 @@ config ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEN
+@@ -1727,6 +1727,17 @@ config ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEN
          The command-line arguments provided by the boot loader will be
          appended to the the device tree bootargs property.
  
@@ -176,7 +176,7 @@ Signed-off-by: Michael Gray <michael.gray@lantisproject.com>
  }
 --- a/init/main.c
 +++ b/init/main.c
-@@ -110,6 +110,10 @@
+@@ -113,6 +113,10 @@
  
  #include <kunit/test.h>
  
@@ -187,7 +187,7 @@ Signed-off-by: Michael Gray <michael.gray@lantisproject.com>
  static int kernel_init(void *);
  
  extern void init_IRQ(void);
-@@ -904,6 +908,18 @@ asmlinkage __visible void __init __no_sa
+@@ -990,6 +994,18 @@ asmlinkage __visible void __init __no_sa
        page_alloc_init();
  
        pr_notice("Kernel command line: %s\n", saved_command_line);
index efbbbc7d786ac6cd0b8e9e68bafb85c1ea60620b..93ad5de2cc40b1f1901a6b835ee257510af87a80 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi
 +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
-@@ -212,11 +212,19 @@
+@@ -214,11 +214,19 @@
  &pcie1 {
        /* Marvell 88W8864, 5GHz-only */
        status = "okay";
diff --git a/target/linux/mvebu/patches-5.15/303-linksys_hardcode_nand_ecc_settings.patch b/target/linux/mvebu/patches-5.15/303-linksys_hardcode_nand_ecc_settings.patch
deleted file mode 100644 (file)
index 89a5e19..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Newer Linksys boards might come with a Winbond W29N02GV which can be
-configured in different ways. Make sure we configure it the same way
-as the older chips so everything keeps working.
-
-Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
-
---- a/arch/arm/boot/dts/armada-385-linksys.dtsi
-+++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
-@@ -148,6 +148,8 @@
-               reg = <0>;
-               label = "pxa3xx_nand-0";
-               nand-rb = <0>;
-+              nand-ecc-strength = <4>;
-+              nand-ecc-step-size = <512>;
-               marvell,nand-keep-config;
-               nand-on-flash-bbt;
-       };
diff --git a/target/linux/mvebu/patches-5.15/314-arm64-dts-uDPU-switch-PHY-operation-mode-to-2500base.patch b/target/linux/mvebu/patches-5.15/314-arm64-dts-uDPU-switch-PHY-operation-mode-to-2500base.patch
deleted file mode 100644 (file)
index 2240d0b..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-Certain SFP modules (most notably Nokia GPON ones) first check
-connectivity on 1000base-x, and switch to 2500base-x afterwards. This
-is considered a quirk so the phylink switches the interface to
-2500base-x as well.
-
-However, after power-cycling the uDPU device, network interface/SFP module
-will not work correctly until the module is re-seated. This patch
-resolves this issue by forcing the interface to be brought up in
-2500base-x mode by default.
-
-Signed-off-by: Jakov Petrina <jakov.petrina@sartura.hr>
-Signed-off-by: Vladimir Vid <vladimir.vid@sartura.hr>
-Cc: Luka Perkov <luka.perkov@sartura.hr>
-
---- a/arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts
-+++ b/arch/arm64/boot/dts/marvell/armada-3720-uDPU.dts
-@@ -162,7 +162,7 @@
- };
- &eth0 {
--      phy-mode = "sgmii";
-+      phy-mode = "2500base-x";
-       status = "okay";
-       managed = "in-band-status";
-       phys = <&comphy1 0>;
-@@ -170,7 +170,7 @@
- };
- &eth1 {
--      phy-mode = "sgmii";
-+      phy-mode = "2500base-x";
-       status = "okay";
-       managed = "in-band-status";
-       phys = <&comphy0 1>;
index a0f15681f52fd80e6cfd356e91bd0992a8f93254..6c07a2915b25dc3b756f8ec72bb0c13b4cd3552c 100644 (file)
@@ -9,8 +9,8 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 ---
 --- a/drivers/net/ethernet/marvell/mvneta.c
 +++ b/drivers/net/ethernet/marvell/mvneta.c
-@@ -4903,6 +4903,16 @@ static int mvneta_ethtool_set_eee(struct
-       return phylink_ethtool_set_eee(pp->phylink, eee);
+@@ -4987,6 +4987,16 @@ static int mvneta_setup_tc(struct net_de
+       }
  }
  
 +#ifndef CONFIG_ARM64
@@ -26,13 +26,13 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  static const struct net_device_ops mvneta_netdev_ops = {
        .ndo_open            = mvneta_open,
        .ndo_stop            = mvneta_stop,
-@@ -4913,6 +4923,9 @@ static const struct net_device_ops mvnet
+@@ -4997,6 +5007,9 @@ static const struct net_device_ops mvnet
        .ndo_fix_features    = mvneta_fix_features,
        .ndo_get_stats64     = mvneta_get_stats64,
-       .ndo_do_ioctl        = mvneta_ioctl,
+       .ndo_eth_ioctl        = mvneta_ioctl,
 +#ifndef CONFIG_ARM64
 +      .ndo_select_queue    = mvneta_select_queue,
 +#endif
        .ndo_bpf             = mvneta_xdp,
        .ndo_xdp_xmit        = mvneta_xdp_xmit,
- };
+       .ndo_setup_tc        = mvneta_setup_tc,
index 41f8c1fbfd691d65d950f48568fbbe962a68bdb8..96f5042e690bf4ff65f0e975be9737159237e959 100644 (file)
@@ -26,7 +26,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  #include <linux/bpf_trace.h>
  
  /* Registers */
-@@ -4933,14 +4934,14 @@ static void mvneta_setup_rx_prio_map(str
+@@ -4947,14 +4948,14 @@ static void mvneta_setup_rx_prio_map(str
  }
  
  static int mvneta_setup_mqprio(struct net_device *dev,
@@ -44,7 +44,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  
        if (num_tc > rxq_number)
                return -EINVAL;
-@@ -4951,13 +4952,15 @@ static int mvneta_setup_mqprio(struct ne
+@@ -4965,13 +4966,15 @@ static int mvneta_setup_mqprio(struct ne
                return 0;
        }
  
index 8529b6ae5e467ed564710076b6d494bdc93572aa..997f301f39cdab5c5530be1f13e19a0c93bb756a 100644 (file)
@@ -17,7 +17,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
 
 --- a/drivers/net/ethernet/marvell/mvneta.c
 +++ b/drivers/net/ethernet/marvell/mvneta.c
-@@ -4940,7 +4940,9 @@ static int mvneta_setup_mqprio(struct ne
+@@ -4954,7 +4954,9 @@ static int mvneta_setup_mqprio(struct ne
        u8 num_tc;
        int i;
  
index ed4f0441dd07a41cf30567b6bf8ba28c4b81005b..73563a57a018197897f86fd02fdb1f8ea0a346f9 100644 (file)
@@ -30,7 +30,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  
        phy_interface_t phy_interface;
        struct device_node *dn;
-@@ -4922,13 +4921,12 @@ static void mvneta_clear_rx_prio_map(str
+@@ -4936,13 +4935,12 @@ static void mvneta_clear_rx_prio_map(str
        mvreg_write(pp, MVNETA_VLAN_PRIO_TO_RXQ, 0);
  }
  
@@ -48,7 +48,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  
        mvreg_write(pp, MVNETA_VLAN_PRIO_TO_RXQ, val);
  }
-@@ -4937,8 +4935,8 @@ static int mvneta_setup_mqprio(struct ne
+@@ -4951,8 +4949,8 @@ static int mvneta_setup_mqprio(struct ne
                               struct tc_mqprio_qopt_offload *mqprio)
  {
        struct mvneta_port *pp = netdev_priv(dev);
@@ -58,7 +58,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  
        if (mqprio->qopt.hw != TC_MQPRIO_HW_OFFLOAD_TCS)
                return 0;
-@@ -4948,21 +4946,28 @@ static int mvneta_setup_mqprio(struct ne
+@@ -4962,21 +4960,28 @@ static int mvneta_setup_mqprio(struct ne
        if (num_tc > rxq_number)
                return -EINVAL;
  
index 15a0ce6b583ee06559ca5a8778e64eb050f3a842..7b837d0b49defe1aca34527ff652fd7cf8e76a18 100644 (file)
@@ -62,7 +62,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
  #define MVNETA_LPI_CTRL_0                        0x2cc0
  #define MVNETA_LPI_CTRL_1                        0x2cc4
  #define      MVNETA_LPI_REQUEST_ENABLE           BIT(0)
-@@ -4931,11 +4958,74 @@ static void mvneta_map_vlan_prio_to_rxq(
+@@ -4945,11 +4972,74 @@ static void mvneta_map_vlan_prio_to_rxq(
        mvreg_write(pp, MVNETA_VLAN_PRIO_TO_RXQ, val);
  }
  
@@ -138,7 +138,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
        u8 num_tc;
  
        if (mqprio->qopt.hw != TC_MQPRIO_HW_OFFLOAD_TCS)
-@@ -4949,6 +5039,7 @@ static int mvneta_setup_mqprio(struct ne
+@@ -4963,6 +5053,7 @@ static int mvneta_setup_mqprio(struct ne
        mvneta_clear_rx_prio_map(pp);
  
        if (!num_tc) {
@@ -146,7 +146,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
                netdev_reset_tc(dev);
                return 0;
        }
-@@ -4969,6 +5060,33 @@ static int mvneta_setup_mqprio(struct ne
+@@ -4983,6 +5074,33 @@ static int mvneta_setup_mqprio(struct ne
                }
        }
  
index a5e49552e96301fe1f6d0bc32369c5ca8a885099..dba12536993133a9059580361207e46646f54483 100644 (file)
@@ -13,7 +13,7 @@ Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
 
 --- a/drivers/pci/controller/pci-mvebu.c
 +++ b/drivers/pci/controller/pci-mvebu.c
-@@ -941,6 +941,7 @@ static int mvebu_pcie_powerup(struct mve
+@@ -1023,6 +1023,7 @@ static int mvebu_pcie_powerup(struct mve
  
        if (port->reset_gpio) {
                u32 reset_udelay = PCI_PM_D3COLD_WAIT * 1000;
@@ -21,7 +21,7 @@ Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
  
                of_property_read_u32(port->dn, "reset-delay-us",
                                     &reset_udelay);
-@@ -948,7 +949,13 @@ static int mvebu_pcie_powerup(struct mve
+@@ -1030,7 +1031,13 @@ static int mvebu_pcie_powerup(struct mve
                udelay(100);
  
                gpiod_set_value_cansleep(port->reset_gpio, 0);
@@ -36,7 +36,7 @@ Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
        }
  
        return 0;
-@@ -1108,15 +1115,16 @@ static int mvebu_pcie_probe(struct platf
+@@ -1190,15 +1197,16 @@ static int mvebu_pcie_probe(struct platf
                if (!child)
                        continue;
  
index 28b2b19499d549422a0b8df26948e2d29908b6a5..3446086cadfed359a56c70059b135566660af57a 100644 (file)
@@ -207,7 +207,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
 +    };
 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
 +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
-@@ -475,6 +475,8 @@ patternProperties:
+@@ -519,6 +519,8 @@ patternProperties:
      description: IC Plus Corp.
    "^idt,.*":
      description: Integrated Device Technologies, Inc.
index 01c2ecce0d08f562147755fe820a5c0159273d05..84d995b902a46e9ec8ef5a69eea79a380bebf668 100644 (file)
@@ -26,7 +26,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
 
 --- a/drivers/mfd/Kconfig
 +++ b/drivers/mfd/Kconfig
-@@ -2155,6 +2155,15 @@ config SGI_MFD_IOC3
+@@ -2187,6 +2187,15 @@ config SGI_MFD_IOC3
          If you have an SGI Origin, Octane, or a PCI IOC3 card,
          then say Y. Otherwise say N.
  
@@ -44,8 +44,8 @@ Cc: Robert Marko <robert.marko@sartura.hr>
        depends on SPI_MASTER
 --- a/drivers/mfd/Makefile
 +++ b/drivers/mfd/Makefile
-@@ -237,6 +237,7 @@ obj-$(CONFIG_MFD_HI655X_PMIC)   += hi655
- obj-$(CONFIG_MFD_DLN2)                += dln2.o
+@@ -237,6 +237,7 @@ obj-$(CONFIG_MFD_DLN2)             += dln2.o
+ obj-$(CONFIG_MFD_RT4831)      += rt4831.o
  obj-$(CONFIG_MFD_RT5033)      += rt5033.o
  obj-$(CONFIG_MFD_SKY81452)    += sky81452.o
 +obj-$(CONFIG_MFD_IEI_WT61P803_PUZZLE) += iei-wt61p803-puzzle.o
index 684f09c800debe0378ec33ef3a677ef73374e5af..c22314e41c5be6bec85bb7e834688a0bd1be8cd1 100644 (file)
@@ -26,7 +26,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
 
 --- a/drivers/hwmon/Kconfig
 +++ b/drivers/hwmon/Kconfig
-@@ -722,6 +722,14 @@ config SENSORS_IBMPOWERNV
+@@ -732,6 +732,14 @@ config SENSORS_IBMPOWERNV
          This driver can also be built as a module. If so, the module
          will be called ibmpowernv.
  
@@ -43,7 +43,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
        depends on IIO
 --- a/drivers/hwmon/Makefile
 +++ b/drivers/hwmon/Makefile
-@@ -83,6 +83,7 @@ obj-$(CONFIG_SENSORS_HIH6130)        += hih6130
+@@ -84,6 +84,7 @@ obj-$(CONFIG_SENSORS_HIH6130)        += hih6130
  obj-$(CONFIG_SENSORS_ULTRA45) += ultra45_env.o
  obj-$(CONFIG_SENSORS_I5500)   += i5500_temp.o
  obj-$(CONFIG_SENSORS_I5K_AMB) += i5k_amb.o
index 37f98b6ba8b73377d12de54e04efacf91dd1a823..a3fc731c471967c0731e05d3c5b751e40de15959 100644 (file)
@@ -30,7 +30,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
 
 --- a/drivers/leds/Kconfig
 +++ b/drivers/leds/Kconfig
-@@ -333,6 +333,14 @@ config LEDS_IPAQ_MICRO
+@@ -306,6 +306,14 @@ config LEDS_IPAQ_MICRO
          Choose this option if you want to use the notification LED on
          Compaq/HP iPAQ h3100 and h3600.
  
@@ -47,14 +47,14 @@ Cc: Robert Marko <robert.marko@sartura.hr>
        depends on LEDS_CLASS
 --- a/drivers/leds/Makefile
 +++ b/drivers/leds/Makefile
-@@ -35,6 +35,7 @@ obj-$(CONFIG_LEDS_HP6XX)             += leds-hp6xx.
+@@ -33,6 +33,7 @@ obj-$(CONFIG_LEDS_HP6XX)             += leds-hp6xx.
  obj-$(CONFIG_LEDS_INTEL_SS4200)               += leds-ss4200.o
  obj-$(CONFIG_LEDS_IP30)                       += leds-ip30.o
  obj-$(CONFIG_LEDS_IPAQ_MICRO)         += leds-ipaq-micro.o
 +obj-$(CONFIG_LEDS_IEI_WT61P803_PUZZLE)        += leds-iei-wt61p803-puzzle.o
  obj-$(CONFIG_LEDS_IS31FL319X)         += leds-is31fl319x.o
  obj-$(CONFIG_LEDS_IS31FL32XX)         += leds-is31fl32xx.o
- obj-$(CONFIG_LEDS_KTD2692)            += leds-ktd2692.o
+ obj-$(CONFIG_LEDS_LM3530)             += leds-lm3530.o
 --- /dev/null
 +++ b/drivers/leds/leds-iei-wt61p803-puzzle.c
 @@ -0,0 +1,147 @@
index 345d4ca03b2516f2ffbe28c119d581eefe5cefd0..9015436f6a4c9c6e7ca7dd7bb6931c263e1eb2a2 100644 (file)
@@ -64,7 +64,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
 +================= == =====================================================
 --- a/Documentation/hwmon/index.rst
 +++ b/Documentation/hwmon/index.rst
-@@ -71,6 +71,7 @@ Hardware Monitoring Kernel Drivers
+@@ -74,6 +74,7 @@ Hardware Monitoring Kernel Drivers
     ibmaem
     ibm-cffps
     ibmpowernv
index 577a9b40def5f80a4895abd0133ab667c8f8f380..f2f4748e00144f8f8a848cfecb30de780a176f63 100644 (file)
@@ -16,7 +16,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
 
 --- a/MAINTAINERS
 +++ b/MAINTAINERS
-@@ -8538,6 +8538,22 @@ F:      include/net/nl802154.h
+@@ -9066,6 +9066,22 @@ F:      include/net/nl802154.h
  F:    net/ieee802154/
  F:    net/mac802154/