2009-03-24 10:06:28

by Haavard Skinnemoen

[permalink] [raw]
Subject: [PATCH] atmel-mci: fix sdc_reg typo

From: Hans-Christian Egtvedt <[email protected]>

This fixes a bug when setting the sdc_reg for 4-bit bus width
transactions.

Signed-off-by: Hans-Christian Egtvedt <[email protected]>
Signed-off-by: Haavard Skinnemoen <[email protected]>
---
drivers/mmc/host/atmel-mci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index 2b1196e..cab1ddb 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -812,7 +812,7 @@ static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
slot->sdc_reg |= MCI_SDCBUS_1BIT;
break;
case MMC_BUS_WIDTH_4:
- slot->sdc_reg = MCI_SDCBUS_4BIT;
+ slot->sdc_reg |= MCI_SDCBUS_4BIT;
break;
}

--
1.6.0.4


2009-03-24 20:07:41

by Pierre Ossman

[permalink] [raw]
Subject: Re: [PATCH] atmel-mci: fix sdc_reg typo

On Tue, 24 Mar 2009 11:06:06 +0100
Haavard Skinnemoen <[email protected]> wrote:

> From: Hans-Christian Egtvedt <[email protected]>
>
> This fixes a bug when setting the sdc_reg for 4-bit bus width
> transactions.
>
> Signed-off-by: Hans-Christian Egtvedt <[email protected]>
> Signed-off-by: Haavard Skinnemoen <[email protected]>
> ---

Queued, thanks.

--
-- Pierre Ossman

WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.


Attachments:
signature.asc (198.00 B)