Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/428125/?format=api
{ "id": 428125, "url": "http://patchwork.ozlabs.org/api/patches/428125/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1421096109-27510-1-git-send-email-arnab_basu@rocketmail.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": "<1421096109-27510-1-git-send-email-arnab_basu@rocketmail.com>", "list_archive_url": null, "date": "2015-01-12T20:55:09", "name": "[U-Boot,v2,2/9] ARM: PSCI: Alow arch specific DT patching", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "4af0cb9eb0d5042933ed87bd89a4575f5be944d1", "submitter": { "id": 65465, "url": "http://patchwork.ozlabs.org/api/people/65465/?format=api", "name": "Arnab Basu", "email": "arnab_basu@rocketmail.com" }, "delegate": { "id": 1694, "url": "http://patchwork.ozlabs.org/api/users/1694/?format=api", "username": "aaribaud", "first_name": "Albert", "last_name": "ARIBAUD", "email": "albert.aribaud@free.fr" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1421096109-27510-1-git-send-email-arnab_basu@rocketmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/428125/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/428125/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", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 255E6140146\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 13 Jan 2015 08:01:41 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 62DAB4B61A;\n\tMon, 12 Jan 2015 22:01:35 +0100 (CET)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id DWmg1yDLkzSW; Mon, 12 Jan 2015 22:01:35 +0100 (CET)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 3B8144B612;\n\tMon, 12 Jan 2015 22:01:21 +0100 (CET)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id D63224B605\n\tfor <u-boot@lists.denx.de>; Mon, 12 Jan 2015 21:58:10 +0100 (CET)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 91G1B7JRz+J0 for <u-boot@lists.denx.de>;\n\tMon, 12 Jan 2015 21:58:10 +0100 (CET)", "from nm49-vm6.bullet.mail.gq1.yahoo.com\n\t(nm49-vm6.bullet.mail.gq1.yahoo.com [67.195.87.236])\n\tby theia.denx.de (Postfix) with ESMTPS id 0BB0A4B5FA\n\tfor <u-boot@lists.denx.de>; Mon, 12 Jan 2015 21:58:06 +0100 (CET)", "from [127.0.0.1] by nm49.bullet.mail.gq1.yahoo.com with NNFMP;\n\t12 Jan 2015 20:58:03 -0000", "from [98.137.12.190] by nm49.bullet.mail.gq1.yahoo.com with NNFMP; \n\t12 Jan 2015 20:55:17 -0000", "from [106.10.166.126] by tm11.bullet.mail.gq1.yahoo.com with NNFMP;\n\t12 Jan 2015 20:55:16 -0000", "from [106.10.167.148] by tm15.bullet.mail.sg3.yahoo.com with NNFMP;\n\t12 Jan 2015 20:55:16 -0000", "from [127.0.0.1] by smtp121.mail.sg3.yahoo.com with NNFMP;\n\t12 Jan 2015 20:55:16 -0000" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com;\n\ts=s2048; \n\tt=1421096283; bh=KlFvx/A0sFQ3B+JRNOeNRkdChvyv/ReVErvU8y834lc=;\n\th=From:To:Cc:Subject:Date:From:Subject;\n\tb=P4eLjCZZ3JP9eyJAVnpuGb6o1k2bvM90Z6rIBNx71TwPfuLeJeKggh1wjd8Ty+XEnijCQUg6VSHJFkAVJ9NxdTXJ2eiN35JXqNHOEFh90ycyitMyVOzFFMgnuzjpEXwS9hyIr3gGDiUUw/KxBj4SogFlsQ+2xikHyOoEVRq7/NUBu5xJhta/RFjQA6M9nMmM/WhvkyERa1dyB/Ibb/hRCXTwoLM2cxbPgLVzazlT83lS29nMLbWMEeaaYbq/x5kh9F4N1Vsv0poI+4AKasnQ2KaODdZHmdAzzIFNqW+3Yp6+Tn62+4hAZwVFzi4TboTAgmnRzE1FrQIIXgtE3f8BIA==", "DomainKey-Signature": "a=rsa-sha1; q=dns; c=nofws; s=s2048; d=rocketmail.com; \n\tb=kPrb3bVMJyEqOIln6lmRbS/mozgRmE5firbh+HoZ0FR0pV8tGmXVCE7R1/spvAZluKY6eerEE3cvbTrK4rogcBnI6o99J9joDcgc9XEirDYm79F8NKd1Tdra2fw33J+/pep3zcvnJUbPlPeAgjtFHEjeOH8f7WTZt5SMS4RCK7H6TruOzsfE+Jqoy/i7/YZiewEgflNpWJWOuhkJUCxKwf8K9h7kNx4zfMeXVmfCiAn2Ac6TW0vYX3OEQPvzAjwk7glkE5r8P/+/IRosMq5ufMbxfIdPOjDmm0y+luBK/5eVrCsZI1hwlCwweKLkewH/kccrSAWBy7rl+hWIjexRzw==;", "X-Yahoo-Newman-Id": "257118.40952.bm@smtp121.mail.sg3.yahoo.com", "X-Yahoo-Newman-Property": "ymail-4", "X-YMail-OSG": "rk1I99oVM1m_yUOPypOc4UT9.4bKm71qLplc06pjHqhvm2A\n\tDkOQbwgi8__TR4s3qFW_yOO0PPZn2FjksqiXAz9HH6H8FaCfJ6LSndc9FBPX\n\tcIer.ISiFlACUCvLwoS5roR3ijDyE9McxlIUVo68iASA_8lquT91hpEL.rI1\n\tRnxWSdMbwcCzwexRIpU3dKMkU4CyzLZChrCIvRlQd99ebDvXkwIRKm5yYODi\n\t0kIJCvJ8VgnD37hxi6GcKAMbzwv0DRNLyBmzpyo4k_qJ1JHz1jZ_Kc0Nafcp\n\tEsSQ6Ja1wu8Y.wOGDtIB9QREAfgXZnU2MMRlwk0vreT4QzN1gKww4YikXihX\n\tjlC5m8HXwd_Iy7hRfNPF1QXIsP2UU27ltcjcuVh_3k3X1yFcXpl4nr_GzO37\n\tcORzTdjOIshkEhQy0UvBACfwyCbc_PTOrZ1SQMX5JwukM8MitRDtrtjC0Qh_\n\tTxp5Sty7PkvTHVG2jYRhsu5euleSe0OS7TvvWuvsOlavmFeK3ZolTk7vcNhv\n\tc1UzpMUHtUOS1e4bdyllhhIs7I0k5YkR0pXvBCfH2R_dRJdnRmNpsoz2Gwr9\n\t5waeaaoC.2Hu3vqcf", "X-Yahoo-SMTP": "crLrLjSswBAdKO_oWys7UTWLvPXPfbdd3XtEOYM5nEof1j3oy80-", "From": "Arnab Basu <arnab_basu@rocketmail.com>", "To": "u-boot@lists.denx.de,\n\tAlbert Aribaud <albert.u.boot@aribaud.net>", "Date": "Tue, 13 Jan 2015 02:25:09 +0530", "Message-Id": "<1421096109-27510-1-git-send-email-arnab_basu@rocketmail.com>", "X-Mailer": "git-send-email 1.9.1", "X-Mailman-Approved-At": "Mon, 12 Jan 2015 22:01:16 +0100", "Cc": "stuart.yoder@freescale.com, Marc Zyngier <marc.zyngier@arm.com>,\n\tyorksun@freescale.com", "Subject": "[U-Boot] [PATCH v2 2/9] ARM: PSCI: Alow arch specific DT patching", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.13", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/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": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "Both ARMv7 and ARMv8 need to patch the device tree but the kind\nof patching done is different. This creates a function that can be\ndefined by each architecture to handle the differences\n\nSigned-off-by: Arnab Basu <arnab_basu@rocketmail.com>\nCc: Bhupesh Sharma <bhupesh.sharma@freescale.com>\nCc: Marc Zyngier <marc.zyngier@arm.com>\n---\n arch/arm/cpu/armv7/virt-dt.c | 7 ++++++-\n arch/arm/lib/bootm-fdt.c | 11 ++++++++---\n 2 files changed, 14 insertions(+), 4 deletions(-)", "diff": "diff --git a/arch/arm/cpu/armv7/virt-dt.c b/arch/arm/cpu/armv7/virt-dt.c\nindex ad19e4c..cb4cd53 100644\n--- a/arch/arm/cpu/armv7/virt-dt.c\n+++ b/arch/arm/cpu/armv7/virt-dt.c\n@@ -88,7 +88,7 @@ static int fdt_psci(void *fdt)\n \treturn 0;\n }\n \n-int armv7_update_dt(void *fdt)\n+static int armv7_update_dt(void *fdt)\n {\n \tif (!armv7_boot_nonsec())\n \t\treturn 0;\n@@ -100,3 +100,8 @@ int armv7_update_dt(void *fdt)\n \n \treturn fdt_psci(fdt);\n }\n+\n+int cpu_update_dt(void *fdt)\n+{\n+\treturn armv7_update_dt(fdt);\n+}\ndiff --git a/arch/arm/lib/bootm-fdt.c b/arch/arm/lib/bootm-fdt.c\nindex d4f1578..daabc03 100644\n--- a/arch/arm/lib/bootm-fdt.c\n+++ b/arch/arm/lib/bootm-fdt.c\n@@ -21,6 +21,11 @@\n \n DECLARE_GLOBAL_DATA_PTR;\n \n+__weak int cpu_update_dt(void *fdt)\n+{\n+\treturn 0;\n+}\n+\n int arch_fixup_fdt(void *blob)\n {\n \tbd_t *bd = gd->bd;\n@@ -34,11 +39,11 @@ int arch_fixup_fdt(void *blob)\n \t}\n \n \tret = fdt_fixup_memory_banks(blob, start, size, CONFIG_NR_DRAM_BANKS);\n-#if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT)\n+\n \tif (ret)\n \t\treturn ret;\n \n-\tret = armv7_update_dt(blob);\n-#endif\n+\tret = cpu_update_dt(blob);\n+\n \treturn ret;\n }\n", "prefixes": [ "U-Boot", "v2", "2/9" ] }