Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/293289/?format=api
{ "id": 293289, "url": "http://patchwork.ozlabs.org/api/patches/293289/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1385086116-10972-2-git-send-email-alistair@popple.id.au/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<1385086116-10972-2-git-send-email-alistair@popple.id.au>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1385086116-10972-2-git-send-email-alistair@popple.id.au/", "date": "2013-11-22T02:08:30", "name": "[2/8] IBM Akebono: Add a SDHCI platform driver", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "b1e2c157ae3d34cc26f27fe26f70c6d9b27d787d", "submitter": { "id": 24781, "url": "http://patchwork.ozlabs.org/api/people/24781/?format=api", "name": "Alistair Popple", "email": "alistair@popple.id.au" }, "delegate": { "id": 14, "url": "http://patchwork.ozlabs.org/api/users/14/?format=api", "username": "benh", "first_name": "Benjamin", "last_name": "Herrenschmidt", "email": "benh@kernel.crashing.org" }, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1385086116-10972-2-git-send-email-alistair@popple.id.au/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/293289/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/293289/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@ozlabs.org" ], "Received": [ "from ozlabs.org (localhost [IPv6:::1])\n\tby ozlabs.org (Postfix) with ESMTP id F2FFC2C0628\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Nov 2013 13:09:44 +1100 (EST)", "by ozlabs.org (Postfix)\n\tid 523B12C0351; Fri, 22 Nov 2013 13:08:46 +1100 (EST)", "from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net\n\t[IPv6:2001:44b8:8060:ff02:300:1:6:4])\n\tby ozlabs.org (Postfix) with ESMTP id 41D372C032F\n\tfor <linuxppc-dev@ozlabs.org>; Fri, 22 Nov 2013 13:08:46 +1100 (EST)", "from ibmaus65.lnk.telstra.net (HELO localhost) ([165.228.126.9])\n\tby ipmail04.adl6.internode.on.net with ESMTP;\n\t22 Nov 2013 12:38:46 +1030" ], "X-IronPort-Anti-Spam-Filtered": "true", "X-IronPort-Anti-Spam-Result": "AhsEANK7jlKl5H4JgWdsb2JhbABZhwq5P4E6DgEBFiYogiYBBSMPAUYQCB0CJgICVxmIAbACkQsXgSmNWAeCa4FHA5gSlUwo", "From": "Alistair Popple <alistair@popple.id.au>", "To": "benh@kernel.crashing.org", "Subject": "=?UTF-8?q?=5BPATCH=202/8=5D=20IBM=20Akebono=3A=20Add=20a=20SDHCI=20platform=20driver?=", "Date": "Fri, 22 Nov 2013 13:08:30 +1100", "Message-Id": "<1385086116-10972-2-git-send-email-alistair@popple.id.au>", "X-Mailer": "git-send-email 1.7.10.4", "In-Reply-To": "<1385086057-10884-1-git-send-email-alistair@popple.id.au>", "References": "<1385086057-10884-1-git-send-email-alistair@popple.id.au>", "MIME-Version": "1.0", "Cc": "linuxppc-dev@ozlabs.org, Chris Ball <cjb@laptop.org>,\n\tlinux-mmc@vger.kernel.org, Alistair Popple <alistair@popple.id.au>", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.16rc2", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org", "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>" }, "content": "This patch adds a SDHCI platform driver for the new IBM PPC476GTR SoC\nwhich is on the Akebono board.\n\nSigned-off-by: Alistair Popple <alistair@popple.id.au>\nCc: Chris Ball <cjb@laptop.org>\nCc: linux-mmc@vger.kernel.org\n---\n drivers/mmc/host/Kconfig | 12 ++++++++\n drivers/mmc/host/Makefile | 1 +\n drivers/mmc/host/sdhci-of-476gtr.c | 60 ++++++++++++++++++++++++++++++++++++\n 3 files changed, 73 insertions(+)\n create mode 100644 drivers/mmc/host/sdhci-of-476gtr.c", "diff": "diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig\nindex 7fc5099..14210df 100644\n--- a/drivers/mmc/host/Kconfig\n+++ b/drivers/mmc/host/Kconfig\n@@ -130,6 +130,18 @@ config MMC_SDHCI_OF_HLWD\n \n \t If unsure, say N.\n \n+config MMC_SDHCI_OF_476GTR\n+\ttristate \"SDHCI OF support for the IBM PPC476GTR SoC\"\n+\tdepends on MMC_SDHCI_PLTFM\n+\tdepends on PPC_OF\n+\thelp\n+\t This selects the Secure Digital Host Controller Interface (SDHCI)\n+\t found on the PPC476GTR SoC.\n+\n+\t If you have a controller with this interface, say Y or M here.\n+\n+\t If unsure, say N.\n+\n config MMC_SDHCI_CNS3XXX\n \ttristate \"SDHCI support on the Cavium Networks CNS3xxx SoC\"\n \tdepends on ARCH_CNS3XXX\ndiff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile\nindex c41d0c3..92beff3 100644\n--- a/drivers/mmc/host/Makefile\n+++ b/drivers/mmc/host/Makefile\n@@ -59,6 +59,7 @@ obj-$(CONFIG_MMC_SDHCI_DOVE)\t\t+= sdhci-dove.o\n obj-$(CONFIG_MMC_SDHCI_TEGRA)\t\t+= sdhci-tegra.o\n obj-$(CONFIG_MMC_SDHCI_OF_ESDHC)\t+= sdhci-of-esdhc.o\n obj-$(CONFIG_MMC_SDHCI_OF_HLWD)\t\t+= sdhci-of-hlwd.o\n+obj-$(CONFIG_MMC_SDHCI_OF_476GTR)\t+= sdhci-of-476gtr.o\n obj-$(CONFIG_MMC_SDHCI_BCM_KONA)\t+= sdhci-bcm-kona.o\n obj-$(CONFIG_MMC_SDHCI_BCM2835)\t\t+= sdhci-bcm2835.o\n \ndiff --git a/drivers/mmc/host/sdhci-of-476gtr.c b/drivers/mmc/host/sdhci-of-476gtr.c\nnew file mode 100644\nindex 0000000..1310f8c\n--- /dev/null\n+++ b/drivers/mmc/host/sdhci-of-476gtr.c\n@@ -0,0 +1,60 @@\n+/*\n+ * drivers/mmc/host/sdhci-of-476gtr.c\n+ *\n+ * Copyright © 2013 Alistair Popple <alistair@popple.id.au> IBM Corporation\n+ *\n+ * Based on sdhci-of-hlwd.c\n+ *\n+ * Copyright (C) 2009 The GameCube Linux Team\n+ * Copyright (C) 2009 Albert Herranz\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 (at\n+ * your option) any later version.\n+ */\n+\n+#include <linux/delay.h>\n+#include <linux/module.h>\n+#include <linux/mmc/host.h>\n+#include \"sdhci-pltfm.h\"\n+\n+static const struct sdhci_ops sdhci_476gtr_ops = {\n+};\n+\n+static const struct sdhci_pltfm_data sdhci_476gtr_pdata = {\n+\t.ops = &sdhci_476gtr_ops,\n+};\n+\n+static int sdhci_476gtr_probe(struct platform_device *pdev)\n+{\n+\treturn sdhci_pltfm_register(pdev, &sdhci_476gtr_pdata, 0);\n+}\n+\n+static int sdhci_476gtr_remove(struct platform_device *pdev)\n+{\n+\treturn sdhci_pltfm_unregister(pdev);\n+}\n+\n+static const struct of_device_id sdhci_476gtr_of_match[] = {\n+\t{ .compatible = \"ibm,476gtr-sdhci\" },\n+\t{ }\n+};\n+MODULE_DEVICE_TABLE(of, sdhci_476gtr_of_match);\n+\n+static struct platform_driver sdhci_476gtr_driver = {\n+\t.driver = {\n+\t\t.name = \"sdhci-476gtr\",\n+\t\t.owner = THIS_MODULE,\n+\t\t.of_match_table = sdhci_476gtr_of_match,\n+\t\t.pm = SDHCI_PLTFM_PMOPS,\n+\t},\n+\t.probe = sdhci_476gtr_probe,\n+\t.remove = sdhci_476gtr_remove,\n+};\n+\n+module_platform_driver(sdhci_476gtr_driver);\n+\n+MODULE_DESCRIPTION(\"PPC476GTR SDHCI OF driver\");\n+MODULE_AUTHOR(\"Alistair Popple\");\n+MODULE_LICENSE(\"GPL v2\");\n", "prefixes": [ "2/8" ] }