Skip to contentSkip to conversation

atmel-mci: fix sdc_reg typo

PATCH Applied Haavard Skinnemoen 2 participants 2 messages Mar 24, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/mmc/host/atmel-mci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/atmel-mci.c +1 -1
index 2b1196e..cab1ddb 100644
@@ -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;
 	}
 
Signature · 1 line
1.6.0.4
#1 lore raw
Quoted 8 lines · On Tue, 24 Mar 2009 11:06:06 +0100 Haavard Skinnemoen…

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

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

---

Queued, thanks.

Signature · 6 lines
     -- 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.