Message ID | 1308558233-20545-1-git-send-email-tgih.jun@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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> -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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.
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,
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(-)