Re: drivers/mmc/card/block.c infinite loop in mmc_blk_err_check waiting on R1_READY_FOR_DATA

From: Chris Ball
Date: Tue Nov 13 2012 - 15:48:20 EST


Hi Trey,

On Tue, Nov 13 2012, Trey Ramsay wrote:
> Thanks Chris. Any idea how long the timeout should be? It could
> cause problems if we timeout to early. This what I have so far with a
> 10 minute timeout. The code is based off of v3.7-rc3

Ten minutes sounds excessive, which is actually fine for our purpose; I
don't think we need to make the value tunable. Thanks! Please can you:

* resend in plain text instead of HTML, with no line-wrapping corrupting
the patch

* include a commit message and "Signed-off-by" (see SubmittingPatches
in the Documentation/ directory)

* change the pr_err()s to include the MMC hostname, and give an English
description of the error instead of the line number -- most users
don't have their kernel source available to find line numbers in.
Something like "Card stuck in programming state!" sounds good.

After that, I'll merge the patch for testing.

Thanks,

- Chris.
--
Chris Ball <cjb@xxxxxxxxxx> <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/