Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1133231/?format=api
{ "id": 1133231, "url": "http://patchwork.ozlabs.org/api/patches/1133231/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190717154553.25482-1-pankaj.bansal@nxp.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": "<20190717154553.25482-1-pankaj.bansal@nxp.com>", "list_archive_url": null, "date": "2019-07-17T10:23:41", "name": "[U-Boot,v2] board: fsl: lx2160a: implement board_fix_fdt", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "82909c9adb8c7f0f3d27806af5c1db93a5b03458", "submitter": { "id": 72787, "url": "http://patchwork.ozlabs.org/api/people/72787/?format=api", "name": "Pankaj Bansal", "email": "pankaj.bansal@nxp.com" }, "delegate": { "id": 2467, "url": "http://patchwork.ozlabs.org/api/users/2467/?format=api", "username": "prabhu_kush", "first_name": "Prabhakar", "last_name": "Kushwaha", "email": "prabhakar@freescale.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190717154553.25482-1-pankaj.bansal@nxp.com/mbox/", "series": [ { "id": 119973, "url": "http://patchwork.ozlabs.org/api/series/119973/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=119973", "date": "2019-07-17T10:23:41", "name": "[U-Boot,v2] board: fsl: lx2160a: implement board_fix_fdt", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/119973/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1133231/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1133231/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\tdmarc=fail (p=none dis=none) header.from=nxp.com", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"le8n16Kv\";\n\tdkim-atps=neutral", "spf=none (sender IP is )\n\tsmtp.mailfrom=pankaj.bansal@nxp.com; " ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45pYJj0TbLz9s3Z\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 17 Jul 2019 20:23:48 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid AF0E9C21DDC; Wed, 17 Jul 2019 10:23:46 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 851F3C21D4A;\n\tWed, 17 Jul 2019 10:23:44 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 4D3D5C21C29; Wed, 17 Jul 2019 10:23:43 +0000 (UTC)", "from EUR04-VI1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr80071.outbound.protection.outlook.com [40.107.8.71])\n\tby lists.denx.de (Postfix) with ESMTPS id C5F92C21C27\n\tfor <u-boot@lists.denx.de>; Wed, 17 Jul 2019 10:23:42 +0000 (UTC)", "from VI1PR0401MB2496.eurprd04.prod.outlook.com (10.168.65.10) by\n\tVI1PR0401MB2430.eurprd04.prod.outlook.com (10.169.134.145) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.2073.14; Wed, 17 Jul 2019 10:23:41 +0000", "from VI1PR0401MB2496.eurprd04.prod.outlook.com\n\t([fe80::6c7e:a751:af2:8d78]) by\n\tVI1PR0401MB2496.eurprd04.prod.outlook.com\n\t([fe80::6c7e:a751:af2:8d78%6]) with mapi id 15.20.2094.011;\n\tWed, 17 Jul 2019 10:23:41 +0000" ], "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=RCVD_IN_MSPIKE_H2,\n\tSPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0", "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n\tb=gxa+QEulwbbGXm4K+JImgJLOu2qQHx6w4B68dCkxg3WOplsMQ8Cbbu4+xcrflJ+m59x0e1SgDzZ6bg4DfZ5Wd74k+TdMUl3PccLKNljHuA0An3KmReVZy6IsF5OjM/s7T48DJagH7lMmkk/GFbIQMKF0IkpW+hL44h9Y5TbQu+chkqBAA17IVSVJtK6ElQTdfANFXWK66NOfo6X2r+iro3VpSt3/ndynvdYYi5XHsUjAMNTa8uogWL9FjykXl79WDpOkgf9jHzc8pPUQ1rsDDR/CJ5Xsv4nSMEWpEz1/T90rzzoANYDzsBHPNJNwPjqsqZEOQPFACJNoBqeatKdhbw==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n\ts=arcselector9901;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=H4BkGc+neWUT7VcbScMvlzNs1Q2rXvczk5tqqeHgGGY=;\n\tb=gFmtug/aZHBef+rLMX+OYLjMHfdPYBqWjTmihXZGkERuNCj+X9pitjB9urIFt2MrMVuNx4m9cJrHlv/qB7E1hZZ8wncNLqw4GVJZjQxD5bcHyVRERyEv2I6FCOHF1Qw81KNrR7S3pDnlEtksV9/Yk1nowOzsjfuYxMsCZoPDdEqJppYxv+JvP38QtElMKEItFV647O9CN5XaU4rZx42aOrhfdY6GBGrd4/sJRA5VCtLvyh2gsWwbP2GDI7htZ+f6U6M8g5MGfcxSKyd2JFPG45iNDYgx0VnNdYBn7ezk4umpYMUDSpzqQ8ohfqdO8wY072fPsVk1fkCrWL2cqjRL+w==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1;spf=pass\n\tsmtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com;\n\tdkim=pass header.d=nxp.com;arc=none", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=H4BkGc+neWUT7VcbScMvlzNs1Q2rXvczk5tqqeHgGGY=;\n\tb=le8n16Kv0On7FdHr0hvvyiJB3oyphpSSiciYzAa+OOLW8+/l3jVj4bLV4Gdnlgq7iOeeUHJn1WfL7nlNY+UNgplhuaGRcYhh3wAwGNoek+3MxN7oNgynXyeRjKwhcq+GC0ORTTOVQpThjuGD6DCemEwLTsLCwjKivE6ZZIWp4Zo=", "From": "Pankaj Bansal <pankaj.bansal@nxp.com>", "To": "Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>, Meenakshi Aggarwal\n\t<meenakshi.aggarwal@nxp.com>", "Thread-Topic": "[PATCH v2] board: fsl: lx2160a: implement board_fix_fdt", "Thread-Index": "AQHVPIm01Pr7Yf8gRUmxDUC7EF1Ngw==", "Date": "Wed, 17 Jul 2019 10:23:41 +0000", "Message-ID": "<20190717154553.25482-1-pankaj.bansal@nxp.com>", "Accept-Language": "en-US", "Content-Language": "en-US", "X-MS-Has-Attach": "", "X-MS-TNEF-Correlator": "", "x-clientproxiedby": "BM1PR01CA0129.INDPRD01.PROD.OUTLOOK.COM\n\t(2603:1096:b00:40::23) To VI1PR0401MB2496.eurprd04.prod.outlook.com\n\t(2603:10a6:800:56::10)", "x-mailer": "git-send-email 2.17.1", "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\tdmarc=fail (p=none dis=none) header.from=nxp.com", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"le8n16Kv\";\n\tdkim-atps=neutral", "spf=none (sender IP is )\n\tsmtp.mailfrom=pankaj.bansal@nxp.com; " ], "x-ms-exchange-messagesentrepresentingtype": "1", "x-originating-ip": "[92.120.1.69]", "x-ms-publictraffictype": "Email", "x-ms-office365-filtering-correlation-id": "1718cd65-817a-4f5d-8c9f-08d70aa0d6fc", "x-ms-office365-filtering-ht": "Tenant", "x-microsoft-antispam": "BCL:0; PCL:0;\n\tRULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);\n\tSRVR:VI1PR0401MB2430; ", "x-ms-traffictypediagnostic": "VI1PR0401MB2430:", "x-microsoft-antispam-prvs": "<VI1PR0401MB2430C7AAF784393EE72A4091F1C90@VI1PR0401MB2430.eurprd04.prod.outlook.com>", "x-ms-oob-tlc-oobclassifiers": "OLM:9508;", "x-forefront-prvs": "01018CB5B3", "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(4636009)(136003)(39860400002)(376002)(346002)(396003)(366004)(199004)(189003)(53936002)(71190400001)(71200400001)(44832011)(4326008)(316002)(66946007)(102836004)(6512007)(6436002)(99286004)(6486002)(6506007)(2616005)(110136005)(54906003)(66556008)(64756008)(66446008)(66476007)(476003)(478600001)(186003)(2906002)(25786009)(36756003)(486006)(14454004)(8676002)(3846002)(6116002)(50226002)(81156014)(6636002)(86362001)(81166006)(8936002)(52116002)(26005)(68736007)(305945005)(1076003)(7736002)(386003)(5660300002)(256004)(66066001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2430;\n\tH:VI1PR0401MB2496.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; \n\tPTR:InfoNoRecords; A:1; MX:1; ", "received-spf": "None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)", "x-ms-exchange-senderadcheck": "1", "x-microsoft-antispam-message-info": "GDSxYgvAIMXtMjznBBjmISkD5QxKungjv+rqbCGtkoEmeAoTwyPcUo7NH3+fCerxrXfP0VDSnkn2jz4kAA64ViYvpwYTbA/cuckk42wG/CgKvNki8sq5xCSyGMj4DpSP4PEUj90MK2Zw4BIqNWBgFVe9SwaYbXjdq7smdKV3rvoMyfUISjiWMd+Zkn+6Au997kbcZQ/oKyTq7C6l79ujVC6V0UC5yYD1QW0P+OBXRtEnpI0zQzypTm5La8KhnWCJr2V/wO1Ues0mIohskDc3qPvfNw67lB8a95Er95EaV+yBAuxOG7TiNjk/X/y5NWIbeS5KlTFGwSB7/Byz9AGfVcfJDKE8J+2QQyx1pcWLpt6FgT1RRoPdlzZTYPrBoEy6zwf/zAbkWa0WOTMzw8dXCk1EsFmDhB04QswbGqRyMiE=", "MIME-Version": "1.0", "X-OriginatorOrg": "nxp.com", "X-MS-Exchange-CrossTenant-Network-Message-Id": "1718cd65-817a-4f5d-8c9f-08d70aa0d6fc", "X-MS-Exchange-CrossTenant-originalarrivaltime": "17 Jul 2019 10:23:41.6246\n\t(UTC)", "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted", "X-MS-Exchange-CrossTenant-id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635", "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED", "X-MS-Exchange-CrossTenant-userprincipalname": "pankaj.bansal@nxp.com", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VI1PR0401MB2430", "Cc": "\"u-boot@lists.denx.de\" <u-boot@lists.denx.de>,\n\tVarun Sethi <V.Sethi@nxp.com>", "Subject": "[U-Boot] [PATCH v2] board: fsl: lx2160a: implement board_fix_fdt", "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": "In lx2160a rev2 the pcie controller has been changed.\nTherefore, we need to change the device tree nodes of pcie controllers\nso that new controller can be probed.\nIt involves changing the \"compatible\" field as well as registers names'.\nwe are keeping same device tree for lx2160a rev1 and rev2, therefore we\nchange the device tree nodes as part of fdt fixups.\nThese changes would only be applied if the soc revision is not rev1.\n\nSigned-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>\n---\n\nNotes:\n V2:\n - explained the patch requirements and patch changes.\n\n board/freescale/lx2160a/lx2160a.c | 67 +++++++++++++++++++++++++++++\n configs/lx2160aqds_tfa_defconfig | 1 +\n configs/lx2160ardb_tfa_defconfig | 1 +\n 3 files changed, 69 insertions(+)", "diff": "diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c\nindex addc829e5d..1182c4a1e6 100644\n--- a/board/freescale/lx2160a/lx2160a.c\n+++ b/board/freescale/lx2160a/lx2160a.c\n@@ -20,6 +20,8 @@\n #include <efi_loader.h>\n #include <asm/arch/mmu.h>\n #include <hwconfig.h>\n+#include <asm/arch/clock.h>\n+#include <asm/arch/config.h>\n #include <asm/arch/fsl_serdes.h>\n #include <asm/arch/soc.h>\n #include \"../common/qixis.h\"\n@@ -108,6 +110,71 @@ int board_early_init_f(void)\n \treturn 0;\n }\n \n+#ifdef CONFIG_OF_BOARD_FIXUP\n+int board_fix_fdt(void *fdt)\n+{\n+\tchar *reg_names, *reg_name;\n+\tint names_len, old_name_len, new_name_len, remaining_names_len;\n+\tstruct str_map {\n+\t\tchar *old_str;\n+\t\tchar *new_str;\n+\t} reg_names_map[] = {\n+\t\t{ \"ccsr\", \"dip\" },\n+\t\t{ \"pf_ctrl\", \"ctrl\" }\n+\t};\n+\tint off = -1, i;\n+\n+\tif (IS_SVR_REV(get_svr(), 1, 0))\n+\t\treturn 0;\n+\n+\toff = fdt_node_offset_by_compatible(fdt, -1, \"fsl,lx2160a-pcie\");\n+\twhile (off != -FDT_ERR_NOTFOUND) {\n+\t\tfdt_setprop(fdt, off, \"compatible\", \"fsl,ls-pcie\",\n+\t\t\t strlen(\"fsl,ls-pcie\") + 1);\n+\n+\t\treg_names = fdt_getprop(fdt, off, \"reg-names\", &names_len);\n+\t\tif (!reg_names)\n+\t\t\tcontinue;\n+\n+\t\treg_name = reg_names;\n+\t\tremaining_names_len = names_len - (reg_name - reg_names);\n+\t\tfor (i = 0; (i < ARRAY_SIZE(reg_names_map)) && names_len; i++) {\n+\t\t\told_name_len = strlen(reg_names_map[i].old_str);\n+\t\t\tnew_name_len = strlen(reg_names_map[i].new_str);\n+\t\t\tif (memcmp(reg_name, reg_names_map[i].old_str,\n+\t\t\t\t old_name_len) == 0) {\n+\t\t\t\t/* first only leave required bytes for new_str\n+\t\t\t\t * and copy rest of the string after it\n+\t\t\t\t */\n+\t\t\t\tmemcpy(reg_name + new_name_len,\n+\t\t\t\t reg_name + old_name_len,\n+\t\t\t\t remaining_names_len - old_name_len);\n+\t\t\t\t/* Now copy new_str */\n+\t\t\t\tmemcpy(reg_name, reg_names_map[i].new_str,\n+\t\t\t\t new_name_len);\n+\t\t\t\tnames_len -= old_name_len;\n+\t\t\t\tnames_len += new_name_len;\n+\t\t\t}\n+\n+\t\t\treg_name = memchr(reg_name, '\\0', remaining_names_len);\n+\t\t\tif (!reg_name)\n+\t\t\t\tbreak;\n+\n+\t\t\treg_name += 1;\n+\n+\t\t\tremaining_names_len = names_len -\n+\t\t\t\t\t (reg_name - reg_names);\n+\t\t}\n+\n+\t\tfdt_setprop(fdt, off, \"reg-names\", reg_names, names_len);\n+\t\toff = fdt_node_offset_by_compatible(fdt, off,\n+\t\t\t\t\t\t \"fsl,lx2160a-pcie\");\n+\t}\n+\n+\treturn 0;\n+}\n+#endif\n+\n #if defined(CONFIG_TARGET_LX2160AQDS)\n void esdhc_dspi_status_fixup(void *blob)\n {\ndiff --git a/configs/lx2160aqds_tfa_defconfig b/configs/lx2160aqds_tfa_defconfig\nindex d68b40de3f..0eca208020 100644\n--- a/configs/lx2160aqds_tfa_defconfig\n+++ b/configs/lx2160aqds_tfa_defconfig\n@@ -9,6 +9,7 @@ CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y\n CONFIG_AHCI=y\n CONFIG_FIT_VERBOSE=y\n CONFIG_OF_BOARD_SETUP=y\n+CONFIG_OF_BOARD_FIXUP=y\n CONFIG_OF_STDOUT_VIA_ALIAS=y\n CONFIG_BOOTDELAY=10\n CONFIG_USE_BOOTARGS=y\ndiff --git a/configs/lx2160ardb_tfa_defconfig b/configs/lx2160ardb_tfa_defconfig\nindex 94f58a832f..dedb6c747e 100644\n--- a/configs/lx2160ardb_tfa_defconfig\n+++ b/configs/lx2160ardb_tfa_defconfig\n@@ -10,6 +10,7 @@ CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y\n CONFIG_AHCI=y\n CONFIG_FIT_VERBOSE=y\n CONFIG_OF_BOARD_SETUP=y\n+CONFIG_OF_BOARD_FIXUP=y\n CONFIG_OF_STDOUT_VIA_ALIAS=y\n CONFIG_BOOTDELAY=10\n CONFIG_USE_BOOTARGS=y\n", "prefixes": [ "U-Boot", "v2" ] }