openwrt/target/linux/ipq806x/patches-5.4
Mark Mentovai d62825dd77 ipq806x: dwmac: fix GMACs connected via SGMII fixed-link
fa731838c5 cleared the forced speed in the QSGMII PCS_ALL_CH_CTL
register during probe, but this is only correct for GMACs that are not
configured with fixed-link. This prevented GMACs configured with both
phy-mode = "sgmii" and fixed-link from working properly, as discussed at
https://github.com/openwrt/openwrt/pull/3954#issuecomment-834625090 and
the comments that follow. Notably, this prevented all communication
between gmac2 and the switch on the Netgear R7800.

The correct behavior is to set the QSGMII PCS_ALL_CH_CTL register by
considering the gmac's fixed-link child, setting the speed as directed by
fixed-link if present, and otherwise clearing it as was done previously.

Fixes: fa731838c5 ("ipq806x: dwmac: clear forced speed during probe")
Signed-off-by: Mark Mentovai <mark@moxienet.com>
Tested-by: Hannu Nyman <hannu.nyman@iki.fi>
Run-tested: ipq806x/ubnt,unifi-ac-hd, ipq806x/netgear,r7800
Cc: Petr Štetiar <ynezz@true.cz>
Cc: Ansuel Smith <ansuelsmth@gmail.com>
Tested-by:  Ansuel Smith <ansuelsmth@gmail.com>
2021-05-08 18:45:42 +02:00
..
080-v5.7-ARM-dts-qcom-add-gpio-ranges-property.patch ipq806x: use qcom-ipq8064.dtsi from upstream 2020-08-05 23:08:03 +02:00
081-v5.8-ARM-dts-qcom-add-scm-definition-to-ipq806x.patch ipq806x: use qcom-ipq8064.dtsi from upstream 2020-08-05 23:08:03 +02:00
082-ipq8064-dtsi-tweaks.patch ipq806x: use qcom-ipq8064.dtsi from upstream 2020-08-05 23:08:03 +02:00
083-ipq8064-dtsi-additions.patch ipq806x: Add "snps,dwmac" to all gmac compatible= 2021-05-07 07:05:16 +02:00
084-ipq8064-v1.0-dtsi-cleanup.patch ipq806x: use qcom-ipq8064-v1.0.dtsi from upstream 2020-08-05 23:08:03 +02:00
085-ipq8064-v1.0-dtsi-additions.patch ipq806x: replace pci patchset with upstream version 2020-08-24 14:09:11 +02:00
086-v5.8-pinctrl-qom-use-scm_call-to-route-GPIO-irq-to-Apps.patch ipq806x: replace patches with upstream version 2020-08-08 18:07:17 +02:00
087-v5.8-ipq8064-pinctrl-Fixed-missing-RGMII-pincontrol-defin.patch ipq806x: replace patches with upstream version 2020-08-08 18:07:17 +02:00
088-v5.8-watchdog-qcom-wdt-disable-pretimeout-on-timer-platfo.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-03-04 22:06:53 +01:00
089-v5.8-ipq806x-gcc-Added-the-enable-regs-and-mask-for-PRNG.patch ipq806x: replace patches with upstream version 2020-08-08 18:07:17 +02:00
090-v5.8-clk-clk-rpm-fixes.patch ipq806x: replace patches with upstream version 2020-08-08 18:07:17 +02:00
091-v5.8-regulator-add-smb208-support.patch ipq806x: replace patches with upstream version 2020-08-08 18:07:17 +02:00
092-1-v5.7-qcom-cpufreq-nvmem-Add-support-for-krait-based-socs.patch kernel: bump 5.4 to 5.4.109 2021-04-02 16:45:28 +02:00
092-2-v5.7-cpufreq-qcom-fix-wrong-compatible-binding.patch ipq806x: replace nvmem qcom patch with upstream version 2020-08-13 02:12:12 +02:00
093-4-v5.8-ipq806x-PCI-qcom-Use-bulk-clk-api-and-assert-on-error.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-03-04 22:06:53 +01:00
093-7-v5.8-ipq806x-PCI-qcom-Add-ipq8064-rev2-variant.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-03-04 22:06:53 +01:00
093-8-v5.8-ipq806x-PCI-qcom-Support-pci-speed-set-for-ipq806x.patch kernel-5.4: bump to 5.4.102 and refresh patches 2021-03-04 22:06:53 +01:00
093-drivers-cpufreq-qcom-cpufreq-nvmem-support-specific-.patch ipq806x: backport cpufreq changes to 5.4 2021-05-07 07:05:16 +02:00
094-v5.7-ipq806x-net-mdio-add-ipq8064-mdio-driver.patch kernel: bump 5.4 to 5.4.79 2020-11-24 15:36:59 +01:00
095-1-v5.9-phy-qualcomm-add-qcom-ipq806x-dwc-usb-phy-driver.patch ipq806x: replace phy dwc3 patch with upstream version 2020-08-13 02:12:12 +02:00
095-2-v5.9-phy-qualcomm-fix-setting-of-tx_deamp_3_5db-when-device-property-read-fails.patch ipq806x: replace phy dwc3 patch with upstream version 2020-08-13 02:12:12 +02:00
098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch ipq806x: backport cpufreq changes to 5.4 2021-05-07 07:05:16 +02:00
098-2-Documentation-cpufreq-add-qcom-krait-cpufreq-binding.patch ipq806x: backport cpufreq changes to 5.4 2021-05-07 07:05:16 +02:00
098-3-add-fab-scaling-support-with-cpufreq.patch ipq806x: backport cpufreq changes to 5.4 2021-05-07 07:05:16 +02:00
100-dwmac-ipq806x-qsgmii-pcs-all-ch-ctl.patch ipq806x: dwmac: fix GMACs connected via SGMII fixed-link 2021-05-08 18:45:42 +02:00
100-v5.11-dmaengine-qcom-add_ADM_driver.patch ipq806x: backport mtd adm and smem driver 2021-05-07 07:05:16 +02:00
101-5.12-mtd-parsers-Add-Qcom-SMEM-parser.patch ipq806x: backport mtd adm and smem driver 2021-05-07 07:05:16 +02:00
102-mtd-rootfs-conflicts-with-OpenWrt-auto-mounting.patch ipq806x: backport mtd adm and smem driver 2021-05-07 07:05:16 +02:00
850-soc-add-qualcomm-syscon.patch
851-add-gsbi1-dts.patch kernel: bump 5.4 to 5.4.66 2020-09-19 12:41:29 +02:00
900-arm-add-cmdline-override.patch ipq806x: fix 900-arm-add-cmdline-override.patch 2021-01-01 22:10:20 +01:00
997-device_tree_cmdline.patch ipq806x: add support for ASRock G10 2020-12-22 19:11:50 +01:00
0001-dtbindings-qcom_adm-Fix-channel-specifiers.patch
0030-clk-Disable-i2c-device-on-gsbi4.patch
0033-ARM-qcom-automatically-select-PCI_DOMAINS-if-PCI-is-.patch
0059-ARM-cpuidle-Add-cpuidle-support-for-QCOM-cpus.patch
0060-HACK-arch-arm-force-ZRELADDR-on-arch-qcom.patch
0063-1-ipq806x-tsens-driver.patch ipq806x: fix tsens driver 2020-03-03 23:38:23 +01:00
0063-2-tsens-support-configurable-interrupts.patch ipq806x: fix tsens driver 2020-03-03 23:38:23 +01:00
0063-3-tsens-fix-kernel-5_4.patch ipq806x: fix tsens driver 2020-03-03 23:38:23 +01:00
0063-4-ip806x-tsense-rework-driver.patch ipq806x: fix tsens driver 2020-03-03 23:38:23 +01:00
0065-arm-override-compiler-flags.patch
0067-generic-Mangle-bootloader-s-kernel-arguments.patch kernel: bump 5.4 to 5.4.75 2020-11-10 13:11:32 +01:00
0069-arm-boot-add-dts-files.patch ipq806x: add support for Ubiquiti UniFi AC HD 2021-01-14 01:03:54 +01:00
0072-add-ipq806x-with-no-clocks.patch kernel: Update kernel 5.4 to version 5.4.50 2020-07-04 21:12:42 +02:00