Re: [PATCH 4.19 03/74] ARM: dts: rockchip: Make rk3288-veyron-mickeys emmc work again

From: Pavel Machek
Date: Mon Aug 05 2019 - 10:45:12 EST


On Mon 2019-08-05 15:02:16, Greg Kroah-Hartman wrote:
> [ Upstream commit 99fa066710f75f18f4d9a5bc5f6a711968a581d5 ]
>
> When I try to boot rk3288-veyron-mickey I totally fail to make the
> eMMC work. Specifically my logs (on Chrome OS 4.19):
>
> mmc_host mmc1: card is non-removable.
> mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
> mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
> mmc1: switch to bus width 8 failed
> mmc1: switch to bus width 4 failed
> mmc1: new high speed MMC card at address 0001
> mmcblk1: mmc1:0001 HAG2e 14.7 GiB
> mmcblk1boot0: mmc1:0001 HAG2e partition 1 4.00 MiB
> mmcblk1boot1: mmc1:0001 HAG2e partition 2 4.00 MiB
> mmcblk1rpmb: mmc1:0001 HAG2e partition 3 4.00 MiB, chardev (243:0)
> mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
> mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
> mmc1: switch to bus width 8 failed
> mmc1: switch to bus width 4 failed
> mmc1: tried to HW reset card, got error -110
> mmcblk1: error -110 requesting status
> mmcblk1: recovery failed!
> print_req_error: I/O error, dev mmcblk1, sector 0
> ...
>
> When I remove the '/delete-property/mmc-hs200-1_8v' then everything is
> hunky dory.
>
> That line comes from the original submission of the mickey dts
> upstream, so presumably at the time the HS200 was failing and just
> enumerating things as a high speed device was fine. ...or maybe it's
> just that some mickey devices work when enumerating at "high speed",
> just not mine?
>
> In any case, hs200 seems good now. Let's turn it on.

Ok, so this was tested in v4.19; good. But AFAICT it is queued to
4.14, too... which may not be good idea unless it was tested there...?

Plus.. if this fixes stuff, that there are other configurations in the
dts that do not work. Should they be disabled or something?

Pavel

> diff --git a/arch/arm/boot/dts/rk3288-veyron-mickey.dts b/arch/arm/boot/dts/rk3288-veyron-mickey.dts
> index 1e0158acf895d..a593d0a998fc8 100644
> --- a/arch/arm/boot/dts/rk3288-veyron-mickey.dts
> +++ b/arch/arm/boot/dts/rk3288-veyron-mickey.dts
> @@ -124,10 +124,6 @@
> };
> };
>
> -&emmc {
> - /delete-property/mmc-hs200-1_8v;
> -};
> -
> &i2c2 {
> status = "disabled";
> };

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachment: signature.asc
Description: Digital signature