From: Jaehoon Chung <jh80.chung@samsung.com>
To: alim akhtar <alim.akhtar@samsung.com>
Cc: linux-mmc@vger.kernel.org, tgih.jun@samsung.com, cjb@laptop.org,
dianders@chromium.org
Subject: Re: [PATCH] mmc: dw_mmc: Add hardware lock error (HLE) to the CMD error flag
Date: Sun, 06 Oct 2013 17:28:41 +0900 [thread overview]
Message-ID: <52511F39.8000207@samsung.com> (raw)
In-Reply-To: <1380791881-31484-1-git-send-email-alim.akhtar@samsung.com>
Hi Alim,
On 10/03/2013 06:18 PM, alim akhtar wrote:
> From: Alim Akhtar <alim.akhtar@samsung.com>
>
> Hardware locked error set when the dw_mmc controller cannot load a
> command issued by software. When software sets the start_cmd bit in the
> CMD register, the controller tries to load the command. If the command
> buffer is already filled with a command, this error is raised. Currently
> driver does not handle HLE interrupt, which results in a system hang.
When SDMMC_INT_HLE is set into CMD_ERROR_FLAGS,
then could driver handle the HLE interrupt?
Best Regards,
Jaehoon Chung
>
> HLE can be simulated by quickly inserting and removing sd card in card
> slot (30 ~ 40 times in say 20 secs)
>
> Reviewed-by: Doug Anderson <dianders@chromium.org>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
> drivers/mmc/host/dw_mmc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index 0a6a512..24b4a52 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -44,7 +44,7 @@
> SDMMC_INT_HTO | SDMMC_INT_SBE | \
> SDMMC_INT_EBE)
> #define DW_MCI_CMD_ERROR_FLAGS (SDMMC_INT_RTO | SDMMC_INT_RCRC | \
> - SDMMC_INT_RESP_ERR)
> + SDMMC_INT_RESP_ERR | SDMMC_INT_HLE)
> #define DW_MCI_ERROR_FLAGS (DW_MCI_DATA_ERROR_FLAGS | \
> DW_MCI_CMD_ERROR_FLAGS | SDMMC_INT_HLE)
> #define DW_MCI_SEND_STATUS 1
>
next prev parent reply other threads:[~2013-10-06 8:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 9:18 [PATCH] mmc: dw_mmc: Add hardware lock error (HLE) to the CMD error flag alim akhtar
2013-10-06 8:28 ` Jaehoon Chung [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-10-07 4:22 ALIM AKHTAR
2013-10-07 4:34 ` Jaehoon Chung
2013-10-07 8:21 ALIM AKHTAR
2013-10-07 8:36 ` Jaehoon Chung
2013-10-07 9:00 ALIM AKHTAR
2013-10-10 11:01 ` Alim Akhtar
2013-11-12 4:12 ` Alim Akhtar
2013-11-15 12:16 ` Jaehoon Chung
2013-11-15 12:54 ` Seungwon Jeon
2013-11-27 7:30 ` Alim Akhtar
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=52511F39.8000207@samsung.com \
--to=jh80.chung@samsung.com \
--cc=alim.akhtar@samsung.com \
--cc=cjb@laptop.org \
--cc=dianders@chromium.org \
--cc=linux-mmc@vger.kernel.org \
--cc=tgih.jun@samsung.com \
/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.