From: "Madhusudhan Chikkature" <madhu.cr@ti.com>
To: David Brownell <david-b@pacbell.net>,
"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>
Subject: Re: [PATCH] OMAP3:devices.c: Enabling 4-bit for SD card
Date: Mon, 11 Aug 2008 10:44:22 +0530 [thread overview]
Message-ID: <013401c8fb71$21e4d420$LocalHost@wipultra1303> (raw)
In-Reply-To: 200808050010.15117.david-b@pacbell.net
----- 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
>
prev parent reply other threads:[~2008-08-11 5:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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='013401c8fb71$21e4d420$LocalHost@wipultra1303' \
--to=madhu.cr@ti.com \
--cc=a0876542@india.ti.com \
--cc=anantgole@ti.com \
--cc=david-b@pacbell.net \
--cc=linux-omap@vger.kernel.org \
--cc=purushotam@ti.com \
--cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox