diff --git a/debian/changelog b/debian/changelog index f269c85c8..08314dbe8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,8 @@ linux (4.15.4-2) UNRELEASED; urgency=medium * [arm64] Enable ROCKCHIP_IODOMAIN as a module, to enable PCIe reset. * [arm64] Enable REGULATOR_FAN53555 as a module, enabling cpufreq to work on rk3399 A72 cores. + * [arm64] Apply patch from linux-next to fix eMMC corruption on + Odroid-C2 (Closes: #879072). -- Uwe Kleine-König Fri, 23 Feb 2018 13:08:33 +0100 diff --git a/debian/patches/bugfix/arm64/ARM64-dts-meson-reduce-odroid-c2-eMMC-maximum-rate.patch b/debian/patches/bugfix/arm64/ARM64-dts-meson-reduce-odroid-c2-eMMC-maximum-rate.patch new file mode 100644 index 000000000..214a8e359 --- /dev/null +++ b/debian/patches/bugfix/arm64/ARM64-dts-meson-reduce-odroid-c2-eMMC-maximum-rate.patch @@ -0,0 +1,43 @@ +Origin: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts?h=next-20180309&id=c04ffa71ff491220cac28f55237c9aad379a8656 +From c04ffa71ff491220cac28f55237c9aad379a8656 Mon Sep 17 00:00:00 2001 +From: Jerome Brunet +Date: Fri, 2 Mar 2018 14:44:36 +0100 +Subject: [PATCH] ARM64: dts: meson: reduce odroid-c2 eMMC maximum rate + +Different modules maybe installed by the user on the eMMC connector +of the odroid-c2. While the red modules are working without an issue, +it seems some black modules (apparently Samsung based) are having +issue at 200MHz + +While the tuning algorithm introduced in v4.14 enables high speed modes +on every other tested designs, it seems a problem remains for this +particular combination of board and eMMC module. + +Lowering the maximum frequency of the eMMC on this board until we can +figure out a better solution. + +Fixes: d341ca88eead ("mmc: meson-gx: rework tuning function") +Suggested-by: Ellie Reeves +Signed-off-by: Jerome Brunet +Cc: stable@vger.kernel.org +Signed-off-by: Kevin Hilman +--- + arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +index 0bc0f65e4f37..54954b314a45 100644 +--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts ++++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +@@ -274,7 +274,7 @@ + pinctrl-names = "default", "clk-gate"; + + bus-width = <8>; +- max-frequency = <200000000>; ++ max-frequency = <100000000>; + non-removable; + disable-wp; + cap-mmc-highspeed; +-- +2.11.0 + diff --git a/debian/patches/series b/debian/patches/series index cf0df77a9..5d4efe634 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -134,6 +134,7 @@ bugfix/all/tools-build-remove-bpf-run-time-check-at-build-time.patch bugfix/all/cpupower-bump-soname-version.patch bugfix/all/cpupower-fix-checks-for-cpu-existence.patch bugfix/all/lockdep-stub-nmi-watchdog-reset.patch +bugfix/arm64/ARM64-dts-meson-reduce-odroid-c2-eMMC-maximum-rate.patch # Backport patches from linux-next (next-20180103) to support SMP on tegra210 systems features/arm64/tegra210-smp/0001-arm64-tegra-Add-CPU-and-PSCI-nodes-for-NVIDIA-Tegra2.patch