Skip to content

Commit 46b51ea

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc: (83 commits) mmc: fix compile error when CONFIG_BLOCK is not enabled mmc: core: Cleanup eMMC4.5 conditionals mmc: omap_hsmmc: if multiblock reads are broken, disable them mmc: core: add workaround for controllers with broken multiblock reads mmc: core: Prevent too long response times for suspend mmc: recognise SDIO cards with SDIO_CCCR_REV 3.00 mmc: sd: Handle SD3.0 cards not supporting UHS-I bus speed mode mmc: core: support HPI send command mmc: core: Add cache control for eMMC4.5 device mmc: core: Modify the timeout value for writing power class mmc: core: new discard feature support at eMMC v4.5 mmc: core: mmc sanitize feature support for v4.5 mmc: dw_mmc: modify DATA register offset mmc: sdhci-pci: add flag for devices that can support runtime PM mmc: omap_hsmmc: ensure pbias configuration is always done mmc: core: Add Power Off Notify Feature eMMC 4.5 mmc: sdhci-s3c: fix potential NULL dereference mmc: replace printk with appropriate display macro mmc: core: Add default timeout value for CMD6 mmc: sdhci-pci: add runtime pm support ...
2 parents 1fdb24e + a6029e1 commit 46b51ea

81 files changed

Lines changed: 3093 additions & 1009 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
* NVIDIA Tegra Secure Digital Host Controller
2+
3+
This controller on Tegra family SoCs provides an interface for MMC, SD,
4+
and SDIO types of memory cards.
5+
6+
Required properties:
7+
- compatible : Should be "nvidia,<chip>-sdhci"
8+
- reg : Should contain SD/MMC registers location and length
9+
- interrupts : Should contain SD/MMC interrupt
10+
11+
Optional properties:
12+
- cd-gpios : Specify GPIOs for card detection
13+
- wp-gpios : Specify GPIOs for write protection
14+
- power-gpios : Specify GPIOs for power control
15+
- support-8bit : Boolean, indicates if 8-bit mode should be used.
16+
17+
Example:
18+
19+
sdhci@c8000200 {
20+
compatible = "nvidia,tegra20-sdhci";
21+
reg = <0xc8000200 0x200>;
22+
interrupts = <47>;
23+
cd-gpios = <&gpio 69 0>; /* gpio PI5 */
24+
wp-gpios = <&gpio 57 0>; /* gpio PH1 */
25+
power-gpios = <&gpio 155 0>; /* gpio PT3 */
26+
support-8bit;
27+
};

‎Documentation/fault-injection/fault-injection.txt‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ o fail_make_request
2121
/sys/block/<device>/make-it-fail or
2222
/sys/block/<device>/<partition>/make-it-fail. (generic_make_request())
2323

24+
o fail_mmc_request
25+
26+
injects MMC data errors on devices permitted by setting
27+
debugfs entries under /sys/kernel/debug/mmc0/fail_mmc_request
28+
2429
Configure fault-injection capabilities behavior
2530
-----------------------------------------------
2631

@@ -115,7 +120,8 @@ use the boot option:
115120

116121
failslab=
117122
fail_page_alloc=
118-
fail_make_request=<interval>,<probability>,<space>,<times>
123+
fail_make_request=
124+
mmc_core.fail_request=<interval>,<probability>,<space>,<times>
119125

120126
How to add new fault injection capability
121127
-----------------------------------------

‎arch/arm/mach-at91/at91sam9260_devices.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ void __init at91_add_device_mci(short mmc_id, struct mci_platform_data *data)
319319
if (!data)
320320
return;
321321

322-
for (i = 0; i < ATMEL_MCI_MAX_NR_SLOTS; i++) {
322+
for (i = 0; i < ATMCI_MAX_NR_SLOTS; i++) {
323323
if (data->slot[i].bus_width) {
324324
/* input/irq */
325325
if (data->slot[i].detect_pin) {

‎arch/arm/mach-msm/devices-msm7x00.c‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,6 @@ static struct resource resources_sdc1[] = {
175175
.flags = IORESOURCE_IRQ,
176176
.name = "cmd_irq",
177177
},
178-
{
179-
.start = INT_SDC1_1,
180-
.end = INT_SDC1_1,
181-
.flags = IORESOURCE_IRQ,
182-
.name = "pio_irq",
183-
},
184178
{
185179
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
186180
.name = "status_irq"
@@ -203,12 +197,6 @@ static struct resource resources_sdc2[] = {
203197
.end = INT_SDC2_0,
204198
.flags = IORESOURCE_IRQ,
205199
.name = "cmd_irq",
206-
},
207-
{
208-
.start = INT_SDC2_1,
209-
.end = INT_SDC2_1,
210-
.flags = IORESOURCE_IRQ,
211-
.name = "pio_irq",
212200
},
213201
{
214202
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
@@ -232,12 +220,6 @@ static struct resource resources_sdc3[] = {
232220
.end = INT_SDC3_0,
233221
.flags = IORESOURCE_IRQ,
234222
.name = "cmd_irq",
235-
},
236-
{
237-
.start = INT_SDC3_1,
238-
.end = INT_SDC3_1,
239-
.flags = IORESOURCE_IRQ,
240-
.name = "pio_irq",
241223
},
242224
{
243225
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
@@ -261,12 +243,6 @@ static struct resource resources_sdc4[] = {
261243
.end = INT_SDC4_0,
262244
.flags = IORESOURCE_IRQ,
263245
.name = "cmd_irq",
264-
},
265-
{
266-
.start = INT_SDC4_1,
267-
.end = INT_SDC4_1,
268-
.flags = IORESOURCE_IRQ,
269-
.name = "pio_irq",
270246
},
271247
{
272248
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,

‎arch/arm/mach-msm/devices-qsd8x50.c‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,6 @@ static struct resource resources_sdc1[] = {
139139
.flags = IORESOURCE_IRQ,
140140
.name = "cmd_irq",
141141
},
142-
{
143-
.start = INT_SDC1_1,
144-
.end = INT_SDC1_1,
145-
.flags = IORESOURCE_IRQ,
146-
.name = "pio_irq",
147-
},
148142
{
149143
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
150144
.name = "status_irq"
@@ -167,12 +161,6 @@ static struct resource resources_sdc2[] = {
167161
.end = INT_SDC2_0,
168162
.flags = IORESOURCE_IRQ,
169163
.name = "cmd_irq",
170-
},
171-
{
172-
.start = INT_SDC2_1,
173-
.end = INT_SDC2_1,
174-
.flags = IORESOURCE_IRQ,
175-
.name = "pio_irq",
176164
},
177165
{
178166
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
@@ -196,12 +184,6 @@ static struct resource resources_sdc3[] = {
196184
.end = INT_SDC3_0,
197185
.flags = IORESOURCE_IRQ,
198186
.name = "cmd_irq",
199-
},
200-
{
201-
.start = INT_SDC3_1,
202-
.end = INT_SDC3_1,
203-
.flags = IORESOURCE_IRQ,
204-
.name = "pio_irq",
205187
},
206188
{
207189
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,
@@ -225,12 +207,6 @@ static struct resource resources_sdc4[] = {
225207
.end = INT_SDC4_0,
226208
.flags = IORESOURCE_IRQ,
227209
.name = "cmd_irq",
228-
},
229-
{
230-
.start = INT_SDC4_1,
231-
.end = INT_SDC4_1,
232-
.flags = IORESOURCE_IRQ,
233-
.name = "pio_irq",
234210
},
235211
{
236212
.flags = IORESOURCE_IRQ | IORESOURCE_DISABLED,

‎arch/arm/mach-msm/include/mach/mmc.h‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
#include <linux/mmc/card.h>
99
#include <linux/mmc/sdio_func.h>
1010

11-
struct embedded_sdio_data {
12-
struct sdio_cis cis;
13-
struct sdio_cccr cccr;
14-
struct sdio_embedded_func *funcs;
15-
int num_funcs;
16-
};
17-
1811
struct msm_mmc_gpio {
1912
unsigned no;
2013
const char *name;
@@ -29,9 +22,9 @@ struct msm_mmc_platform_data {
2922
unsigned int ocr_mask; /* available voltages */
3023
u32 (*translate_vdd)(struct device *, unsigned int);
3124
unsigned int (*status)(struct device *);
32-
struct embedded_sdio_data *embedded_sdio;
3325
int (*register_status_notify)(void (*callback)(int card_present, void *dev_id), void *dev_id);
3426
struct msm_mmc_gpio_data *gpio_data;
27+
void (*init_card)(struct mmc_card *card);
3528
};
3629

3730
#endif

‎arch/arm/mach-shmobile/board-ag5evm.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,17 @@ static struct resource sdhi0_resources[] = {
355355
.flags = IORESOURCE_MEM,
356356
},
357357
[1] = {
358+
.name = SH_MOBILE_SDHI_IRQ_CARD_DETECT,
358359
.start = gic_spi(83),
359360
.flags = IORESOURCE_IRQ,
360361
},
361362
[2] = {
363+
.name = SH_MOBILE_SDHI_IRQ_SDCARD,
362364
.start = gic_spi(84),
363365
.flags = IORESOURCE_IRQ,
364366
},
365367
[3] = {
368+
.name = SH_MOBILE_SDHI_IRQ_SDIO,
366369
.start = gic_spi(85),
367370
.flags = IORESOURCE_IRQ,
368371
},
@@ -398,14 +401,17 @@ static struct resource sdhi1_resources[] = {
398401
.flags = IORESOURCE_MEM,
399402
},
400403
[1] = {
404+
.name = SH_MOBILE_SDHI_IRQ_CARD_DETECT,
401405
.start = gic_spi(87),
402406
.flags = IORESOURCE_IRQ,
403407
},
404408
[2] = {
409+
.name = SH_MOBILE_SDHI_IRQ_SDCARD,
405410
.start = gic_spi(88),
406411
.flags = IORESOURCE_IRQ,
407412
},
408413
[3] = {
414+
.name = SH_MOBILE_SDHI_IRQ_SDIO,
409415
.start = gic_spi(89),
410416
.flags = IORESOURCE_IRQ,
411417
},

‎arch/arm/mach-shmobile/board-mackerel.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,14 +1072,17 @@ static struct resource sdhi1_resources[] = {
10721072
.flags = IORESOURCE_MEM,
10731073
},
10741074
[1] = {
1075+
.name = SH_MOBILE_SDHI_IRQ_CARD_DETECT,
10751076
.start = evt2irq(0x0e80), /* SDHI1_SDHI1I0 */
10761077
.flags = IORESOURCE_IRQ,
10771078
},
10781079
[2] = {
1080+
.name = SH_MOBILE_SDHI_IRQ_SDCARD,
10791081
.start = evt2irq(0x0ea0), /* SDHI1_SDHI1I1 */
10801082
.flags = IORESOURCE_IRQ,
10811083
},
10821084
[3] = {
1085+
.name = SH_MOBILE_SDHI_IRQ_SDIO,
10831086
.start = evt2irq(0x0ec0), /* SDHI1_SDHI1I2 */
10841087
.flags = IORESOURCE_IRQ,
10851088
},
@@ -1123,14 +1126,17 @@ static struct resource sdhi2_resources[] = {
11231126
.flags = IORESOURCE_MEM,
11241127
},
11251128
[1] = {
1129+
.name = SH_MOBILE_SDHI_IRQ_CARD_DETECT,
11261130
.start = evt2irq(0x1200), /* SDHI2_SDHI2I0 */
11271131
.flags = IORESOURCE_IRQ,
11281132
},
11291133
[2] = {
1134+
.name = SH_MOBILE_SDHI_IRQ_SDCARD,
11301135
.start = evt2irq(0x1220), /* SDHI2_SDHI2I1 */
11311136
.flags = IORESOURCE_IRQ,
11321137
},
11331138
[3] = {
1139+
.name = SH_MOBILE_SDHI_IRQ_SDIO,
11341140
.start = evt2irq(0x1240), /* SDHI2_SDHI2I2 */
11351141
.flags = IORESOURCE_IRQ,
11361142
},

‎arch/arm/plat-omap/include/plat/mmc.h‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,24 @@
3131

3232
#define OMAP_MMC_MAX_SLOTS 2
3333

34-
#define OMAP_HSMMC_SUPPORTS_DUAL_VOLT BIT(1)
34+
/*
35+
* struct omap_mmc_dev_attr.flags possibilities
36+
*
37+
* OMAP_HSMMC_SUPPORTS_DUAL_VOLT: Some HSMMC controller instances can
38+
* operate with either 1.8Vdc or 3.0Vdc card voltages; this flag
39+
* should be set if this is the case. See for example Section 22.5.3
40+
* "MMC/SD/SDIO1 Bus Voltage Selection" of the OMAP34xx Multimedia
41+
* Device Silicon Revision 3.1.x Revision ZR (July 2011) (SWPU223R).
42+
*
43+
* OMAP_HSMMC_BROKEN_MULTIBLOCK_READ: Multiple-block read transfers
44+
* don't work correctly on some MMC controller instances on some
45+
* OMAP3 SoCs; this flag should be set if this is the case. See
46+
* for example Advisory 2.1.1.128 "MMC: Multiple Block Read
47+
* Operation Issue" in _OMAP3530/3525/3515/3503 Silicon Errata_
48+
* Revision F (October 2010) (SPRZ278F).
49+
*/
50+
#define OMAP_HSMMC_SUPPORTS_DUAL_VOLT BIT(0)
51+
#define OMAP_HSMMC_BROKEN_MULTIBLOCK_READ BIT(1)
3552

3653
struct omap_mmc_dev_attr {
3754
u8 flags;

0 commit comments

Comments
 (0)