diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-05-01 17:13:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-05-01 17:13:56 +0000 |
commit | 0cdb7e47e85d466a6d0d2e1f98e4b266b34174a8 (patch) | |
tree | 4c1f1f5773df39bfa2f151db4ab354595f891a0c /sys/dev | |
parent | 6bd1ebc4f6372213e2d48e527b38f1d9c3c14f0e (diff) |
Always write block count. This fixes the DMA issues on Bay Trail.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sdmmc/sdhc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/sdhc.c b/sys/dev/sdmmc/sdhc.c index dc0350a729b..1f1218f7c9d 100644 --- a/sys/dev/sdmmc/sdhc.c +++ b/sys/dev/sdmmc/sdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdhc.c,v 1.46 2016/05/01 16:04:39 kettenis Exp $ */ +/* $OpenBSD: sdhc.c,v 1.47 2016/05/01 17:13:55 kettenis Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -857,8 +857,7 @@ sdhc_start_command(struct sdhc_host *hp, struct sdmmc_command *cmd) */ HWRITE2(hp, SDHC_TRANSFER_MODE, mode); HWRITE2(hp, SDHC_BLOCK_SIZE, blksize); - if (blkcount > 1) - HWRITE2(hp, SDHC_BLOCK_COUNT, blkcount); + HWRITE2(hp, SDHC_BLOCK_COUNT, blkcount); HWRITE4(hp, SDHC_ARGUMENT, cmd->c_arg); HWRITE2(hp, SDHC_COMMAND, command); |