* [PATCH] mmc: only set blockaddressed for > 2GiB cards
@ 2010-06-22 8:19 Rabin Vincent
2010-07-30 17:28 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Rabin Vincent @ 2010-06-22 8:19 UTC (permalink / raw)
To: linux-mmc
Cc: linux-kernel, STEricsson_nomadik_linux, Hanumath Prasad,
Rabin Vincent, Linus Walleij
From: Hanumath Prasad <hanumath.prasad@stericsson.com>
A non-zero value of SEC_COUNT does not indicate that the card is sector
addressed. According to the MMC specification, cards with a density
greater than 2GiB are sector addressed.
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Hanumath Prasad <hanumath.prasad@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
---
drivers/mmc/core/mmc.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 89f7a25..1dc784e 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -222,7 +222,9 @@ static int mmc_read_ext_csd(struct mmc_card *card)
ext_csd[EXT_CSD_SEC_CNT + 1] << 8 |
ext_csd[EXT_CSD_SEC_CNT + 2] << 16 |
ext_csd[EXT_CSD_SEC_CNT + 3] << 24;
- if (card->ext_csd.sectors)
+
+ /* Cards with density > 2GiB are sector addressed */
+ if (card->ext_csd.sectors > (2u * 1024 * 1024 * 1024) / 512)
mmc_card_set_blockaddr(card);
}
--
1.7.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mmc: only set blockaddressed for > 2GiB cards
2010-06-22 8:19 [PATCH] mmc: only set blockaddressed for > 2GiB cards Rabin Vincent
@ 2010-07-30 17:28 ` Linus Walleij
2010-07-30 23:34 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2010-07-30 17:28 UTC (permalink / raw)
To: Andrew Morton
Cc: linux-mmc, linux-kernel, STEricsson_nomadik_linux,
Hanumath Prasad, Rabin Vincent
2010/6/22 Rabin Vincent <rabin.vincent@stericsson.com>:
> From: Hanumath Prasad <hanumath.prasad@stericsson.com>
>
> A non-zero value of SEC_COUNT does not indicate that the card is sector
> addressed. According to the MMC specification, cards with a density
> greater than 2GiB are sector addressed.
What's happening with this beauty? Andrew would you mind
picking this one up please?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mmc: only set blockaddressed for > 2GiB cards
2010-07-30 17:28 ` Linus Walleij
@ 2010-07-30 23:34 ` Andrew Morton
2010-07-31 8:49 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2010-07-30 23:34 UTC (permalink / raw)
To: Linus Walleij
Cc: linux-mmc, linux-kernel, STEricsson_nomadik_linux,
Hanumath Prasad, Rabin Vincent
On Fri, 30 Jul 2010 19:28:44 +0200
Linus Walleij <linus.walleij@stericsson.com> wrote:
> 2010/6/22 Rabin Vincent <rabin.vincent@stericsson.com>:
>
> > From: Hanumath Prasad <hanumath.prasad@stericsson.com>
> >
> > A non-zero value of SEC_COUNT does not indicate that the card is sector
> > addressed. __According to the MMC specification, cards with a density
> > greater than 2GiB are sector addressed.
>
> What's happening with this beauty? Andrew would you mind
> picking this one up please?
I merged that a month ago, for 2.6.36.
If we think that it should be in 2.6.35 (and earlier?) then please send
along revised changelog text which explains the reason for that.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mmc: only set blockaddressed for > 2GiB cards
2010-07-30 23:34 ` Andrew Morton
@ 2010-07-31 8:49 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2010-07-31 8:49 UTC (permalink / raw)
To: Andrew Morton
Cc: linux-mmc, linux-kernel, STEricsson_nomadik_linux,
Hanumath Prasad, Rabin Vincent
2010/7/31 Andrew Morton <akpm@linux-foundation.org>:
> On Fri, 30 Jul 2010 19:28:44 +0200
> Linus Walleij <linus.walleij@stericsson.com> wrote:
>
>> 2010/6/22 Rabin Vincent <rabin.vincent@stericsson.com>:
>>
>> > From: Hanumath Prasad <hanumath.prasad@stericsson.com>
>> >
>> > A non-zero value of SEC_COUNT does not indicate that the card is sector
>> > addressed. __According to the MMC specification, cards with a density
>> > greater than 2GiB are sector addressed.
>>
>> What's happening with this beauty? Andrew would you mind
>> picking this one up please?
>
> I merged that a month ago, for 2.6.36.
Aha sorry I didn't see it, it wasn't in -next I rely too much on that tree
I believe. I'll check directly in your patchstack for stuff henceforth.
Thanks and sorry for the trouble!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-31 8:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-22 8:19 [PATCH] mmc: only set blockaddressed for > 2GiB cards Rabin Vincent
2010-07-30 17:28 ` Linus Walleij
2010-07-30 23:34 ` Andrew Morton
2010-07-31 8:49 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox