From: Stefan Wahren <stefan.wahren@i2se.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>,
Chris Ball <chris@printf.net>,
Otavio Salvador <otavio@ossystems.com.br>,
Sascha Hauer <Kernel@pengutronix.de>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: [PATCH] mmc: core: Use maximum timeout values in case TACC field is zero
Date: Wed, 02 Apr 2014 10:42:25 +0200 [thread overview]
Message-ID: <533BCD71.2090800@i2se.com> (raw)
In-Reply-To: <CAOMZO5C=Oo2CiAGf8YWJ5T8uV_5M+35_tumZQvKzccGjGeejhg@mail.gmail.com>
Am 27.03.2014 16:41, schrieb Fabio Estevam:
> On Thu, Mar 27, 2014 at 12:32 PM, Stefan Wahren <stefan.wahren@i2se.com> wrote:
>> When plugging a specific micro SD card at MMC socket of a custom i.MX28 board,
>> we get the following kernel warning:
>>
>> WARNING: CPU: 0 PID: 30 at drivers/mmc/host/mxs-mmc.c:342 mxs_mmc_start_cmd+0x34c/0x378()
>> Modules linked in:
>> CPU: 0 PID: 30 Comm: kworker/u2:1 Not tainted 3.14.0-rc5 #8
>> Workqueue: kmmcd mmc_rescan
>> [<c0015420>] (unwind_backtrace) from [<c0012cb0>] (show_stack+0x10/0x14)
>> [<c0012cb0>] (show_stack) from [<c001daf8>] (warn_slowpath_common+0x6c/0x8c)
>> [<c001daf8>] (warn_slowpath_common) from [<c001db34>] (warn_slowpath_null+0x1c/0x24)
>> [<c001db34>] (warn_slowpath_null) from [<c0349478>] (mxs_mmc_start_cmd+0x34c/0x378)
>> [<c0349478>] (mxs_mmc_start_cmd) from [<c0338fa0>] (mmc_start_request+0xc4/0xf4)
>> [<c0338fa0>] (mmc_start_request) from [<c03390b4>] (mmc_wait_for_req+0x50/0x164)
>> [<c03390b4>] (mmc_wait_for_req) from [<c03405b8>] (mmc_app_send_scr+0x158/0x1c8)
>> [<c03405b8>] (mmc_app_send_scr) from [<c033ee1c>] (mmc_sd_setup_card+0x80/0x3c8)
>> [<c033ee1c>] (mmc_sd_setup_card) from [<c033f788>] (mmc_sd_init_card+0x124/0x66c)
>> [<c033f788>] (mmc_sd_init_card) from [<c033fd7c>] (mmc_attach_sd+0xac/0x174)
>> [<c033fd7c>] (mmc_attach_sd) from [<c033a658>] (mmc_rescan+0x25c/0x2d8)
>> [<c033a658>] (mmc_rescan) from [<c003597c>] (process_one_work+0x1b4/0x4ec)
>> [<c003597c>] (process_one_work) from [<c0035de4>] (worker_thread+0x130/0x464)
>> [<c0035de4>] (worker_thread) from [<c003c824>] (kthread+0xb4/0xd0)
>> [<c003c824>] (kthread) from [<c000f420>] (ret_from_fork+0x14/0x34)
>>
>> The error is due to an invalid value in CSD register of a specific 2GB micro
>> SD card. The CSD version of this card is 1.0 but the TACC field has the invalid
>> value 0. Since the kernel is making use of this TACC field to calculate the
>> SD card timeout, an invalid value 0 leads to a warning at mxs_ns_to_ssp_ticks()
>> and later the following misleading error messages appears in a loop:
>>
>> mxs-mmc 80010000.ssp: card claims to support voltages below defined range
>> mxs-mmc 80010000.ssp: no support for card's volts
>> mmc0: error -22 whilst initialising MMC card
>>
>> This error is only found on this 2GB SD card on mxs platform.
>> On x86 this card works without any problems.
> Thanks for the patch, Stefan.
>
>> The following patch based on the work of Peter Chen and Otavio Salvador. It
> It was Peter Chan, not Peter Chen.
Oops, i will fix that but i don't have his mail address.
Beside that, are there any other opinions about this patch?
>
> Regards,
>
> Fabio Estevam
Best regards,
Stefan Wahren
next prev parent reply other threads:[~2014-04-02 8:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-27 15:32 [PATCH] mmc: core: Use maximum timeout values in case TACC field is zero Stefan Wahren
2014-03-27 15:41 ` Fabio Estevam
2014-04-02 8:42 ` Stefan Wahren [this message]
2014-04-02 11:25 ` Ulf Hansson
2014-04-02 15:36 ` Stefan Wahren
2014-04-03 7:15 ` Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=533BCD71.2090800@i2se.com \
--to=stefan.wahren@i2se.com \
--cc=Kernel@pengutronix.de \
--cc=chris@printf.net \
--cc=fabio.estevam@freescale.com \
--cc=festevam@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=otavio@ossystems.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.