1 From b9bc05a3a687f9993c5c2a8890b53ab9e8dbc96c Mon Sep 17 00:00:00 2001
2 From: Prasad J Pandit <pjp@fedoraproject.org>
3 Date: Tue, 31 Jan 2017 17:54:16 +0530
4 Subject: [PATCH 4/8] sd: sdhci: block count enable not relevant in single
7 In SDHCI device emulation the 'Block count enable' bit
8 of the Transfer Mode register is only relevant in multi block
9 transfers. We need not check it in single block transfers.
11 Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
13 hw/sd/sdhci.c | 6 +-----
14 1 file changed, 1 insertion(+), 5 deletions(-)
16 diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
17 index 35f953a..85cac42 100644
20 @@ -570,7 +570,6 @@ static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s)
23 /* single block SDMA transfer */
25 static void sdhci_sdma_transfer_single_block(SDHCIState *s)
28 @@ -589,10 +588,7 @@ static void sdhci_sdma_transfer_single_block(SDHCIState *s)
29 sdbus_write_data(&s->sdbus, s->fifo_buffer[n]);
33 - if (s->trnmod & SDHC_TRNS_BLK_CNT_EN) {
38 sdhci_end_transfer(s);