brcm2708: update 4.1 patches
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.1 / 0129-bcm2835-sdhost-Add-the-ERASE-capability.patch
1 From fc3fb877e0c097321d9d8a2a4cb10d5c0d2fc6a0 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 20 Jul 2015 10:53:26 +0100
4 Subject: [PATCH 129/148] bcm2835-sdhost: Add the ERASE capability
5
6 See: https://github.com/raspberrypi/linux/issues/1076
7 ---
8 drivers/mmc/host/bcm2835-sdhost.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 --- a/drivers/mmc/host/bcm2835-sdhost.c
12 +++ b/drivers/mmc/host/bcm2835-sdhost.c
13 @@ -1675,7 +1675,7 @@ int bcm2835_sdhost_add_host(struct bcm28
14 /* host controller capabilities */
15 mmc->caps |= /* MMC_CAP_SDIO_IRQ |*/ MMC_CAP_4_BIT_DATA |
16 MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
17 - MMC_CAP_NEEDS_POLL | MMC_CAP_HW_RESET |
18 + MMC_CAP_NEEDS_POLL | MMC_CAP_HW_RESET | MMC_CAP_ERASE |
19 (ALLOW_CMD23 * MMC_CAP_CMD23);
20
21 spin_lock_init(&host->lock);