* [PATCH] mmc: dw_mmc: set the card_width bit per card.
@ 2011-06-20 8:23 Seungwon Jeon
2011-06-20 9:15 ` Will Newton
0 siblings, 1 reply; 3+ messages in thread
From: Seungwon Jeon @ 2011-06-20 8:23 UTC (permalink / raw)
To: linux-samsung-soc, linux-mmc; +Cc: akpm, cjb, kgene.kim, Seungwon Jeon
This patch sets the card_width bit of CTYPE for the corresponding card.
CTYPE[31] and CTYPE[16] correspond respectively to card[15] and card[0]
for 8-bit mode. And CTYPE[15] and CTYPE[0] correspond respectively to
card[15] and CTYPE[0] for 1-bit or 4-bit mode.
Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
---
drivers/mmc/host/dw_mmc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 66dcddb..1ca830c 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -574,7 +574,7 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot)
}
/* Set the current slot bus width */
- mci_writel(host, CTYPE, slot->ctype);
+ mci_writel(host, CTYPE, (slot->ctype << slot->id));
}
static void dw_mci_start_request(struct dw_mci *host,
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: dw_mmc: set the card_width bit per card.
2011-06-20 8:23 [PATCH] mmc: dw_mmc: set the card_width bit per card Seungwon Jeon
@ 2011-06-20 9:15 ` Will Newton
2011-06-20 18:57 ` Chris Ball
0 siblings, 1 reply; 3+ messages in thread
From: Will Newton @ 2011-06-20 9:15 UTC (permalink / raw)
To: Seungwon Jeon; +Cc: linux-samsung-soc, linux-mmc, akpm, cjb, kgene.kim
On Mon, Jun 20, 2011 at 9:23 AM, Seungwon Jeon <tgih.jun@samsung.com> wrote:
> This patch sets the card_width bit of CTYPE for the corresponding card.
>
> CTYPE[31] and CTYPE[16] correspond respectively to card[15] and card[0]
> for 8-bit mode. And CTYPE[15] and CTYPE[0] correspond respectively to
> card[15] and CTYPE[0] for 1-bit or 4-bit mode.
>
> Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: dw_mmc: set the card_width bit per card.
2011-06-20 9:15 ` Will Newton
@ 2011-06-20 18:57 ` Chris Ball
0 siblings, 0 replies; 3+ messages in thread
From: Chris Ball @ 2011-06-20 18:57 UTC (permalink / raw)
To: Will Newton; +Cc: Seungwon Jeon, linux-samsung-soc, linux-mmc, akpm, kgene.kim
Hi,
On Mon, Jun 20 2011, Will Newton wrote:
> On Mon, Jun 20, 2011 at 9:23 AM, Seungwon Jeon <tgih.jun@samsung.com> wrote:
>> This patch sets the card_width bit of CTYPE for the corresponding card.
>>
>> CTYPE[31] and CTYPE[16] correspond respectively to card[15] and card[0]
>> for 8-bit mode. And CTYPE[15] and CTYPE[0] correspond respectively to
>> card[15] and CTYPE[0] for 1-bit or 4-bit mode.
>>
>> Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
>
> Acked-by: Will Newton <will.newton@imgtec.com>
Pushed to mmc-next for 3.1, thanks.
- Chris.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-20 18:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 8:23 [PATCH] mmc: dw_mmc: set the card_width bit per card Seungwon Jeon
2011-06-20 9:15 ` Will Newton
2011-06-20 18:57 ` Chris Ball
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox