linux-ti33x-psp 3.1: add dto patch to fix problems with various sd cards
PATCH 1/1 linux-ti33x-psp 3.1: add dto patch to fix problems with various sd cards
--- ...Set-dto-to-max-value-of-14-to-avoid-SD-Ca.patch | 34 ++++++++++++++++++++ recipes-kernel/linux/linux-ti33x-psp_3.1.bb | 3 +- 2 files changed, 36 insertions(+), 1 deletions(-) create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.1/0038-omap_hsmmc-Set-dto-to-max-value-of-14-to-avoid-SD-Ca.patch
recipes-kernel/linux/linux-ti33x-psp-3.1/0038-omap_hsmmc-Set-dto-to-max-value-of-14-to-avoid-SD-Ca.patch new file +34 -0
@@ -0,0 +1,34 @@ +From d12058d27dddf60b36f5b2142ee999e55bddfff6 Mon Sep 17 00:00:00 2001 +From: Steve Sakoman <[email protected]> +Date: Mon, 18 Jul 2011 23:13:41 -0500 +Subject: [PATCH 38/38] omap_hsmmc: Set dto to max value of 14 to avoid SD + Card timeouts + +This fixes MMC errors due to timeouts on certain SD Cards following suggestions +to set dto to 14 by Jason Kridner and Steven Kipisz + +Details of the issue: +http://talk.maemo.org/showthread.php?p=1000707#post1000707 + +This fix was originally proposed by Sukumar Ghoral of TI. +--- + drivers/mmc/host/omap_hsmmc.c | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c +index 35505bd..0be77ec 100644 +--- a/drivers/mmc/host/omap_hsmmc.c ++++ b/drivers/mmc/host/omap_hsmmc.c +@@ -1574,6 +1574,9 @@ static void set_data_timeout(struct omap_hsmmc_host *host, + dto = 14; + } + ++ /* Set dto to max value of 14 to avoid SD Card timeouts */ ++ dto = 14; ++ + reg &= ~DTO_MASK; + reg |= dto << DTO_SHIFT; + OMAP_HSMMC_WRITE(host->base, SYSCTL, reg); +-- +1.7.7.5 +
recipes-kernel/linux/linux-ti33x-psp_3.1.bb +2 -1
@@ -11,7 +11,7 @@ MULTI_CONFIG_BASE_SUFFIX = "" BRANCH = "v3.1-meta-ti-r1r+gitr1d84d8853fa30cf3db2571a5aec572accca4e29d" SRCREV = "1d84d8853fa30cf3db2571a5aec572accca4e29d" -MACHINE_KERNEL_PR_append = "k+gitr${SRCREV}" +MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}" COMPATIBLE_MACHINE = "(ti33x)"
@@ -62,6 +62,7 @@ PATCHES_OVER_PSP = " \ file://0035-beaglebone-add-structs-for-DVI-cape-LEDs.patch\ file://0036-beaglebone-update-LCD-cape-partnumber.patch \ file://0037-beaglebone-compare-complete-partnumber-not-the-first.patch \ + file://0038-omap_hsmmc-Set-dto-to-max-value-of-14-to-avoid-SD-Ca.patch \ " SRC_URI += "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "", "${PATCHES_OVER_PSP}", d)}"
Signature · 1 line
1.7.2.5
Quoted 1 line · Koen Kooi
Signed-off-by Koen Kooi <[email protected]>
I know the patch isn't yours but should we perhaps go in and make the patch more obvious? The function we're patching does a lot of guesswork to find 'dto' and then we just say 'use the max'. Why not also go rip out that logic?
Signature · 1 line
Tom
Op 26 jan. 2012, om 19:01 heeft Tom Rini het volgende geschreven:
Quoted 7 lines · Koen Kooi
Quoted 1 line
Signed-off-by Koen Kooi <[email protected]>I know the patch isn't yours but should we perhaps go in and make the patch more obvious? The function we're patching does a lot of guesswork to find 'dto' and then we just say 'use the max'. Why not also go rip out that logic?
I was having the same conversation with Philip Balister on IRC just now :) It seems that this patch is being used by various TI customers to magically fix things so we do need to come up with a proper solution.
regards,
Koen
Quoted 4 lines · Koen Kooi
Op 26 jan. 2012, om 19:01 heeft Tom Rini het volgende geschreven:
Quoted 1 line · Koen Kooi
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Koen Kooi <[email protected]>I know the patch isn't yours but should we perhaps go in and make the patch more obvious? The function we're patching does a lot of guesswork to find 'dto' and then we just say 'use the max'. Why not also go rip out that logic?
I was having the same conversation with Philip Balister on IRC just now :) It seems that this patch is being used by various TI customers to magically fix things so we do need to come up with a proper solution.
Basically, we are pissed of with really annoying SD card failures. (This is an understatement, the problem cost me a lot of sleep at ELCE)
Unless someone has a better solution, we should rip out the hairy calculation and set dto to 14 al the time and send the patch upstream. Does anyone see any reason not to do this?
Philip
Philip,
We use the dto=14 setting in the AMSDK from TI because this calculation only seems to work 50% of the time. So I would be find with ditching the calculation altogether.
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: [email protected]
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/
Quoted 43 lines
-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Philip Balister
Sent: Thursday, January 26, 2012 2:35 PM
To: Koen Kooi
Cc: Ben Hilburn; [email protected]
Subject: Re: [meta-ti] [PATCH] linux-ti33x-psp 3.1: add dto patch to fix problems with various sd cardsQuoted 4 lines · Koen Kooi
Op 26 jan. 2012, om 19:01 heeft Tom Rini het volgende geschreven:
Quoted 1 line
On Thu, Jan 26, 2012 at 10:38 AM, Koen Kooi
Quoted 3 lines · <[email protected]> wrote:
Quoted 3 lines
Quoted 1 line
Signed-off-by Koen Kooi <[email protected]>I know the patch isn't yours but should we perhaps go in and
make the
Quoted 2 lines
Quoted 2 lines
patch more obvious? The function we're patching does a lot of guesswork to find 'dto' and then we just say 'use the max'. Why
not
Quoted 3 lines
Quoted 1 line
also go rip out that logic?
I was having the same conversation with Philip Balister on IRC
just now :) It seems that this patch is being used by various TI customers to magically fix things so we do need to come up with a proper solution.
Basically, we are pissed of with really annoying SD card failures. (This
is an understatement, the problem cost me a lot of sleep at ELCE)Unless someone has a better solution, we should rip out the hairy calculation and set dto to 14 al the time and send the patch upstream.
Does anyone see any reason not to do this?Philip
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti