Re: Sandisk MMC I/O errors

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

 



2014-08-06 15:37 GMT+02:00 Fabio Estevam <festevam@xxxxxxxxx>:
> On Wed, Aug 6, 2014 at 10:27 AM, Jean-Michel Hautbois
> <jean-michel.hautbois@xxxxxxxxxxx> wrote:
>> 2014-08-06 13:44 GMT+02:00 Jaehoon Chung <jh80.chung@xxxxxxxxxxx>:
>>> Hi,
>>
>> Hi Jaehoon,
>>
>>> In my case, -84 error is related with timing.
>>> I recommend to check your clock source or pin strength.
>>
>> Thanks for this advice.
>> In fact, it seems that the clock is not correct, as stated by the kernel :
>>
>> $> cat /sys/kernel/debug/mmc1/ios
>> clock:          52000000 Hz
>> actual clock:   49500000 Hz
>>
>> But I can't find out why because the clock comes on the SD4_CLK pin,
>> and this is directly connected to the i.MX6 processor.
>> And it is not a HW problem because as I said before, on Freescale
>> repository, it works...
>
> Try to compare the mmc clock tree in the FSL kernel versus 3.16:
>
> mount -t debugfs none /sys/kernel/debug/
> cat /sys/kernel/debug/clk/clk_dump

I have the following on 3.10.17 for usdhc4 :
"usdhc4_sel": { "enable_count": 0,"prepare_count": 0,"rate":
396000000,"usdhc4_podf": { "enable_count": 0,"prepare_count":
0,"rate": 198000000,"usdhc4": { "enable_count": 0,"prepare_count":
0,"rate": 198000000,"gpmi_bch": { "enable_count": 0,"prepare_count":
0,"rate": 198000000}}}},

And for 3.16 :
"usdhc4_sel": { "enable_count": 0,"prepare_count": 0,"rate":
396000000"accuracy": 0,"usdhc4_podf": { "enable_count":
0,"prepare_count": 0,"rate": 198000000"accuracy": 0,"usdhc4": {
"enable_count": 0,"prepare_count": 0,"rate": 198000000"accuracy":
0,"gpmi_bch": { "enable_count": 0,"prepare_count": 0,"rate":
198000000"accuracy": 0}}}},


The only difference is the presence of "accuracy:0" in 3.16 and not
the previous one.
It seems to be linked to timing because on another board, with 3.16,
it works correctly.
Is it possible to modify the clocks or to know if the MMC is maybe
corrupted in one way ?

Thanks,
JM
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux