Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/808616/?format=api
{ "id": 808616, "url": "http://patchwork.ozlabs.org/api/patches/808616/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/OFC003A35D.61791671-ON4825818E.00079256-4825818E.0007F711@mxic.com.tw/", "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": "<OFC003A35D.61791671-ON4825818E.00079256-4825818E.0007F711@mxic.com.tw>", "list_archive_url": null, "date": "2017-09-01T01:28:16", "name": "[U-Boot] do_nand_status( ) patch", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "452bc6e8aa9c8e5bdb811bb09c76b96ce39ec30e", "submitter": { "id": 72277, "url": "http://patchwork.ozlabs.org/api/people/72277/?format=api", "name": "Mason Yang", "email": "masonccyang@mxic.com.tw" }, "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/OFC003A35D.61791671-ON4825818E.00079256-4825818E.0007F711@mxic.com.tw/mbox/", "series": [ { "id": 991, "url": "http://patchwork.ozlabs.org/api/series/991/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=991", "date": "2017-09-01T01:28:16", "name": "[U-Boot] do_nand_status( ) patch", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/991/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/808616/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/808616/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 3xkG053y0Pz9sMN\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 1 Sep 2017 20:37:25 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 564AFC21EE5; Fri, 1 Sep 2017 10:36:14 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9FA14C21E41;\n\tFri, 1 Sep 2017 10:35:19 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid C5968C21D72; Fri, 1 Sep 2017 01:28:28 +0000 (UTC)", "from TWHMLLG3.macronix.com (twhmllg3.macronix.com\n\t[122.147.135.201])\n\tby lists.denx.de (Postfix) with ESMTPS id A7CAEC21C27\n\tfor <u-boot@lists.denx.de>; Fri, 1 Sep 2017 01:28:27 +0000 (UTC)", "from MXML06C.mxic.com.tw (mxml06c.macronix.com [172.17.14.55])\n\tby TWHMLLG3.macronix.com with ESMTP id v811SGSl028241\n\tfor <u-boot@lists.denx.de>; Fri, 1 Sep 2017 09:28:16 +0800 (GMT-8)\n\t(envelope-from masonccyang@mxic.com.tw)" ], "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=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "To": "u-boot@lists.denx.de", "MIME-Version": "1.0", "X-KeepSent": "C003A35D:61791671-4825818E:00079256;\n type=4; name=$KeepSent", "X-Mailer": "Lotus Notes Release 8.5.3FP4 SHF90 June 10, 2013", "Message-ID": "<OFC003A35D.61791671-ON4825818E.00079256-4825818E.0007F711@mxic.com.tw>", "From": "masonccyang@mxic.com.tw", "Date": "Fri, 1 Sep 2017 09:28:16 +0800", "X-MIMETrack": "Serialize by Router on MXML06C/TAIWAN/MXIC(Release\n\t9.0.1FP7|August 17, 2016) at 2017/09/01 AM 09:28:16,\n\tSerialize complete at 2017/09/01 AM 09:28:16", "X-MAIL": "TWHMLLG3.macronix.com v811SGSl028241", "X-Mailman-Approved-At": "Fri, 01 Sep 2017 10:35:15 +0000", "X-Content-Filtered-By": "Mailman/MimeDel 2.1.18", "Subject": "[U-Boot] do_nand_status( ) patch", "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": "Hi,\n\nChecking all nand chip is necessary and some of NAND host implement \ncmd_ctrl() from cmdfunc( ).\nThe select_chip() is required.\n\n\n======================================================================\n\nThanks & Best Regards,\nMason Yang \nMacronix International Co., Ltd\n\n\nCONFIDENTIALITY NOTE:\n\nThis e-mail and any attachments may contain confidential information \nand/or personal data, which is protected by applicable laws. Please be \nreminded that duplication, disclosure, distribution, or use of this e-mail \n(and/or its attachments) or any part thereof is prohibited. If you receive \nthis e-mail in error, please notify us immediately and delete this mail as \nwell as its attachment(s) from your system. In addition, please be \ninformed that collection, processing, and/or use of personal data is \nprohibited unless expressly permitted by personal data protection laws. \nThank you for your attention and cooperation.\n\nMacronix International Co., Ltd.\n\n=====================================================================\n\n\n\n============================================================================\n\nCONFIDENTIALITY NOTE:\n\nThis e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation.\n\nMacronix International Co., Ltd.\n\n=====================================================================", "diff": "===============================================================================\ndiff --git a/cmd/nand.c b/cmd/nand.c\nindex 5b9d4b3..a7c781a 100644\n--- a/cmd/nand.c\n+++ b/cmd/nand.c\n@@ -156,13 +156,18 @@ static void do_nand_status(nand_info_t *nand)\n ulong block_start = 0;\n ulong off;\n int last_status = -1;\n+ int chipnr;\n\n struct nand_chip *nand_chip = nand->priv;\n /* check the WP bit */\n- nand_chip->cmdfunc(nand, NAND_CMD_STATUS, -1, -1);\n- printf(\"device is %swrite protected\\n\",\n- (nand_chip->read_byte(nand) & 0x80 ?\n- \"NOT \" : \"\"));\n+ for (chipnr = 0; chipnr < nand_chip->numchips; chipnr++) {\n+ nand_chip->select_chip(nand, chipnr);\n+ nand_chip->cmdfunc(nand, NAND_CMD_STATUS, -1, -1);\n+ printf(\"device %d is %swrite protected\\n\", chipnr,\n+ (nand_chip->read_byte(nand) & 0x80 ?\n+ \"NOT \" : \"\"));\n+ nand_chip->select_chip(nand, -1);\n+ }\n\n for (off = 0; off < nand->size; off += nand->erasesize) {\n int s = nand_get_lock_status(nand, off);\n", "prefixes": [ "U-Boot" ] }