Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/234874/?format=api
{ "id": 234874, "url": "http://patchwork.ozlabs.org/api/patches/234874/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-imx/patch/1365450363-6582-1-git-send-email-s.hauer@pengutronix.de/", "project": { "id": 19, "url": "http://patchwork.ozlabs.org/api/projects/19/?format=api", "name": "Linux IMX development", "link_name": "linux-imx", "list_id": "linux-imx-kernel.lists.patchwork.ozlabs.org", "list_email": "linux-imx-kernel@lists.patchwork.ozlabs.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1365450363-6582-1-git-send-email-s.hauer@pengutronix.de>", "list_archive_url": null, "date": "2013-04-08T19:46:03", "name": "ARM i.MX53: remove platform ahci support", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ca61f403afec19e82873cdd686c08101998e0cae", "submitter": { "id": 61, "url": "http://patchwork.ozlabs.org/api/people/61/?format=api", "name": "Sascha Hauer", "email": "s.hauer@pengutronix.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-imx/patch/1365450363-6582-1-git-send-email-s.hauer@pengutronix.de/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/234874/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/234874/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming-imx@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming-imx@bilbo.ozlabs.org", "Received": [ "from casper.infradead.org (casper.infradead.org\n\t[IPv6:2001:770:15f::2])\n\t(using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(Client did not present a certificate)\n\tby ozlabs.org (Postfix) with ESMTPS id 32CE32C00A6\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tTue, 9 Apr 2013 05:46:24 +1000 (EST)", "from merlin.infradead.org ([2001:4978:20e::2])\n\tby casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1UPI1B-0007PX-Lc; Mon, 08 Apr 2013 19:46:17 +0000", "from localhost ([::1] helo=merlin.infradead.org)\n\tby merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1UPI18-0008AU-UY; Mon, 08 Apr 2013 19:46:14 +0000", "from metis.ext.pengutronix.de\n\t([2001:6f8:1178:4:290:27ff:fe1d:cc33])\n\tby merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1UPI14-0008AA-9N for linux-arm-kernel@lists.infradead.org;\n\tMon, 08 Apr 2013 19:46:11 +0000", "from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c])\n\tby metis.ext.pengutronix.de with esmtp (Exim 4.72)\n\t(envelope-from <sha@pengutronix.de>)\n\tid 1UPI0y-00059d-Gu; Mon, 08 Apr 2013 21:46:04 +0200", "from sha by dude.hi.pengutronix.de with local (Exim 4.80)\n\t(envelope-from <sha@pengutronix.de>)\n\tid 1UPI0y-0001ik-Ce; Mon, 08 Apr 2013 21:46:04 +0200" ], "From": "Sascha Hauer <s.hauer@pengutronix.de>", "To": "<linux-arm-kernel@lists.infradead.org>", "Subject": "[PATCH] ARM i.MX53: remove platform ahci support", "Date": "Mon, 8 Apr 2013 21:46:03 +0200", "Message-Id": "<1365450363-6582-1-git-send-email-s.hauer@pengutronix.de>", "X-Mailer": "git-send-email 1.8.2.rc2", "In-Reply-To": "<1365431039.1830.102.camel@x61.thuisdomein>", "References": "<1365431039.1830.102.camel@x61.thuisdomein>", "X-SA-Exim-Connect-IP": "2001:6f8:1178:2:21e:67ff:fe11:9c5c", "X-SA-Exim-Mail-From": "sha@pengutronix.de", "X-SA-Exim-Scanned": "No (on metis.ext.pengutronix.de);\n\tSAEximRunCond expanded to false", "X-PTX-Original-Recipient": "linux-arm-kernel@lists.infradead.org", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20130408_154610_837998_49891F30 ", "X-CRM114-Status": "GOOD ( 25.56 )", "X-Spam-Score": "-4.3 (----)", "X-Spam-Report": "SpamAssassin version 3.3.2 on merlin.infradead.org summary:\n\tContent analysis details: (-4.3 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-2.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]", "Cc": "Paul Bolle <pebolle@tiscali.nl>, Sascha Hauer <s.hauer@pengutronix.de>", "X-BeenThere": "linux-arm-kernel@lists.infradead.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-arm-kernel/>", "List-Post": "<mailto:linux-arm-kernel@lists.infradead.org>", "List-Help": "<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>", "Errors-To": "linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org", "List-Id": "linux-imx-kernel.lists.patchwork.ozlabs.org" }, "content": "The i.MX53 ahci platform support is unused in mainline. To demotivate\npeople using it just remove it from the tree.\n\nSigned-off-by: Sascha Hauer <s.hauer@pengutronix.de>\n---\n\nPaul, with this one applied you could also remove config ARCH_MX53.\n\n arch/arm/plat-mxc/devices/Kconfig | 4 -\n arch/arm/plat-mxc/devices/Makefile | 1 -\n arch/arm/plat-mxc/devices/platform-ahci-imx.c | 156 ------------------------\n arch/arm/plat-mxc/include/mach/devices-common.h | 10 --\n 4 files changed, 171 deletions(-)\n delete mode 100644 arch/arm/plat-mxc/devices/platform-ahci-imx.c", "diff": "diff --git a/arch/arm/plat-mxc/devices/Kconfig b/arch/arm/plat-mxc/devices/Kconfig\nindex a35d984..02404d0 100644\n--- a/arch/arm/plat-mxc/devices/Kconfig\n+++ b/arch/arm/plat-mxc/devices/Kconfig\n@@ -83,7 +83,3 @@ config IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX\n \n config IMX_HAVE_PLATFORM_SPI_IMX\n \tbool\n-\n-config IMX_HAVE_PLATFORM_AHCI\n-\tbool\n-\tdefault y if ARCH_MX53\ndiff --git a/arch/arm/plat-mxc/devices/Makefile b/arch/arm/plat-mxc/devices/Makefile\nindex 76f3195..cd8d572 100644\n--- a/arch/arm/plat-mxc/devices/Makefile\n+++ b/arch/arm/plat-mxc/devices/Makefile\n@@ -27,4 +27,3 @@ obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_RTC) += platform-mxc_rtc.o\n obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_W1) += platform-mxc_w1.o\n obj-$(CONFIG_IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX) += platform-sdhci-esdhc-imx.o\n obj-$(CONFIG_IMX_HAVE_PLATFORM_SPI_IMX) += platform-spi_imx.o\n-obj-$(CONFIG_IMX_HAVE_PLATFORM_AHCI) += platform-ahci-imx.o\ndiff --git a/arch/arm/plat-mxc/devices/platform-ahci-imx.c b/arch/arm/plat-mxc/devices/platform-ahci-imx.c\ndeleted file mode 100644\nindex ade4a1c..0000000\n--- a/arch/arm/plat-mxc/devices/platform-ahci-imx.c\n+++ /dev/null\n@@ -1,156 +0,0 @@\n-/*\n- * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.\n- */\n-\n-/*\n- * This program is free software; you can redistribute it and/or modify\n- * it under the terms of the GNU General Public License as published by\n- * the Free Software Foundation; either version 2 of the License, or\n- * (at your option) any later version.\n-\n- * This program is distributed in the hope that it will be useful,\n- * but WITHOUT ANY WARRANTY; without even the implied warranty of\n- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n- * GNU General Public License for more details.\n-\n- * You should have received a copy of the GNU General Public License along\n- * with this program; if not, write to the Free Software Foundation, Inc.,\n- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n- */\n-\n-#include <linux/io.h>\n-#include <linux/clk.h>\n-#include <linux/err.h>\n-#include <linux/device.h>\n-#include <linux/dma-mapping.h>\n-#include <asm/sizes.h>\n-#include <mach/hardware.h>\n-#include <mach/devices-common.h>\n-\n-#define imx_ahci_imx_data_entry_single(soc, _devid)\t\t\\\n-\t{\t\t\t\t\t\t\t\t\\\n-\t\t.devid = _devid,\t\t\t\t\t\\\n-\t\t.iobase = soc ## _SATA_BASE_ADDR,\t\t\t\\\n-\t\t.irq = soc ## _INT_SATA,\t\t\t\t\\\n-\t}\n-\n-#ifdef CONFIG_SOC_IMX53\n-const struct imx_ahci_imx_data imx53_ahci_imx_data __initconst =\n-\timx_ahci_imx_data_entry_single(MX53, \"imx53-ahci\");\n-#endif\n-\n-enum {\n-\tHOST_CAP = 0x00,\n-\tHOST_CAP_SSS = (1 << 27), /* Staggered Spin-up */\n-\tHOST_PORTS_IMPL\t= 0x0c,\n-\tHOST_TIMER1MS = 0xe0, /* Timer 1-ms */\n-};\n-\n-static struct clk *sata_clk, *sata_ref_clk;\n-\n-/* AHCI module Initialization, if return 0, initialization is successful. */\n-static int imx_sata_init(struct device *dev, void __iomem *addr)\n-{\n-\tu32 tmpdata;\n-\tint ret = 0;\n-\tstruct clk *clk;\n-\n-\tsata_clk = clk_get(dev, \"ahci\");\n-\tif (IS_ERR(sata_clk)) {\n-\t\tdev_err(dev, \"no sata clock.\\n\");\n-\t\treturn PTR_ERR(sata_clk);\n-\t}\n-\tret = clk_prepare_enable(sata_clk);\n-\tif (ret) {\n-\t\tdev_err(dev, \"can't prepare/enable sata clock.\\n\");\n-\t\tgoto put_sata_clk;\n-\t}\n-\n-\t/* Get the AHCI SATA PHY CLK */\n-\tsata_ref_clk = clk_get(dev, \"ahci_phy\");\n-\tif (IS_ERR(sata_ref_clk)) {\n-\t\tdev_err(dev, \"no sata ref clock.\\n\");\n-\t\tret = PTR_ERR(sata_ref_clk);\n-\t\tgoto release_sata_clk;\n-\t}\n-\tret = clk_prepare_enable(sata_ref_clk);\n-\tif (ret) {\n-\t\tdev_err(dev, \"can't prepare/enable sata ref clock.\\n\");\n-\t\tgoto put_sata_ref_clk;\n-\t}\n-\n-\t/* Get the AHB clock rate, and configure the TIMER1MS reg later */\n-\tclk = clk_get(dev, \"ahci_dma\");\n-\tif (IS_ERR(clk)) {\n-\t\tdev_err(dev, \"no dma clock.\\n\");\n-\t\tret = PTR_ERR(clk);\n-\t\tgoto release_sata_ref_clk;\n-\t}\n-\ttmpdata = clk_get_rate(clk) / 1000;\n-\tclk_put(clk);\n-\n-\twritel(tmpdata, addr + HOST_TIMER1MS);\n-\n-\ttmpdata = readl(addr + HOST_CAP);\n-\tif (!(tmpdata & HOST_CAP_SSS)) {\n-\t\ttmpdata |= HOST_CAP_SSS;\n-\t\twritel(tmpdata, addr + HOST_CAP);\n-\t}\n-\n-\tif (!(readl(addr + HOST_PORTS_IMPL) & 0x1))\n-\t\twritel((readl(addr + HOST_PORTS_IMPL) | 0x1),\n-\t\t\taddr + HOST_PORTS_IMPL);\n-\n-\treturn 0;\n-\n-release_sata_ref_clk:\n-\tclk_disable_unprepare(sata_ref_clk);\n-put_sata_ref_clk:\n-\tclk_put(sata_ref_clk);\n-release_sata_clk:\n-\tclk_disable_unprepare(sata_clk);\n-put_sata_clk:\n-\tclk_put(sata_clk);\n-\n-\treturn ret;\n-}\n-\n-static void imx_sata_exit(struct device *dev)\n-{\n-\tclk_disable_unprepare(sata_ref_clk);\n-\tclk_put(sata_ref_clk);\n-\n-\tclk_disable_unprepare(sata_clk);\n-\tclk_put(sata_clk);\n-\n-}\n-struct platform_device *__init imx_add_ahci_imx(\n-\t\tconst struct imx_ahci_imx_data *data,\n-\t\tconst struct ahci_platform_data *pdata)\n-{\n-\tstruct resource res[] = {\n-\t\t{\n-\t\t\t.start = data->iobase,\n-\t\t\t.end = data->iobase + SZ_4K - 1,\n-\t\t\t.flags = IORESOURCE_MEM,\n-\t\t}, {\n-\t\t\t.start = data->irq,\n-\t\t\t.end = data->irq,\n-\t\t\t.flags = IORESOURCE_IRQ,\n-\t\t},\n-\t};\n-\n-\treturn imx_add_platform_device_dmamask(data->devid, 0,\n-\t\t\tres, ARRAY_SIZE(res),\n-\t\t\tpdata, sizeof(*pdata), DMA_BIT_MASK(32));\n-}\n-\n-struct platform_device *__init imx53_add_ahci_imx(void)\n-{\n-\tstruct ahci_platform_data pdata = {\n-\t\t.init = imx_sata_init,\n-\t\t.exit = imx_sata_exit,\n-\t};\n-\n-\treturn imx_add_ahci_imx(&imx53_ahci_imx_data, &pdata);\n-}\ndiff --git a/arch/arm/plat-mxc/include/mach/devices-common.h b/arch/arm/plat-mxc/include/mach/devices-common.h\nindex eaf79d2..ab5f88c 100644\n--- a/arch/arm/plat-mxc/include/mach/devices-common.h\n+++ b/arch/arm/plat-mxc/include/mach/devices-common.h\n@@ -329,13 +329,3 @@ struct platform_device *__init imx_add_spi_imx(\n struct platform_device *imx_add_imx_dma(void);\n struct platform_device *imx_add_imx_sdma(char *name,\n \tresource_size_t iobase, int irq, struct sdma_platform_data *pdata);\n-\n-#include <linux/ahci_platform.h>\n-struct imx_ahci_imx_data {\n-\tconst char *devid;\n-\tresource_size_t iobase;\n-\tresource_size_t irq;\n-};\n-struct platform_device *__init imx_add_ahci_imx(\n-\t\tconst struct imx_ahci_imx_data *data,\n-\t\tconst struct ahci_platform_data *pdata);\n", "prefixes": [] }