Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/175284/?format=api
{ "id": 175284, "url": "http://patchwork.ozlabs.org/api/patches/175284/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1344239199-11445-7-git-send-email-monstr@monstr.eu/", "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": "<1344239199-11445-7-git-send-email-monstr@monstr.eu>", "list_archive_url": null, "date": "2012-08-06T07:46:39", "name": "[U-Boot,v2,7/7] microblaze: board: Use bi_flashstart instead of CONFIG_SYS_FLASH_BASE", "commit_ref": "c60a57912a3efcdcc087422a1e9ce2dc1b61e39d", "pull_url": null, "state": "accepted", "archived": false, "hash": "661bceaac7e15ac148db2282a12f3071cbd2bf4a", "submitter": { "id": 2237, "url": "http://patchwork.ozlabs.org/api/people/2237/?format=api", "name": "Michal Simek", "email": "monstr@monstr.eu" }, "delegate": { "id": 1714, "url": "http://patchwork.ozlabs.org/api/users/1714/?format=api", "username": "vapier", "first_name": "Mike", "last_name": "Frysinger", "email": "vapier@gentoo.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1344239199-11445-7-git-send-email-monstr@monstr.eu/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/175284/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/175284/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 1A2272C0079\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 6 Aug 2012 17:48:05 +1000 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id CE68228198;\n\tMon, 6 Aug 2012 09:47:42 +0200 (CEST)", "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 99OPq8HsqaFU; Mon, 6 Aug 2012 09:47:42 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 49AE628181;\n\tMon, 6 Aug 2012 09:47:24 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 8593128142\n\tfor <u-boot@lists.denx.de>; Mon, 6 Aug 2012 09:47:22 +0200 (CEST)", "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 5RQqZybIF+YW for <u-boot@lists.denx.de>;\n\tMon, 6 Aug 2012 09:47:22 +0200 (CEST)", "from mail-wg0-f52.google.com (mail-wg0-f52.google.com\n\t[74.125.82.52])\n\tby theia.denx.de (Postfix) with ESMTPS id 1425328150\n\tfor <u-boot@lists.denx.de>; Mon, 6 Aug 2012 09:47:04 +0200 (CEST)", "by mail-wg0-f52.google.com with SMTP id fg15so2492069wgb.9\n\tfor <u-boot@lists.denx.de>; Mon, 06 Aug 2012 00:47:04 -0700 (PDT)", "by 10.216.241.137 with SMTP id g9mr4432570wer.122.1344239223973;\n\tMon, 06 Aug 2012 00:47:03 -0700 (PDT)", "from localhost (nat-2.starnet.cz. [92.62.224.2])\n\tby mx.google.com with ESMTPS id l6sm14262816wiz.4.2012.08.06.00.47.02\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 06 Aug 2012 00:47:03 -0700 (PDT)" ], "X-Virus-Scanned": [ "Debian amavisd-new at theia.denx.de", "Debian amavisd-new at theia.denx.de" ], "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)", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20120113;\n\th=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\n\t:x-gm-message-state;\n\tbh=E4Cf9Y/Ddw5sJSKsL6pkujF0XtBZ+zDt6iGxhcPhJpk=;\n\tb=WOFit3ipmX2nfdl86AB/+78lLjMVqfxNB/HilAbuskztWg3dOGfj5kzQZftvsBkKCn\n\tIj128+tSmldVyztmZzNYc7S6sGMlATxXSwk48FPr5nM9ZwkBdL1OsQNpJAqb1y6mBybE\n\tUe4uI4D+J0Emi5m03/LwWT54cdter4eWxAD8PFgf+GJR01N+ssAetfOPSjKMPESPZQGb\n\tVdC7T/Yo9Z4qr/5Usf0salpmAC4aRXlRVQtydhz0LupEzOeTZK9OHWeV7J6sXDHIuWQL\n\t7I6GfrAD9ZE7WqTud/so/nCeP+/L2d0pRgZk8SfhBA5GxuvolZ6cPHm4t+3KPfZZuUYd\n\tY81Q==", "From": "Michal Simek <monstr@monstr.eu>", "To": "u-boot@lists.denx.de", "Date": "Mon, 6 Aug 2012 09:46:39 +0200", "Message-Id": "<1344239199-11445-7-git-send-email-monstr@monstr.eu>", "X-Mailer": "git-send-email 1.7.0.4", "In-Reply-To": "<1344239199-11445-1-git-send-email-monstr@monstr.eu>", "References": "<1344239199-11445-1-git-send-email-monstr@monstr.eu>", "X-Gm-Message-State": "ALoCoQnXrwDSXmudCZG/ogWxetZgNw0VOMHCMjBXa8Y6yly0n8JfOvHn1w9vanf19bOLfZEDDsIr", "Cc": "linz@li-pro.net", "Subject": "[U-Boot] [PATCH v2 7/7] microblaze: board: Use bi_flashstart\n\tinstead of CONFIG_SYS_FLASH_BASE", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.11", "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": "Prepare for device-tree driven configuration.\n\nSigned-off-by: Michal Simek <monstr@monstr.eu>\n\n---\nv2: Move bi_flashsize and bi_flashoffset from other patch\n---\n arch/microblaze/lib/board.c | 10 ++++++----\n 1 files changed, 6 insertions(+), 4 deletions(-)", "diff": "diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c\nindex b450367..674b573 100644\n--- a/arch/microblaze/lib/board.c\n+++ b/arch/microblaze/lib/board.c\n@@ -136,9 +136,8 @@ void board_init_f(ulong not_used)\n #if defined(CONFIG_CMD_FLASH)\n \tputs (\"Flash: \");\n \tbd->bi_flashstart = CONFIG_SYS_FLASH_BASE;\n-\tif (0 < (flash_size = flash_init ())) {\n-\t\tbd->bi_flashsize = flash_size;\n-\t\tbd->bi_flashoffset = CONFIG_SYS_FLASH_BASE + flash_size;\n+\tflash_size = flash_init();\n+\tif (bd->bi_flashstart && flash_size > 0) {\n # ifdef CONFIG_SYS_FLASH_CHECKSUM\n \t\tprint_size (flash_size, \"\");\n \t\t/*\n@@ -149,13 +148,16 @@ void board_init_f(ulong not_used)\n \t\ts = getenv (\"flashchecksum\");\n \t\tif (s && (*s == 'y')) {\n \t\t\tprintf (\" CRC: %08X\",\n-\t\t\t\tcrc32 (0, (const unsigned char *) CONFIG_SYS_FLASH_BASE, flash_size)\n+\t\t\t\tcrc32(0, (const u8 *)bd->bi_flashstart,\n+\t\t\t\t\t\t\tflash_size)\n \t\t\t);\n \t\t}\n \t\tputc ('\\n');\n # else\t/* !CONFIG_SYS_FLASH_CHECKSUM */\n \t\tprint_size (flash_size, \"\\n\");\n # endif /* CONFIG_SYS_FLASH_CHECKSUM */\n+\t\tbd->bi_flashsize = flash_size;\n+\t\tbd->bi_flashoffset = bd->bi_flashstart + flash_size;\n \t} else {\n \t\tputs (\"Flash init FAILED\");\n \t\tbd->bi_flashstart = 0;\n", "prefixes": [ "U-Boot", "v2", "7/7" ] }