[PATCH 4.14 062/173] ARM: dts: qcom: msm8974-hammerhead: increase load on l20 for sdhci

2018-09-24 Thread Greg Kroah-Hartman
4.14-stable review patch.  If anyone has any objections, please let me know.

--

From: Bhushan Shah 

[ Upstream commit 03864e57770a9541e7ff3990bacf2d9a2fffcd5d ]

The kernel would not boot on the hammerhead hardware due to the
following error:

mmc0: Timeout waiting for hardware interrupt.
mmc0: sdhci:  SDHCI REGISTER DUMP ===
mmc0: sdhci: Sys addr:  0x0200 | Version:  0x3802
mmc0: sdhci: Blk size:  0x0200 | Blk cnt:  0x0200
mmc0: sdhci: Argument:  0x | Trn mode: 0x0023
mmc0: sdhci: Present:   0x03e8 | Host ctl: 0x0034
mmc0: sdhci: Power: 0x0001 | Blk gap:  0x
mmc0: sdhci: Wake-up:   0x | Clock:0x0007
mmc0: sdhci: Timeout:   0x000e | Int stat: 0x
mmc0: sdhci: Int enab:  0x02ff900b | Sig enab: 0x02ff100b
mmc0: sdhci: AC12 err:  0x | Slot int: 0x
mmc0: sdhci: Caps:  0x642dc8b2 | Caps_1:   0x8007
mmc0: sdhci: Cmd:   0x0c1b | Max curr: 0x
mmc0: sdhci: Resp[0]:   0x0c00 | Resp[1]:  0x
mmc0: sdhci: Resp[2]:   0x | Resp[3]:  0x
mmc0: sdhci: Host ctl2: 0x0008
mmc0: sdhci: ADMA Err:  0x | ADMA Ptr: 0x70040220
mmc0: sdhci: 
mmc0: Card stuck in wrong state! mmcblk0 card_busy_detect status: 0xe00
mmc0: cache flush error -110
mmc0: Reset 0x1 never completed.

This patch increases the load on l20 to 0.2 amps for the sdhci
and allows the device to boot normally.

Signed-off-by: Bhushan Shah 
Signed-off-by: Brian Masney 
Suggested-by: Bjorn Andersson 
Tested-by: Brian Masney 
Signed-off-by: Andy Gross 
Signed-off-by: Sasha Levin 
Signed-off-by: Greg Kroah-Hartman 
---
 arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts |2 ++
 1 file changed, 2 insertions(+)

--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -189,6 +189,8 @@
regulator-max-microvolt = 
<295>;
 
regulator-boot-on;
+   regulator-system-load = 
<20>;
+   regulator-allow-set-load;
};
 
l21 {




[PATCH 4.14 062/173] ARM: dts: qcom: msm8974-hammerhead: increase load on l20 for sdhci

2018-09-24 Thread Greg Kroah-Hartman
4.14-stable review patch.  If anyone has any objections, please let me know.

--

From: Bhushan Shah 

[ Upstream commit 03864e57770a9541e7ff3990bacf2d9a2fffcd5d ]

The kernel would not boot on the hammerhead hardware due to the
following error:

mmc0: Timeout waiting for hardware interrupt.
mmc0: sdhci:  SDHCI REGISTER DUMP ===
mmc0: sdhci: Sys addr:  0x0200 | Version:  0x3802
mmc0: sdhci: Blk size:  0x0200 | Blk cnt:  0x0200
mmc0: sdhci: Argument:  0x | Trn mode: 0x0023
mmc0: sdhci: Present:   0x03e8 | Host ctl: 0x0034
mmc0: sdhci: Power: 0x0001 | Blk gap:  0x
mmc0: sdhci: Wake-up:   0x | Clock:0x0007
mmc0: sdhci: Timeout:   0x000e | Int stat: 0x
mmc0: sdhci: Int enab:  0x02ff900b | Sig enab: 0x02ff100b
mmc0: sdhci: AC12 err:  0x | Slot int: 0x
mmc0: sdhci: Caps:  0x642dc8b2 | Caps_1:   0x8007
mmc0: sdhci: Cmd:   0x0c1b | Max curr: 0x
mmc0: sdhci: Resp[0]:   0x0c00 | Resp[1]:  0x
mmc0: sdhci: Resp[2]:   0x | Resp[3]:  0x
mmc0: sdhci: Host ctl2: 0x0008
mmc0: sdhci: ADMA Err:  0x | ADMA Ptr: 0x70040220
mmc0: sdhci: 
mmc0: Card stuck in wrong state! mmcblk0 card_busy_detect status: 0xe00
mmc0: cache flush error -110
mmc0: Reset 0x1 never completed.

This patch increases the load on l20 to 0.2 amps for the sdhci
and allows the device to boot normally.

Signed-off-by: Bhushan Shah 
Signed-off-by: Brian Masney 
Suggested-by: Bjorn Andersson 
Tested-by: Brian Masney 
Signed-off-by: Andy Gross 
Signed-off-by: Sasha Levin 
Signed-off-by: Greg Kroah-Hartman 
---
 arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts |2 ++
 1 file changed, 2 insertions(+)

--- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts
@@ -189,6 +189,8 @@
regulator-max-microvolt = 
<295>;
 
regulator-boot-on;
+   regulator-system-load = 
<20>;
+   regulator-allow-set-load;
};
 
l21 {