]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/extra/0004-sd-sdhci-block-count-enable-not-relevant-in-single-b.patch
update upload target
[pve-qemu-kvm.git] / debian / patches / extra / 0004-sd-sdhci-block-count-enable-not-relevant-in-single-b.patch
CommitLineData
7fd7e00b
WB
1From b9bc05a3a687f9993c5c2a8890b53ab9e8dbc96c Mon Sep 17 00:00:00 2001
2From: Prasad J Pandit <pjp@fedoraproject.org>
3Date: Tue, 31 Jan 2017 17:54:16 +0530
4Subject: [PATCH 4/8] sd: sdhci: block count enable not relevant in single
5 block transfer
6
7In SDHCI device emulation the 'Block count enable' bit
8of the Transfer Mode register is only relevant in multi block
9transfers. We need not check it in single block transfers.
10
11Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
12---
13 hw/sd/sdhci.c | 6 +-----
14 1 file changed, 1 insertion(+), 5 deletions(-)
15
16diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
17index 35f953a..85cac42 100644
18--- a/hw/sd/sdhci.c
19+++ b/hw/sd/sdhci.c
20@@ -570,7 +570,6 @@ static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s)
21 }
22
23 /* single block SDMA transfer */
24-
25 static void sdhci_sdma_transfer_single_block(SDHCIState *s)
26 {
27 int n;
28@@ -589,10 +588,7 @@ static void sdhci_sdma_transfer_single_block(SDHCIState *s)
29 sdbus_write_data(&s->sdbus, s->fifo_buffer[n]);
30 }
31 }
32-
33- if (s->trnmod & SDHC_TRNS_BLK_CNT_EN) {
34- s->blkcnt--;
35- }
36+ s->blkcnt--;
37
38 sdhci_end_transfer(s);
39 }
40--
412.1.4
42