Skip to content

Commit ad5acd5

Browse files
committed
Merge branch 'at91-4.14-trunk/mmc' into linux-4.14-at91
2 parents 8aa6337 + 9b6f9d0 commit ad5acd5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/mmc/host/atmel-mci.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,9 @@ static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
14311431
case MMC_BUS_WIDTH_4:
14321432
slot->sdc_reg |= ATMCI_SDCBUS_4BIT;
14331433
break;
1434+
case MMC_BUS_WIDTH_8:
1435+
slot->sdc_reg |= ATMCI_SDCBUS_8BIT;
1436+
break;
14341437
}
14351438

14361439
if (ios->clock) {
@@ -2298,8 +2301,11 @@ static int atmci_init_slot(struct atmel_mci *host,
22982301
* use only one bit for data to prevent fifo underruns and overruns
22992302
* which will corrupt data.
23002303
*/
2301-
if ((slot_data->bus_width >= 4) && host->caps.has_rwproof)
2304+
if ((slot_data->bus_width >= 4) && host->caps.has_rwproof) {
23022305
mmc->caps |= MMC_CAP_4_BIT_DATA;
2306+
if (slot_data->bus_width >= 8)
2307+
mmc->caps |= MMC_CAP_8_BIT_DATA;
2308+
}
23032309

23042310
if (atmci_get_version(host) < 0x200) {
23052311
mmc->max_segs = 256;

0 commit comments

Comments
 (0)