brcm2708: update against latest rpi-3.10.y branch
[openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0023-Add-module-parameter-for-missing_status-quirk.-sdhci.patch
1 From 4548721c4c1b160a8b5702b6226c5b6403b3df8b Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Wed, 1 Aug 2012 19:02:14 +0100
4 Subject: [PATCH 023/174] Add module parameter for missing_status quirk.
5  sdhci-bcm2708.missing_status=0 may improve interrupt latency
6
7 ---
8  drivers/mmc/host/sdhci-bcm2708.c | 7 ++++++-
9  1 file changed, 6 insertions(+), 1 deletion(-)
10
11 --- a/drivers/mmc/host/sdhci-bcm2708.c
12 +++ b/drivers/mmc/host/sdhci-bcm2708.c
13 @@ -134,6 +134,7 @@ static inline unsigned long int since_ns
14  static bool allow_highspeed = 1;
15  static int emmc_clock_freq = BCM2708_EMMC_CLOCK_FREQ;
16  static bool sync_after_dma = 1;
17 +static bool missing_status = 1;
18  
19  #if 0
20  static void hptime_test(void)
21 @@ -1150,7 +1151,6 @@ static struct sdhci_ops sdhci_bcm2708_op
22         .spurious_crc_acmd51 = sdhci_bcm2708_quirk_spurious_crc,
23         .voltage_broken = sdhci_bcm2708_quirk_voltage_broken,
24         .uhs_broken = sdhci_bcm2708_uhs_broken,
25 -       .missing_status = sdhci_bcm2708_missing_status,
26  };
27  
28  /*****************************************************************************\
29 @@ -1189,6 +1189,9 @@ static int sdhci_bcm2708_probe(struct pl
30                 ret = PTR_ERR(host);
31                 goto err;
32         }
33 +       if (missing_status) {
34 +               sdhci_bcm2708_ops.missing_status = sdhci_bcm2708_missing_status;
35 +       }
36  
37         host->hw_name = "BCM2708_Arasan";
38         host->ops = &sdhci_bcm2708_ops;
39 @@ -1380,6 +1383,7 @@ module_exit(sdhci_drv_exit);
40  module_param(allow_highspeed, bool, 0444);
41  module_param(emmc_clock_freq, int, 0444);
42  module_param(sync_after_dma, bool, 0444);
43 +module_param(missing_status, bool, 0444);
44  
45  MODULE_DESCRIPTION("Secure Digital Host Controller Interface platform driver");
46  MODULE_AUTHOR("Broadcom <info@broadcom.com>");
47 @@ -1389,5 +1393,6 @@ MODULE_ALIAS("platform:"DRIVER_NAME);
48  MODULE_PARM_DESC(allow_highspeed, "Allow high speed transfers modes");
49  MODULE_PARM_DESC(emmc_clock_freq, "Specify the speed of emmc clock");
50  MODULE_PARM_DESC(sync_after_dma, "Block in driver until dma complete");
51 +MODULE_PARM_DESC(missing_status, "Use the missing status quirk");
52  
53