RE: SD card failure on i.MX7ULP EVK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Fabio
	See attached patch, this is due to HW special requirement, but clock maintainer does NOT ack my patch, he prefer to fix it from clock core driver, but I think that make things complicated and also it looks like NOT feasible.

Anson

> -----Original Message-----
> From: Fabio Estevam <festevam@xxxxxxxxx>
> Sent: Thursday, September 26, 2019 4:02 AM
> To: Anson Huang <anson.huang@xxxxxxx>; BOUGH CHEN
> <haibo.chen@xxxxxxx>
> Cc: linux-mmc <linux-mmc@xxxxxxxxxxxxxxx>; dl-linux-imx <linux-
> imx@xxxxxxx>
> Subject: SD card failure on i.MX7ULP EVK
> 
> Hi,
> 
> When booting a 5.2 or 5.3 kernel on imx7ulp-evk I see the following sdhc
> error:
> 
> [    3.132133] sdhci-esdhc-imx 40370000.mmc: Got CD GPIO
> [    3.238632] mmc0: Reset 0x1 never completed.
> [    3.242935] mmc0: sdhci: ============ SDHCI REGISTER DUMP
> ===========
> [    3.249490] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00000002
> [    3.256047] mmc0: sdhci: Blk size:  0x00000200 | Blk cnt:  0x00000001
> [    3.262515] mmc0: sdhci: Argument:  0x0000885c | Trn mode: 0x00000000
> [    3.269071] mmc0: sdhci: Present:   0x00088088 | Host ctl: 0x00000002
> [    3.275620] mmc0: sdhci: Power:     0x00000000 | Blk gap:  0x00000080
> [    3.282084] mmc0: sdhci: Wake-up:   0x00000008 | Clock:    0x0000007f
> [    3.288640] mmc0: sdhci: Timeout:   0x0000008c | Int stat: 0x00000000
> [    3.295190] mmc0: sdhci: Int enab:  0x007f010b | Sig enab: 0x00000000
> [    3.301653] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00008402
> [    3.308209] mmc0: sdhci: Caps:      0x07eb0000 | Caps_1:   0x0000b400
> [    3.314671] mmc0: sdhci: Cmd:       0x0000113a | Max curr: 0x00ffffff
> [    3.321225] mmc0: sdhci: Resp[0]:   0x00000900 | Resp[1]:  0x003b377f
> [    3.327775] mmc0: sdhci: Resp[2]:   0x325b5900 | Resp[3]:  0x00400e00
> [    3.334239] mmc0: sdhci: Host ctl2: 0x00000000
> [    3.338788] mmc0: sdhci:
> ============================================
> [    3.447581] mmc0: Reset 0x1 never completed.
> [    3.451890] mmc0: sdhci: ============ SDHCI REGISTER DUMP
> ===========
> [    3.458453] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00000002
> [    3.465008] mmc0: sdhci: Blk size:  0x00000200 | Blk cnt:  0x00000001
> [    3.471469] mmc0: sdhci: Argument:  0x0000885c | Trn mode: 0x00000000
> [    3.478027] mmc0: sdhci: Present:   0x00088088 | Host ctl: 0x00000002
> [    3.484493] mmc0: sdhci: Power:     0x00000000 | Blk gap:  0x00000080
> [    3.491051] mmc0: sdhci: Wake-up:   0x00000008 | Clock:    0x0000007f
> [    3.497601] mmc0: sdhci: Timeout:   0x0000008c | Int stat: 0x00000000
> [    3.504063] mmc0: sdhci: Int enab:  0x00000000 | Sig enab: 0x00000000
> [    3.510618] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00008402
> [    3.517171] mmc0: sdhci: Caps:      0x07eb0000 | Caps_1:   0x0000b400
> [    3.523633] mmc0: sdhci: Cmd:       0x0000113a | Max curr: 0x00ffffff
> [    3.530189] mmc0: sdhci: Resp[0]:   0x00000900 | Resp[1]:  0x003b377f
> [    3.536740] mmc0: sdhci: Resp[2]:   0x325b5900 | Resp[3]:  0x00400e00
> [    3.543201] mmc0: sdhci: Host ctl2: 0x00000000
> [    3.547756] mmc0: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0x00000000
> [    3.554214] mmc0: sdhci:
> ============================================
> [    3.601580] mmc0: SDHCI controller on 40370000.mmc [40370000.mmc]
> using ADMA
> 
> Any ideas?
> 
> Thanks,
> 
> Fabio Estevam

Attachment: 0002-clk-imx-disable-i.mx7ulp-composite-clock-during-init.patch
Description: 0002-clk-imx-disable-i.mx7ulp-composite-clock-during-init.patch


[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux