]> git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/patches/extra/0004-sd-sdhci-block-count-enable-not-relevant-in-single-b.patch
bump version to 2.7.1-501
[pve-qemu-kvm.git] / debian / patches / extra / 0004-sd-sdhci-block-count-enable-not-relevant-in-single-b.patch
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
5 block transfer
6
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.
10
11 Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
12 ---
13 hw/sd/sdhci.c | 6 +-----
14 1 file changed, 1 insertion(+), 5 deletions(-)
15
16 diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
17 index 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 --
41 2.1.4
42