* [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card
@ 2008-06-16 13:02 Purushotam Kumar
2008-06-23 12:47 ` Tony Lindgren
0 siblings, 1 reply; 6+ messages in thread
From: Purushotam Kumar @ 2008-06-16 13:02 UTC (permalink / raw)
To: linux-omap; +Cc: anantgole
OMAP3:devices.c:Enabling 4-bit for SD card
SD card was working in 1-bit mode.This patch will configure SD card in
4-bit mode and hence performance will increase.
Signed-off-by: Purushotam Kumar <purushotam@ti.com>
Acked-by: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com>
---
arch/arm/plat-omap/devices.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: linux-omap-2.6/arch/arm/plat-omap/devices.c
===================================================================
--- linux-omap-2.6.orig/arch/arm/plat-omap/devices.c
+++ linux-omap-2.6/arch/arm/plat-omap/devices.c
@@ -292,8 +292,10 @@ static void __init omap_init_mmc(void)
mmc = &mmc_conf->mmc[0];
if (cpu_is_omap2430() || cpu_is_omap34xx()) {
- if (mmc->enabled)
+ if (mmc->enabled) {
+ mmc1_data.conf = *mmc;
(void) platform_device_register(&mmc_omap_device1);
+ }
#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX)
mmc = &mmc_conf->mmc[1];
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card 2008-06-16 13:02 [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card Purushotam Kumar @ 2008-06-23 12:47 ` Tony Lindgren 2008-06-25 10:04 ` Kumar, Purushotam 0 siblings, 1 reply; 6+ messages in thread From: Tony Lindgren @ 2008-06-23 12:47 UTC (permalink / raw) To: Purushotam Kumar; +Cc: linux-omap, anantgole * Purushotam Kumar <a0876542@india.ti.com> [080616 16:03]: > OMAP3:devices.c:Enabling 4-bit for SD card > > SD card was working in 1-bit mode.This patch will configure SD card in > 4-bit mode and hence performance will increase. > > Signed-off-by: Purushotam Kumar <purushotam@ti.com> > Acked-by: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com> > --- > arch/arm/plat-omap/devices.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > Index: linux-omap-2.6/arch/arm/plat-omap/devices.c > =================================================================== > --- linux-omap-2.6.orig/arch/arm/plat-omap/devices.c > +++ linux-omap-2.6/arch/arm/plat-omap/devices.c > @@ -292,8 +292,10 @@ static void __init omap_init_mmc(void) > mmc = &mmc_conf->mmc[0]; > > if (cpu_is_omap2430() || cpu_is_omap34xx()) { > - if (mmc->enabled) > + if (mmc->enabled) { > + mmc1_data.conf = *mmc; > (void) platform_device_register(&mmc_omap_device1); > + } > > #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) > mmc = &mmc_conf->mmc[1]; I guess this should be also done for mmc2_data.conf? Tony ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card 2008-06-23 12:47 ` Tony Lindgren @ 2008-06-25 10:04 ` Kumar, Purushotam 2008-07-14 11:56 ` Kumar, Purushotam 0 siblings, 1 reply; 6+ messages in thread From: Kumar, Purushotam @ 2008-06-25 10:04 UTC (permalink / raw) To: Tony Lindgren, Purushotam Kumar; +Cc: linux-omap@vger.kernel.org, Gole, Anant > -----Original Message----- > From: Tony Lindgren [mailto:tony@atomide.com] > Sent: Monday, June 23, 2008 6:17 PM > To: Purushotam Kumar > Cc: linux-omap@vger.kernel.org; Gole, Anant > Subject: Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card > > * Purushotam Kumar <a0876542@india.ti.com> [080616 16:03]: > > OMAP3:devices.c:Enabling 4-bit for SD card > > > > SD card was working in 1-bit mode.This patch will configure SD card in > > 4-bit mode and hence performance will increase. > > > > Signed-off-by: Purushotam Kumar <purushotam@ti.com> > > Acked-by: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com> > > --- > > arch/arm/plat-omap/devices.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > Index: linux-omap-2.6/arch/arm/plat-omap/devices.c > > =================================================================== > > --- linux-omap-2.6.orig/arch/arm/plat-omap/devices.c > > +++ linux-omap-2.6/arch/arm/plat-omap/devices.c > > @@ -292,8 +292,10 @@ static void __init omap_init_mmc(void) > > mmc = &mmc_conf->mmc[0]; > > > > if (cpu_is_omap2430() || cpu_is_omap34xx()) { > > - if (mmc->enabled) > > + if (mmc->enabled) { > > + mmc1_data.conf = *mmc; > > (void) platform_device_register(&mmc_omap_device1); > > + } > > > > #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) > > mmc = &mmc_conf->mmc[1]; > > I guess this should be also done for mmc2_data.conf? > > Tony I agree with you that it is required to be done for MMC2 as well. Please push this patch for MMC1 and I will submit other patch latter for MMC2. Regards, Purushotam ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card 2008-06-25 10:04 ` Kumar, Purushotam @ 2008-07-14 11:56 ` Kumar, Purushotam 2008-08-05 7:10 ` David Brownell 0 siblings, 1 reply; 6+ messages in thread From: Kumar, Purushotam @ 2008-07-14 11:56 UTC (permalink / raw) To: Kumar, Purushotam, Tony Lindgren, Purushotam Kumar Cc: linux-omap@vger.kernel.org, Gole, Anant [-- Attachment #1: Type: text/plain, Size: 2224 bytes --] Tony, I updated patch for MMC1 and MMC2 and also refreshed the patch. I am attaching patch with this mail. Regards, Purushotam > -----Original Message----- > From: Kumar, Purushotam > Sent: Wednesday, June 25, 2008 3:34 PM > To: Tony Lindgren; Purushotam Kumar > Cc: linux-omap@vger.kernel.org; Gole, Anant > Subject: RE: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card > > > -----Original Message----- > > From: Tony Lindgren [mailto:tony@atomide.com] > > Sent: Monday, June 23, 2008 6:17 PM > > To: Purushotam Kumar > > Cc: linux-omap@vger.kernel.org; Gole, Anant > > Subject: Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card > > > > * Purushotam Kumar <a0876542@india.ti.com> [080616 16:03]: > > > OMAP3:devices.c:Enabling 4-bit for SD card > > > > > > SD card was working in 1-bit mode.This patch will configure SD card in > > > 4-bit mode and hence performance will increase. > > > > > > Signed-off-by: Purushotam Kumar <purushotam@ti.com> > > > Acked-by: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com> > > > --- > > > arch/arm/plat-omap/devices.c | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > Index: linux-omap-2.6/arch/arm/plat-omap/devices.c > > > =================================================================== > > > --- linux-omap-2.6.orig/arch/arm/plat-omap/devices.c > > > +++ linux-omap-2.6/arch/arm/plat-omap/devices.c > > > @@ -292,8 +292,10 @@ static void __init omap_init_mmc(void) > > > mmc = &mmc_conf->mmc[0]; > > > > > > if (cpu_is_omap2430() || cpu_is_omap34xx()) { > > > - if (mmc->enabled) > > > + if (mmc->enabled) { > > > + mmc1_data.conf = *mmc; > > > (void) platform_device_register(&mmc_omap_device1); > > > + } > > > > > > #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) > > > mmc = &mmc_conf->mmc[1]; > > > > I guess this should be also done for mmc2_data.conf? > > > > Tony > > I agree with you that it is required to be done for MMC2 as well. > Please push this patch for MMC1 and I will submit other patch latter for MMC2. > > Regards, > Purushotam [-- Attachment #2: enable_sd_4bit.patch --] [-- Type: application/octet-stream, Size: 1121 bytes --] OMAP3:devices.c:Enabling 4-bit for SD card SD card was working in 1-bit mode.This patch will configure SD card in 4-bit mode and hence performance will increase. Signed-off-by: Purushotam Kumar <purushotam@ti.com> Acked-by: Madhusudhan Chikkature Rajashekar <madhu.cr@ti.com> --- arch/arm/plat-omap/devices.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) Index: linux-omap-2.6/arch/arm/plat-omap/devices.c =================================================================== --- linux-omap-2.6.orig/arch/arm/plat-omap/devices.c +++ linux-omap-2.6/arch/arm/plat-omap/devices.c @@ -296,13 +296,17 @@ static void __init omap_init_mmc(void) mmc = &mmc_conf->mmc[0]; if (cpu_is_omap2430() || cpu_is_omap34xx()) { - if (mmc->enabled) + if (mmc->enabled) { + mmc1_data.conf = *mmc; (void) platform_device_register(&mmc_omap_device1); + } #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) mmc = &mmc_conf->mmc[1]; - if (mmc->enabled) + if (mmc->enabled) { + mmc2_data.conf = *mmc; (void) platform_device_register(&mmc_omap_device2); + } #endif return; ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card 2008-07-14 11:56 ` Kumar, Purushotam @ 2008-08-05 7:10 ` David Brownell 2008-08-11 5:14 ` Madhusudhan Chikkature 0 siblings, 1 reply; 6+ messages in thread From: David Brownell @ 2008-08-05 7:10 UTC (permalink / raw) To: Kumar, Purushotam Cc: Tony Lindgren, Purushotam Kumar, linux-omap@vger.kernel.org, Gole, Anant On Monday 14 July 2008, Kumar, Purushotam wrote: > > > > if (cpu_is_omap2430() || cpu_is_omap34xx()) { > > > > - if (mmc->enabled) > > > > + if (mmc->enabled) { > > > > + mmc1_data.conf = *mmc; > > > > (void) platform_device_register(&mmc_omap_device1); > > > > + } I don't get it. OMAP3 uses the hsmmc code, which uses a "struct omap_mmc_platform_data" to configure itself. But this patch updates a "struct omap_mmc_conf" as used by the non-hsmmc code. So ... it's a NOP, at least for OMAP3. Right? -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card 2008-08-05 7:10 ` David Brownell @ 2008-08-11 5:14 ` Madhusudhan Chikkature 0 siblings, 0 replies; 6+ messages in thread From: Madhusudhan Chikkature @ 2008-08-11 5:14 UTC (permalink / raw) To: David Brownell, Kumar, Purushotam Cc: Tony Lindgren, Purushotam Kumar, linux-omap, Gole, Anant ----- Original Message ----- From: "David Brownell" <david-b@pacbell.net> To: "Kumar, Purushotam" <purushotam@ti.com> Cc: "Tony Lindgren" <tony@atomide.com>; "Purushotam Kumar" <a0876542@india.ti.com>; <linux-omap@vger.kernel.org>; "Gole, Anant" <anantgole@ti.com> Sent: Tuesday, August 05, 2008 12:40 PM Subject: Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card > On Monday 14 July 2008, Kumar, Purushotam wrote: >> > > > if (cpu_is_omap2430() || cpu_is_omap34xx()) { >> > > > - if (mmc->enabled) >> > > > + if (mmc->enabled) { >> > > > + mmc1_data.conf = *mmc; >> > > > (void) platform_device_register(&mmc_omap_device1); >> > > > + } > > I don't get it. OMAP3 uses the hsmmc code, which uses > a "struct omap_mmc_platform_data" to configure itself. > > But this patch updates a "struct omap_mmc_conf" as used > by the non-hsmmc code. > > So ... it's a NOP, at least for OMAP3. Right? Hi Dave, I think there is no difference between hsmmc code vs non-hsmmc code with respect to platform specific structure initializations. Both of them use "omap_mmc_platform_data" as well as "omap_mmc_config" structures. I had a quick look at board-h4-mmc.c and board-h4.c to verify this. What this patch does is to add the missing initializtion line "mmc1_data.conf = *mmc;" for 2430 or 3430 which was present for platforms other than these. Without this line the below condition in the hsmmc driver will not evaluate to true. if (pdata->conf.wire4) mmc->caps |= MMC_CAP_4_BIT_DATA; The header "include/asm-arm/arch-omap/mmc.h" is used by both hsmmc and non-hsmmc code. Regards, Madhu > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-08-11 5:14 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-06-16 13:02 [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card Purushotam Kumar 2008-06-23 12:47 ` Tony Lindgren 2008-06-25 10:04 ` Kumar, Purushotam 2008-07-14 11:56 ` Kumar, Purushotam 2008-08-05 7:10 ` David Brownell 2008-08-11 5:14 ` Madhusudhan Chikkature
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox