mmc0:Always print the value of the register on ls1028

cancel
Showing results for 
Search instead for 
Did you mean: 

mmc0:Always print the value of the register on ls1028

Jump to solution
162 Views
Eddy1
Contributor IV

Hi:

Recently, I found a very strange problem . When using EMMC to start and unplug SD card, the value of mmc0 register will be printed all the time:

[root@MYD-JLS1028 /mnt] # cd ../
[root@MYD-JLS1028 /] # [ 138.336190] 000: mmc0: card 0007 removed
[ 146.231605] 000: mmc0: Card removed during transfer!
[ 146.231617] 000: mmc0: Resetting controller.
[ 146.231783] 000: mmc0: Got command interrupt 0x00010001 even though no command operation was in progress.
[ 146.231786] 000: mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 146.231788] 000: mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00002202
[ 146.231791] 000: mmc0: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000
[ 146.231793] 000: mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000033
[ 146.231795] 000: mmc0: sdhci: Present: 0x01f80008 | Host ctl: 0x00000020
[ 146.231797] 000: mmc0: sdhci: Power: 0x00000000 | Blk gap: 0x00000000
[ 146.231799] 000: mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x000080f8
[ 146.231802] 000: mmc0: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
[ 146.231803] 000: mmc0: sdhci: Int enab: 0x007f1047 | Sig enab: 0x007f1043
[ 146.231806] 000: mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00002202
[ 146.231808] 000: mmc0: sdhci: Caps: 0x01fa0000 | Caps_1: 0x0000af00
[ 146.231810] 000: mmc0: sdhci: Cmd: 0x00000502 | Max curr: 0x00000000
[ 146.231812] 000: mmc0: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000
[ 146.231814] 000: mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
[ 146.231815] 000: mmc0: sdhci: Host ctl2: 0x00000000
[ 146.231817] 000: mmc0: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000
[ 146.231819] 000: mmc0: sdhci: ============================================

It is normal after the SD card is re inserted

0 Kudos
1 Solution
146 Views
Eddy1
Contributor IV

Hi:

I have solved the issue by adding the "broken-cd;"  to the device tree.

View solution in original post

0 Kudos
1 Reply
147 Views
Eddy1
Contributor IV

Hi:

I have solved the issue by adding the "broken-cd;"  to the device tree.

View solution in original post

0 Kudos