From e0e36cb5d987c6515f2b9c6ed4e4df6c84f18541 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Fri, 27 Sep 2013 01:52:28 +0000 Subject: mvebu: drop 3.8 support Signed-off-by: Luka Perkov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38225 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../007-mmc_mvsdio_use_slot_gpio_for_cd.patch | 117 --------------------- 1 file changed, 117 deletions(-) delete mode 100644 target/linux/mvebu/patches-3.8/007-mmc_mvsdio_use_slot_gpio_for_cd.patch (limited to 'target/linux/mvebu/patches-3.8/007-mmc_mvsdio_use_slot_gpio_for_cd.patch') diff --git a/target/linux/mvebu/patches-3.8/007-mmc_mvsdio_use_slot_gpio_for_cd.patch b/target/linux/mvebu/patches-3.8/007-mmc_mvsdio_use_slot_gpio_for_cd.patch deleted file mode 100644 index a1b3b8723a..0000000000 --- a/target/linux/mvebu/patches-3.8/007-mmc_mvsdio_use_slot_gpio_for_cd.patch +++ /dev/null @@ -1,117 +0,0 @@ -From patchwork Wed Jan 16 13:13:58 2013 -Content-Type: text/plain; charset="utf-8" -MIME-Version: 1.0 -Content-Transfer-Encoding: 7bit -Subject: [3/5] mmc: mvsdio: use slot-gpio for card detect gpio -Date: Wed, 16 Jan 2013 13:13:58 -0000 -From: Andrew Lunn -X-Patchwork-Id: 1987941 -Message-Id: <1358342040-7130-4-git-send-email-andrew@lunn.ch> -To: Jason Cooper -Cc: linux ARM , - linux-mmc@vger.kernel.org, linux@arm.linux.org.uk, - Thomas Petazzoni , - Andrew Lunn - -From: Thomas Petazzoni - -The MMC core subsystem provides in drivers/mmc/core/slot-gpio.c a nice -set of helper functions to simplify the management of the card detect -GPIO in MMC host drivers. This patch migrates the mvsdio driver to -using those helpers, which will make the ->probe() code simpler, and -therefore ease the process of adding a Device Tree binding for this -driver. - -Signed-off-by: Thomas Petazzoni -Signed-off-by: Andrew Lunn -Tested-by: Stefan Peter -Tested-by: Florian Fainelli -Signed-off-by: Jason Cooper - ---- -drivers/mmc/host/mvsdio.c | 39 +++++++++------------------------------ - 1 file changed, 9 insertions(+), 30 deletions(-) - ---- a/drivers/mmc/host/mvsdio.c -+++ b/drivers/mmc/host/mvsdio.c -@@ -52,7 +52,6 @@ struct mvsd_host { - struct mmc_host *mmc; - struct device *dev; - struct clk *clk; -- int gpio_card_detect; - }; - - #define mvsd_write(offs, val) writel(val, iobase + (offs)) -@@ -538,13 +537,6 @@ static void mvsd_timeout_timer(unsigned - mmc_request_done(host->mmc, mrq); - } - --static irqreturn_t mvsd_card_detect_irq(int irq, void *dev) --{ -- struct mvsd_host *host = dev; -- mmc_detect_change(host->mmc, msecs_to_jiffies(100)); -- return IRQ_HANDLED; --} -- - static void mvsd_enable_sdio_irq(struct mmc_host *mmc, int enable) - { - struct mvsd_host *host = mmc_priv(mmc); -@@ -757,26 +749,11 @@ static int __init mvsd_probe(struct plat - if (!IS_ERR(host->clk)) - clk_prepare_enable(host->clk); - -- if (mvsd_data->gpio_card_detect) { -- ret = devm_gpio_request_one(&pdev->dev, -- mvsd_data->gpio_card_detect, -- GPIOF_IN, DRIVER_NAME " cd"); -- if (ret == 0) { -- irq = gpio_to_irq(mvsd_data->gpio_card_detect); -- ret = devm_request_irq(&pdev->dev, irq, -- mvsd_card_detect_irq, -- IRQ_TYPE_EDGE_RISING | -- IRQ_TYPE_EDGE_FALLING, -- DRIVER_NAME " cd", host); -- if (ret == 0) -- host->gpio_card_detect = -- mvsd_data->gpio_card_detect; -- else -- devm_gpio_free(&pdev->dev, -- mvsd_data->gpio_card_detect); -- } -- } -- if (!host->gpio_card_detect) -+ if (gpio_is_valid(mvsd_data->gpio_card_detect)) { -+ ret = mmc_gpio_request_cd(mmc, mvsd_data->gpio_card_detect); -+ if (ret) -+ goto out; -+ } else - mmc->caps |= MMC_CAP_NEEDS_POLL; - - mmc_gpio_request_ro(mmc, mvsd_data->gpio_write_protect); -@@ -789,15 +766,16 @@ static int __init mvsd_probe(struct plat - - pr_notice("%s: %s driver initialized, ", - mmc_hostname(mmc), DRIVER_NAME); -- if (host->gpio_card_detect) -+ if (!(mmc->caps & MMC_CAP_NEEDS_POLL)) - printk("using GPIO %d for card detection\n", -- host->gpio_card_detect); -+ mvsd_data->gpio_card_detect); - else - printk("lacking card detect (fall back to polling)\n"); - return 0; - - out: - if (mmc) { -+ mmc_gpio_free_cd(mmc); - mmc_gpio_free_ro(mmc); - if (!IS_ERR(host->clk)) - clk_disable_unprepare(host->clk); -@@ -813,6 +791,7 @@ static int __exit mvsd_remove(struct pla - - struct mvsd_host *host = mmc_priv(mmc); - -+ mmc_gpio_free_cd(mmc); - mmc_gpio_free_ro(mmc); - mmc_remove_host(mmc); - del_timer_sync(&host->timer); -- cgit v1.2.3