lede/target/linux
Shane Synan be692b5939 ipq806x: revert SDC clock changes for NBG6817 MMC
Revert the SDC "CLK_SET_RATE_GATE" changes to the SDC clock regulator
structures.

See https://elinux.org/images/b/b8/Elc2013_Clement.pdf
> if ((clk->flags & CLK_SET_RATE_GATE) && clk->prepare_count) {
>
> For this particular clock, setting its rate is possible only if the
> clock is ungated (not yet prepared)

This fixes the MMC failing to initialize on newer ZyXEL NBG6817
hardware revisions with Kingston MMC.  Older revisions should
hopefully be unaffected.

Check MMC hardware details with:
cd /sys/block/mmcblk0/device/ && \
  tail -v cid date name manfid fwrev hwrev oemid rev

Known problematic MMC names (broken before this commit):
* M62704 (dated 12/2018) via myself
* M62704 (dated 11/2018) via Drake Stefani

Known unaffected MMC names (already working without this commit):
* S10004 (dated 12/2015) via slh

Now, the MMC properly initializes and later switches to high speed.

Thanks to:
* Ansuel for maintaining/help with the IPQ806x platform, kernel code
* slh for additional debugging and suggestions
* dwfreed for confirming newer MMC details, clock frequency
* robimarko for device driver debug printing help, clock debugging
* Drake for testing and confirmation with their own newer NBG6817
...and anyone else I missed!

Signed-off-by: Shane Synan <digitalcircuit36939@gmail.com>
Tested-by: Shane Synan <digitalcircuit36939@gmail.com>
2021-12-16 09:22:06 +08:00
..
apm821xx kernel: bump 5.4 to 5.4.161 (#8294) 2021-11-24 14:38:23 +08:00
arc770 x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
archs38 x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
armvirt x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
at91 x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
ath25 kernel: bump 5.4 to 5.4.155 (#8102) 2021-10-22 11:55:35 +08:00
ath79 kernel: bump 5.4 to 5.4.161 (#8294) 2021-11-24 14:38:23 +08:00
bcm27xx kernel: bump 5.10 to 5.10.84 (#8411) 2021-12-10 23:47:33 +08:00
bcm47xx bcm47xx: use device vendor/model variable (#7923) 2021-09-29 21:12:52 +08:00
bcm53xx kernel: bump 5.10 to 5.10.76 (#8136) 2021-10-31 16:27:59 +08:00
bcm63xx kernel: bump 5.4 to 5.4.162 (#8318) 2021-11-27 18:14:55 +08:00
bcm4908 kernel: bump 5.4 to 5.4.155 (#8102) 2021-10-22 11:55:35 +08:00
bmips kernel: bump 5.10 to 5.10.73 (#8064) 2021-10-17 14:53:09 +08:00
gemini kernel: bump 5.10 to 5.10.70 (#7976) 2021-10-04 22:25:52 +08:00
generic kernel: bump 5.10 to 5.10.84 (#8411) 2021-12-10 23:47:33 +08:00
imx6 x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
ipq40xx kernel: bump 5.4 to 5.4.158 (#8207) 2021-11-09 08:06:15 +08:00
ipq60xx kernel: bump 5.10 to 5.10.84 (#8411) 2021-12-10 23:47:33 +08:00
ipq806x ipq806x: revert SDC clock changes for NBG6817 MMC 2021-12-16 09:22:06 +08:00
ipq807x kernel: bump 5.10 to 5.10.73 (#8064) 2021-10-17 14:53:09 +08:00
kirkwood x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
lantiq kernel: bump 5.4 to 5.4.162 (#8318) 2021-11-27 18:14:55 +08:00
layerscape kernel: bump 5.4 to 5.4.162 (#8318) 2021-11-27 18:14:55 +08:00
malta x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
mediatek mediatek: Add support for Xiaomi Redmi Router AX6S 2021-12-03 12:25:39 +08:00
mpc85xx kernel: bump 5.10 to 5.10.80 (#8280) 2021-11-20 01:41:26 +08:00
mvebu kernel: bump 5.10 to 5.10.82 (#8303) 2021-11-27 03:02:35 +08:00
mxs x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
octeon kernel: bump 5.10 to 5.10.60 (#7688) 2021-08-23 21:50:56 +08:00
octeontx kernel: bump 5.4 to 5.4.161 (#8294) 2021-11-24 14:38:23 +08:00
omap x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
oxnas kernel: bump 5.10 to 5.10.82 (#8303) 2021-11-27 03:02:35 +08:00
pistachio x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
ramips ramips: mt76x8: add missing config (#8440) 2021-12-15 15:38:10 +08:00
realtek kernel: bump 5.4 to 5.4.162 (#8318) 2021-11-27 18:14:55 +08:00
rockchip rockchip: fix rk3399 DoorNet2 emmc clk (#8295) 2021-11-24 14:37:30 +08:00
sunxi x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
tegra x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
uml x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
x86 x86: added support to generate VHDX images (#8399) 2021-12-08 16:10:18 +08:00
zynq x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
Makefile add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00