Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/810017/?format=api
{ "id": 810017, "url": "http://patchwork.ozlabs.org/api/patches/810017/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504602267-31283-2-git-send-email-patrice.chotard@st.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1504602267-31283-2-git-send-email-patrice.chotard@st.com>", "list_archive_url": null, "date": "2017-09-05T09:04:18", "name": "[U-Boot,v10,01/10] mmc: sti_sdhci: Rework sti_mmc_core_config()", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "7b2e5e8db03c1bca51d9fe4f6132ebbe6e84d5c3", "submitter": { "id": 63958, "url": "http://patchwork.ozlabs.org/api/people/63958/?format=api", "name": "Patrice CHOTARD", "email": "patrice.chotard@st.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1504602267-31283-2-git-send-email-patrice.chotard@st.com/mbox/", "series": [ { "id": 1524, "url": "http://patchwork.ozlabs.org/api/series/1524/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1524", "date": "2017-09-05T09:04:18", "name": "STiH410-B2260: add reset, usb and fastboot support", "version": 10, "mbox": "http://patchwork.ozlabs.org/series/1524/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810017/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810017/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xmgsM245qz9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 5 Sep 2017 19:09:59 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid E79CAC21E52; Tue, 5 Sep 2017 09:07:35 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id D2B78C21D8C;\n\tTue, 5 Sep 2017 09:07:29 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 0DDC6C21FAD; Tue, 5 Sep 2017 09:06:05 +0000 (UTC)", "from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com\n\t[91.207.212.93])\n\tby lists.denx.de (Postfix) with ESMTPS id 5C35AC21FB8\n\tfor <u-boot@lists.denx.de>; Tue, 5 Sep 2017 09:04:45 +0000 (UTC)", "from pps.filterd (m0046660.ppops.net [127.0.0.1])\n\tby mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv857eA7m012900; Tue, 5 Sep 2017 11:04:34 +0200", "from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35])\n\tby mx08-00178001.pphosted.com with ESMTP id 2cqhs56wk0-1\n\t(version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT);\n\tTue, 05 Sep 2017 11:04:34 +0200", "from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9])\n\tby beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1865C56;\n\tTue, 5 Sep 2017 09:04:31 +0000 (GMT)", "from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18])\n\tby zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F1319110C;\n\tTue, 5 Sep 2017 09:04:30 +0000 (GMT)", "from localhost (10.75.127.50) by SFHDAG6NODE3.st.com (10.75.127.18)\n\twith Microsoft SMTP Server (TLS) id 15.0.1178.4;\n\tTue, 5 Sep 2017 11:04:30 +0200" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW\n\tautolearn=unavailable autolearn_force=no version=3.4.0", "From": "<patrice.chotard@st.com>", "To": "<u-boot@lists.denx.de>, <albert.u.boot@aribaud.net>, <sjg@chromium.org>, \n\t<jh80.chung@samsung.com>, <marex@denx.de>", "Date": "Tue, 5 Sep 2017 11:04:18 +0200", "Message-ID": "<1504602267-31283-2-git-send-email-patrice.chotard@st.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1504602267-31283-1-git-send-email-patrice.chotard@st.com>", "References": "<1504602267-31283-1-git-send-email-patrice.chotard@st.com>", "MIME-Version": "1.0", "X-Originating-IP": "[10.75.127.50]", "X-ClientProxiedBy": "SFHDAG8NODE3.st.com (10.75.127.24) To SFHDAG6NODE3.st.com\n\t(10.75.127.18)", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-09-05_03:, , signatures=0", "Subject": "[U-Boot] [PATCH v10 01/10] mmc: sti_sdhci: Rework\n\tsti_mmc_core_config()", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "From: Patrice Chotard <patrice.chotard@st.com>\n\nUse struct udevice* as input parameter. Previous\nparameters are retrieved through plat and priv data.\n\nThis to prepare to use the reset framework.\n\nSigned-off-by: Patrice Chotard <patrice.chotard@st.com>\nReviewed-by: Jaehoon Chung <jh80.chung@samsung.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\n---\nv10:\t_ none\nv9:\t_ none\nv8:\t_ none\nv7:\t_ none\nv6:\t_ add reviewed-by Simon Glass\nv5:\t_ none\nv4:\t_ none\nv3:\t_ none\nv2:\t_ none\n\n drivers/mmc/sti_sdhci.c | 33 ++++++++++++++++++---------------\n 1 file changed, 18 insertions(+), 15 deletions(-)", "diff": "diff --git a/drivers/mmc/sti_sdhci.c b/drivers/mmc/sti_sdhci.c\nindex f85f6b4..714afd9 100644\n--- a/drivers/mmc/sti_sdhci.c\n+++ b/drivers/mmc/sti_sdhci.c\n@@ -16,6 +16,7 @@ DECLARE_GLOBAL_DATA_PTR;\n struct sti_sdhci_plat {\n \tstruct mmc_config cfg;\n \tstruct mmc mmc;\n+\tint instance;\n };\n \n /*\n@@ -26,8 +27,8 @@ struct sti_sdhci_plat {\n \n /**\n * sti_mmc_core_config: configure the Arasan HC\n- * @regbase: base address\n- * @mmc_instance: mmc instance id\n+ * @dev : udevice\n+ *\n * Description: this function is to configure the Arasan MMC HC.\n * This should be called when the system starts in case of, on the SoC,\n * it is needed to configure the host controller.\n@@ -36,33 +37,35 @@ struct sti_sdhci_plat {\n * W/o these settings the SDHCI could configure and use the embedded controller\n * with limited features.\n */\n-static void sti_mmc_core_config(const u32 regbase, int mmc_instance)\n+static void sti_mmc_core_config(struct udevice *dev)\n {\n+\tstruct sti_sdhci_plat *plat = dev_get_platdata(dev);\n+\tstruct sdhci_host *host = dev_get_priv(dev);\n \tunsigned long *sysconf;\n \n \t/* only MMC1 has a reset line */\n-\tif (mmc_instance) {\n+\tif (plat->instance) {\n \t\tsysconf = (unsigned long *)(STIH410_SYSCONF5_BASE +\n \t\t\t ST_MMC_CCONFIG_REG_5);\n \t\tgeneric_set_bit(SYSCONF_MMC1_ENABLE_BIT, sysconf);\n \t}\n \n \twritel(STI_FLASHSS_MMC_CORE_CONFIG_1,\n-\t regbase + FLASHSS_MMC_CORE_CONFIG_1);\n+\t host->ioaddr + FLASHSS_MMC_CORE_CONFIG_1);\n \n-\tif (mmc_instance) {\n+\tif (plat->instance) {\n \t\twritel(STI_FLASHSS_MMC_CORE_CONFIG2,\n-\t\t regbase + FLASHSS_MMC_CORE_CONFIG_2);\n+\t\t host->ioaddr + FLASHSS_MMC_CORE_CONFIG_2);\n \t\twritel(STI_FLASHSS_MMC_CORE_CONFIG3,\n-\t\t regbase + FLASHSS_MMC_CORE_CONFIG_3);\n+\t\t host->ioaddr + FLASHSS_MMC_CORE_CONFIG_3);\n \t} else {\n \t\twritel(STI_FLASHSS_SDCARD_CORE_CONFIG2,\n-\t\t regbase + FLASHSS_MMC_CORE_CONFIG_2);\n+\t\t host->ioaddr + FLASHSS_MMC_CORE_CONFIG_2);\n \t\twritel(STI_FLASHSS_SDCARD_CORE_CONFIG3,\n-\t\t regbase + FLASHSS_MMC_CORE_CONFIG_3);\n+\t\t host->ioaddr + FLASHSS_MMC_CORE_CONFIG_3);\n \t}\n \twritel(STI_FLASHSS_MMC_CORE_CONFIG4,\n-\t regbase + FLASHSS_MMC_CORE_CONFIG_4);\n+\t host->ioaddr + FLASHSS_MMC_CORE_CONFIG_4);\n }\n \n static int sti_sdhci_probe(struct udevice *dev)\n@@ -70,7 +73,7 @@ static int sti_sdhci_probe(struct udevice *dev)\n \tstruct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev);\n \tstruct sti_sdhci_plat *plat = dev_get_platdata(dev);\n \tstruct sdhci_host *host = dev_get_priv(dev);\n-\tint ret, mmc_instance;\n+\tint ret;\n \n \t/*\n \t * identify current mmc instance, mmc1 has a reset, not mmc0\n@@ -79,11 +82,11 @@ static int sti_sdhci_probe(struct udevice *dev)\n \t */\n \n \tif (fdt_getprop(gd->fdt_blob, dev_of_offset(dev), \"resets\", NULL))\n-\t\tmmc_instance = 1;\n+\t\tplat->instance = 1;\n \telse\n-\t\tmmc_instance = 0;\n+\t\tplat->instance = 0;\n \n-\tsti_mmc_core_config((const u32) host->ioaddr, mmc_instance);\n+\tsti_mmc_core_config(dev);\n \n \thost->quirks = SDHCI_QUIRK_WAIT_SEND_CMD |\n \t\t SDHCI_QUIRK_32BIT_DMA_ADDR |\n", "prefixes": [ "U-Boot", "v10", "01/10" ] }