Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/808790/?format=api
{ "id": 808790, "url": "http://patchwork.ozlabs.org/api/patches/808790/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1504282319-21309-4-git-send-email-aford173@gmail.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": "<1504282319-21309-4-git-send-email-aford173@gmail.com>", "list_archive_url": null, "date": "2017-09-01T16:11:58", "name": "[U-Boot,V2,3/4] arm: da850-evm: Enable MTD Parts", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "23510b43c0b9e89b620cbe04c38f360f5257d36f", "submitter": { "id": 67132, "url": "http://patchwork.ozlabs.org/api/people/67132/?format=api", "name": "Adam Ford", "email": "aford173@gmail.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/1504282319-21309-4-git-send-email-aford173@gmail.com/mbox/", "series": [ { "id": 1062, "url": "http://patchwork.ozlabs.org/api/series/1062/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1062", "date": "2017-09-01T16:11:55", "name": "Migrate DA850-evm to Driver Model", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/1062/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/808790/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/808790/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>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"pw7HUVIH\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xkPSQ5dlVz9sRV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 2 Sep 2017 02:13:58 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 7011DC21F00; Fri, 1 Sep 2017 16:12:41 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 1707EC21EEE;\n\tFri, 1 Sep 2017 16:12:25 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid E2305C21EE5; Fri, 1 Sep 2017 16:12:15 +0000 (UTC)", "from mail-io0-f194.google.com (mail-io0-f194.google.com\n\t[209.85.223.194])\n\tby lists.denx.de (Postfix) with ESMTPS id 48538C21F30\n\tfor <u-boot@lists.denx.de>; Fri, 1 Sep 2017 16:12:12 +0000 (UTC)", "by mail-io0-f194.google.com with SMTP id z67so711883iof.1\n\tfor <u-boot@lists.denx.de>; Fri, 01 Sep 2017 09:12:12 -0700 (PDT)", "from ubuntu16.lan (c-73-65-120-235.hsd1.mn.comcast.net.\n\t[73.65.120.235]) by smtp.gmail.com with ESMTPSA id\n\tp128sm246362iod.11.2017.09.01.09.12.09\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 01 Sep 2017 09:12:10 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=7KS8O9fUitZ/hd/da+VrYy3+oyxThpOPXMtABfHesSw=;\n\tb=pw7HUVIHC1isyv9GkTGsTyUOaCfT4l3UEorJDS2kQYFUYIZYKLHCuz15E5NiGW9gyY\n\tL6XgTLdUXbLlUM2QXu+7aNhSdQxOV5kW1IN3wVhJJHkpmuz+tf1gHGYYNtCJdn/yvduJ\n\tlAMj4tS5V43MPCJW3VrYfMdLqSt1TFf2t4/7dDIR4D1CIEe6n3QEfFjOpYhIzvlyCvyr\n\t3OTOtoWqUpKXyxqDUbLVrx5jzLHIDG6Wpm4wb16T4OKrxPMOgk1vRVEX/Eo0Dc2HLRT1\n\t6i3zp43pY2/K/dZ5av22SLnLE5uJfCCwQjievKlMhWJttV4X4PHfHxewRx/RxLMovII9\n\tK0Gw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=7KS8O9fUitZ/hd/da+VrYy3+oyxThpOPXMtABfHesSw=;\n\tb=VR0uYCu9zLNiQ8hFgVcQAIA7Y/4hxwXVBt3dtSB6lqectfrlFwduq+PnE73d1MlI5K\n\txM5FyAptFSiwdPQmDUlqEqkn9POt8+e2Uju/NxJqlV0X2yHGTRdn0yS1wPq5xVRiZdar\n\tGU9hOwCpPzWMNZhFMtq1RgK0ZPjPR8sYMcP5dJK6SjPBzW64yeCclGZaGlgsuhbNC4Pf\n\t24DZ35XOaphTfOyeU+KORNGPCJEV893TPvezq9wNwXcxeAmzCM0infoVA04FJlxXrXKp\n\tzsWmSTAj//rPex5jER4ANdlkkUF3lZfqltmZsnxP1CYubqouU5HL+gfj/aX1Vlo/EhI6\n\tlYSg==", "X-Gm-Message-State": "AHPjjUj/qqWjy6jrofprSpX+w6iOLtcfiVLkzGTrdXdnQd9dRvhSsf+P\n\tfDVzhimyZpHsTmRpgsg=", "X-Google-Smtp-Source": "ADKCNb7uEJ/m563Tp89/0mQDQOET8bcaCPp0pDDBdI8BbI845nwsXHN8P8Gr0jY+KDMdvme/6o/P6A==", "X-Received": "by 10.36.8.138 with SMTP id 132mr228619itc.162.1504282330870;\n\tFri, 01 Sep 2017 09:12:10 -0700 (PDT)", "From": "Adam Ford <aford173@gmail.com>", "To": "u-boot@lists.denx.de", "Date": "Fri, 1 Sep 2017 11:11:58 -0500", "Message-Id": "<1504282319-21309-4-git-send-email-aford173@gmail.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1504282319-21309-1-git-send-email-aford173@gmail.com>", "References": "<1504282319-21309-1-git-send-email-aford173@gmail.com>", "Cc": "jagan@openedev.com, trini@konsulko.com", "Subject": "[U-Boot] [Patch V2 3/4] arm: da850-evm: Enable MTD Parts", "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>", "MIME-Version": "1.0", "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": "There is a discrepency between U-Boot and Linux on the partition map.\nThis enabes the MTD parts to pass MTD partition information from U-Boot to\nLinux. Linux already has a pending patch to enable MTD PARTS in\ndavinci_all_defconfig\n\nSigned-off-by: Adam Ford <aford173@gmail.com>\n\nV2: This patch is new to the series\n---\n configs/da850evm_defconfig | 2 ++\n include/configs/da850evm.h | 16 ++++++++++++++--\n 2 files changed, 16 insertions(+), 2 deletions(-)", "diff": "diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig\nindex 652da01..08cc2e8 100644\n--- a/configs/da850evm_defconfig\n+++ b/configs/da850evm_defconfig\n@@ -33,6 +33,7 @@ CONFIG_CMD_MII=y\n CONFIG_CMD_PING=y\n CONFIG_CMD_EXT2=y\n CONFIG_CMD_FAT=y\n+CONFIG_CMD_MTDPARTS=y\n CONFIG_CMD_DIAG=y\n CONFIG_OF_CONTROL=y\n CONFIG_ENV_IS_IN_SPI_FLASH=y\n@@ -41,6 +42,7 @@ CONFIG_DM_SPI_FLASH=y\n CONFIG_SPI_FLASH=y\n CONFIG_SPI_FLASH_STMICRO=y\n CONFIG_SPI_FLASH_WINBOND=y\n+CONFIG_SPI_FLASH_MTD=y\n CONFIG_DM_SERIAL=y\n CONFIG_SYS_NS16550=y\n CONFIG_DM_SPI=y\ndiff --git a/include/configs/da850evm.h b/include/configs/da850evm.h\nindex b147bc5..a47ba96 100644\n--- a/include/configs/da850evm.h\n+++ b/include/configs/da850evm.h\n@@ -139,7 +139,6 @@\n /*\n * Serial Driver info\n */\n-\n #ifdef CONFIG_SPL_BUILD\n #define CONFIG_SYS_NS16550_SERIAL\n #define CONFIG_SYS_NS16550_REG_SIZE\t-4\t/* NS16550 register size */\n@@ -148,6 +147,9 @@\n #define CONFIG_SYS_NS16550_CLK\tclk_get(DAVINCI_UART2_CLKID)\n #define CONFIG_CONS_INDEX\t1\t\t/* use UART0 for console */\n \n+/*\n+ * SPI Driver Info\n+ */\n #define CONFIG_SPI\n #define CONFIG_DAVINCI_SPI\n #define CONFIG_SYS_SPI_CLK\t\tclk_get(DAVINCI_SPI1_CLKID)\n@@ -156,11 +158,21 @@\n #define CONFIG_SF_DEFAULT_SPEED\t\t30000000\n #define CONFIG_ENV_SPI_MAX_HZ\tCONFIG_SF_DEFAULT_SPEED\n #endif\n-\n #ifdef CONFIG_USE_SPIFLASH\n #define CONFIG_SPL_SPI_LOAD\n #define CONFIG_SYS_SPI_U_BOOT_OFFS\t0x8000\n #define CONFIG_SYS_SPI_U_BOOT_SIZE\t0x40000\n+#ifdef CONFIG_SPL_BUILD\n+#undef CONFIG_SPI_FLASH_MTD\n+#endif\n+#define CONFIG_MTD_DEVICE\t\t/* needed for mtdparts commands */\n+#define CONFIG_MTD_PARTITIONS\t\t/* required for UBI partition support */\n+#define MTDIDS_DEFAULT\t\t\t\"nor0=spi0.0\"\n+#define MTDPARTS_DEFAULT\t\t\"mtdparts=spi0.0:\"\\\n+\t\t\t\t\t\t\"512k(u-boot.ais),\"\\\n+\t\t\t\t\t\t\"64k(u-boot-env),\"\\\n+\t\t\t\t\t\t\"7552k(kernel-spare),\"\\\n+\t\t\t\t\t\t\"64k(MAC-Address)\"\n #endif\n \n /*\n", "prefixes": [ "U-Boot", "V2", "3/4" ] }