[{"id":1775654,"web_url":"http://patchwork.ozlabs.org/comment/1775654/","msgid":"<47540beb-5bfa-9d18-4c42-a6d1ee63e62d@denx.de>","list_archive_url":null,"date":"2017-09-26T15:57:44","subject":"Re: [U-Boot] [PATCH] mtd: cfi: Add support for status register\n\tpolling","submitter":{"id":13,"url":"http://patchwork.ozlabs.org/api/people/13/","name":"Stefan Roese","email":"sr@denx.de"},"content":"On 12.09.2017 19:09, Marek Vasut wrote:\n> The status register is optional in the AMD command sets, but it's\n> presence can be checked by reading out CFI table entry 0xc bit 0.\n> If the register is present, prefer using it's bit 7 to determine\n> if the flash is busy over reading the flash ; this is needed ie.\n> on Hyperflash memories.\n> \n> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n\nApplied to u-boot-cfi-flash/master.\n\nThanks,\nStefan","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 3y1lxK2Zq4z9t49\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 01:58:45 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 1162EC21F02; Tue, 26 Sep 2017 15:58:26 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9BB8BC21F01;\n\tTue, 26 Sep 2017 15:58:24 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid D2990C21E32; Tue, 26 Sep 2017 15:57:49 +0000 (UTC)","from mx1.mailbox.org (mx1.mailbox.org [80.241.60.212])\n\tby lists.denx.de (Postfix) with ESMTPS id F2515C21E68\n\tfor <u-boot@lists.denx.de>; Tue, 26 Sep 2017 15:57:46 +0000 (UTC)","from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mx1.mailbox.org (Postfix) with ESMTPS id BF11246AB1;\n\tTue, 26 Sep 2017 17:57:46 +0200 (CEST)","from smtp1.mailbox.org ([80.241.60.240])\n\tby spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de\n\t[80.241.56.116]) (amavisd-new, port 10030)\n\twith ESMTP id WbviJcswFX1K; Tue, 26 Sep 2017 17:57:44 +0200 (CEST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW\n\tautolearn=unavailable autolearn_force=no version=3.4.0","X-Virus-Scanned":"amavisd-new at heinlein-support.de","To":"Marek Vasut <marek.vasut@gmail.com>, u-boot@lists.denx.de","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>","From":"Stefan Roese <sr@denx.de>","Message-ID":"<47540beb-5bfa-9d18-4c42-a6d1ee63e62d@denx.de>","Date":"Tue, 26 Sep 2017 17:57:44 +0200","MIME-Version":"1.0","In-Reply-To":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>","Content-Language":"en-US","Cc":"Marek Vasut <marek.vasut+renesas@gmail.com>","Subject":"Re: [U-Boot] [PATCH] mtd: cfi: Add support for status register\n\tpolling","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-Transfer-Encoding":"base64","Content-Type":"text/plain; charset=\"utf-8\"; Format=\"flowed\"","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"}},{"id":1806532,"web_url":"http://patchwork.ozlabs.org/comment/1806532/","msgid":"<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>","list_archive_url":null,"date":"2017-11-17T16:43:57","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":67822,"url":"http://patchwork.ozlabs.org/api/people/67822/","name":"York Sun","email":"york.sun@nxp.com"},"content":"On 09/12/2017 10:09 AM, Marek Vasut wrote:\n> The status register is optional in the AMD command sets, but it's\n> presence can be checked by reading out CFI table entry 0xc bit 0.\n> If the register is present, prefer using it's bit 7 to determine\n> if the flash is busy over reading the flash ; this is needed ie.\n> on Hyperflash memories.\n> \n> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n> ---\n\nMarek,\n\nSome of our boards failed. I traced to this commit. Reverting this\ncommit fixes the issue. I happen to have two boards with slightly\ndifferent flash chip. One works and the other doesn't.\n\nThe working board has\n\n=> fli\n\nBank # 1: CFI conformant flash (16 x 16)  Size: 128 MB in 1024 Sectors\n  AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E2801\n  Erase timeout: 2048 ms, write timeout: 1 ms\n  Buffer write timeout: 3 ms, buffer size: 512 bytes\n\nThe failing board has\n\n=> fli\n\nBank # 1: CFI conformant flash (16 x 16)  Size: 128 MB in 1024 Sectors\n  AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E2801\n  Erase timeout: 4096 ms, write timeout: 1 ms\n  Buffer write timeout: 3 ms, buffer size: 64 bytes\n\nCan you investigate?\n\nYork","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"trScY2GO\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3ydkTp2nSrz9s7C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Nov 2017 03:44:12 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid 912D0C21DF0; Fri, 17 Nov 2017 16:44:05 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 0E56EC21D76;\n\tFri, 17 Nov 2017 16:44:03 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 99579C21C73; Fri, 17 Nov 2017 16:44:00 +0000 (UTC)","from EUR02-AM5-obe.outbound.protection.outlook.com\n\t(mail-eopbgr00061.outbound.protection.outlook.com [40.107.0.61])\n\tby lists.denx.de (Postfix) with ESMTPS id 2C957C21C73\n\tfor <u-boot@lists.denx.de>; Fri, 17 Nov 2017 16:44:00 +0000 (UTC)","from HE1PR04MB2073.eurprd04.prod.outlook.com (10.166.67.143) by\n\tAM4PR0401MB1732.eurprd04.prod.outlook.com (10.165.244.138) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13;\n\tFri, 17 Nov 2017 16:43:57 +0000","from HE1PR04MB2073.eurprd04.prod.outlook.com\n\t([fe80::78b0:eb9a:2e38:dca0]) by\n\tHE1PR04MB2073.eurprd04.prod.outlook.com\n\t([fe80::78b0:eb9a:2e38:dca0%13]) with mapi id 15.20.0239.007;\n\tFri, 17 Nov 2017 16:43:57 +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_DNSWL_BLOCKED,\n\tRCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=2oqdugoqByEhddTj1nnW+pX8TwbnN/1ClJuH8Eq3gjI=;\n\tb=trScY2GOf/sCc11Yx3UZBZNTCfkvdJ4ceS8269Lt+HTI8p+2znXnbvTQ78rGUFqtc7/fvK7uydjYTaJSxCG72L0oPZJ1EXciiX830Kv/eSDmyyAh6Q+W0UvXBqm3H57mZv4Bkf9ktJcAn9pfYbfEotTcub2ake9Ln7X8np6YFWs=","From":"York Sun <york.sun@nxp.com>","To":"Marek Vasut <marek.vasut@gmail.com>, \"u-boot@lists.denx.de\"\n\t<u-boot@lists.denx.de>","Thread-Topic":"[U-Boot] mtd: cfi: Add support for status register polling","Thread-Index":"AQHTX8NC7MNPU9HO0keWSuadkLPX0w==","Date":"Fri, 17 Nov 2017 16:43:57 +0000","Message-ID":"<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>","Accept-Language":"en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"trScY2GO\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"x-originating-ip":"[192.88.168.1]","x-ms-publictraffictype":"Email","x-microsoft-exchange-diagnostics":"1; AM4PR0401MB1732;\n\t6:euLJhAk0xQpJynfi3RDvtSsX9rDz3SjCgtPJiyiZpKjA8HLG8f3K9VZoEc5Ignd+bmryYXhH2wT/jFkNdS6+fLWqoZLNnQcae0ONNBDrxUnqAYDH45yl7SlD9PJyMfEsQSEkeTlOTBo9dVgZ4C9KzvG8+7NCzoSLJf7ICuHfwLfn+yY0Dd0pqBlxOIPXTx1/68gebnUAT6eTjXDhcHnmlHoEpiELBbeOR/0+tlwFn6dQfTFx7c7E9XGRZ8WUe+sOg6hGEL9K0LdNI5dei4TbOfUPabUWJ0Ru9KERXW98tDk0zCWI14kPksgwJJG1vQyCmGoPpoDNjwu5vOR5z3hfAKDIezAd1mBt0I0/gXevpBk=;\n\t5:l9sESjvW2vYECYoB0N8iwyi9JwpF5/NQrVQNEdm63w2cfng1ZySsk13Und8eU/RdVCINXCiLkW5TvX0zIkhtJSOtM+0Ko8T4Sm6ljx99JT2IdF3WrQ2+bqMZgE9JrOXYNx5RXesHU/aUyVAEFsfZ8L/+Ga9GD3Wb3u+10mreNjw=;\n\t24:WrPr/5IyA91PtWrZGlgwZ547YUwKSsGs9g4tBDcBqenNf/qZemdFqAnFwfijzoRIZ6XezHoS6S/fScR7ol3dHEpVf4mDdQ7uf+5ymp+Ao14=;\n\t7:uZX8Z58vDYwnyJ6zj9XBqRa4RPxAShQXITfv5X6N8xtrurQ3u2CkSb4lWCvBabkpe4rCUArI7WszozLnx69UGgpVsS1xdEPl+cyMOzDnEqpfai3kMWac2BWHnh6D1nR/5xoyhb5nANQBGH4w05I8mUltqWYrsv0xs8Cf1MsKUx+JRQFmzKf6FXVDW0DOlUvodfHJGP513ljfb7J2JtUvDRuCXwx7A5UmRMnlQ0wNeTMwy0oWkWtFq+oFRx9O95is","x-ms-exchange-antispam-srfa-diagnostics":"SSOS;SSOR;","x-forefront-antispam-report":"SFV:SKI; SCL:-1; SFV:NSPM;\n\tSFS:(10009020)(6009001)(376002)(346002)(39860400002)(24454002)(189002)(199003)(7736002)(6506006)(3846002)(5660300001)(43066004)(3660700001)(478600001)(5250100002)(97736004)(8676002)(6436002)(7696004)(2501003)(2900100001)(86362001)(25786009)(99286004)(68736007)(114624004)(81156014)(9686003)(50986999)(110136005)(189998001)(6116002)(55016002)(229853002)(54906003)(4326008)(316002)(3450700001)(39060400002)(106356001)(33656002)(81166006)(8936002)(2906002)(53546010)(305945005)(53936002)(74316002)(14454004)(66066001)(101416001)(76176999)(3280700002)(6246003)(105586002)(102836003)(54356999);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0401MB1732;\n\tH:HE1PR04MB2073.eurprd04.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; MX:1; A:1; LANG:en; ","x-ms-office365-filtering-correlation-id":"b3b2838a-2683-4aa2-d5e1-08d52dda65c1","x-ms-office365-filtering-ht":"Tenant","x-microsoft-antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(22001)(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);\n\tSRVR:AM4PR0401MB1732; ","x-ms-traffictypediagnostic":"AM4PR0401MB1732:","x-microsoft-antispam-prvs":"<AM4PR0401MB1732A307FB18DAF90A5D8DBF9A2F0@AM4PR0401MB1732.eurprd04.prod.outlook.com>","x-exchange-antispam-report-test":"UriScan:;","x-exchange-antispam-report-cfa-test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3231022)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:AM4PR0401MB1732; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:AM4PR0401MB1732; ","x-forefront-prvs":"049486C505","received-spf":"None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)","spamdiagnosticoutput":"1:99","spamdiagnosticmetadata":"NSPM","MIME-Version":"1.0","X-OriginatorOrg":"nxp.com","X-MS-Exchange-CrossTenant-Network-Message-Id":"b3b2838a-2683-4aa2-d5e1-08d52dda65c1","X-MS-Exchange-CrossTenant-originalarrivaltime":"17 Nov 2017 16:43:57.4553\n\t(UTC)","X-MS-Exchange-CrossTenant-fromentityheader":"Hosted","X-MS-Exchange-CrossTenant-id":"686ea1d3-bc2b-4c6f-a92c-d99c5c301635","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"AM4PR0401MB1732","Cc":"Priyanka Jain <priyanka.jain@nxp.com>, Stefan Roese <sr@denx.de>,\n\tMarek Vasut <marek.vasut+renesas@gmail.com>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>","Reply-To":"York Sun <york.sun@nxp.com>","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>"}},{"id":1806647,"web_url":"http://patchwork.ozlabs.org/comment/1806647/","msgid":"<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>","list_archive_url":null,"date":"2017-11-17T19:02:55","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":1124,"url":"http://patchwork.ozlabs.org/api/people/1124/","name":"Marek Vasut","email":"marek.vasut@gmail.com"},"content":"On 11/17/2017 05:43 PM, York Sun wrote:\n> On 09/12/2017 10:09 AM, Marek Vasut wrote:\n>> The status register is optional in the AMD command sets, but it's\n>> presence can be checked by reading out CFI table entry 0xc bit 0.\n>> If the register is present, prefer using it's bit 7 to determine\n>> if the flash is busy over reading the flash ; this is needed ie.\n>> on Hyperflash memories.\n>>\n>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n>> ---\n> \n> Marek,\n> \n> Some of our boards failed. I traced to this commit. Reverting this\n> commit fixes the issue. I happen to have two boards with slightly\n> different flash chip. One works and the other doesn't.\n\nI can't since I don't have the board with such a chip ...\nWhich chip is that ? Mine is Spansion S25KL256 hyperflash.\n\n> The working board has\n> \n> => fli\n> \n> Bank # 1: CFI conformant flash (16 x 16)  Size: 128 MB in 1024 Sectors\n>   AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E2801\n>   Erase timeout: 2048 ms, write timeout: 1 ms\n>   Buffer write timeout: 3 ms, buffer size: 512 bytes\n> \n> The failing board has\n> \n> => fli\n> \n> Bank # 1: CFI conformant flash (16 x 16)  Size: 128 MB in 1024 Sectors\n>   AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E2801\n>   Erase timeout: 4096 ms, write timeout: 1 ms\n>   Buffer write timeout: 3 ms, buffer size: 64 bytes\n> \n> Can you investigate?\n> \n> York\n>","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=\"B4TXHVle\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3ydnZ60hNdz9s3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Nov 2017 06:03:08 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid 610D0C21E0F; Fri, 17 Nov 2017 19:03:01 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 533F9C21C73;\n\tFri, 17 Nov 2017 19:02:59 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 3E3A5C21C73; Fri, 17 Nov 2017 19:02:58 +0000 (UTC)","from mail-wm0-f49.google.com (mail-wm0-f49.google.com\n\t[74.125.82.49])\n\tby lists.denx.de (Postfix) with ESMTPS id D7DAEC21C45\n\tfor <u-boot@lists.denx.de>; Fri, 17 Nov 2017 19:02:57 +0000 (UTC)","by mail-wm0-f49.google.com with SMTP id z3so8359288wme.3\n\tfor <u-boot@lists.denx.de>; Fri, 17 Nov 2017 11:02:57 -0800 (PST)","from [192.168.42.37] (cst-prg-12-70.cust.vodafone.cz.\n\t[46.135.12.70]) by smtp.gmail.com with ESMTPSA id\n\tr4sm3500047edd.4.2017.11.17.11.02.55\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 17 Nov 2017 11:02:56 -0800 (PST)"],"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_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=3fy0aUVBnTay/EX4suvChFC06TbKN1owkLk88trnH5g=;\n\tb=B4TXHVleJoRBkeWgtzhjb03fGt3zbw7sh334Z9Ps1g1qExaKgHxWV2Jpg70KLSlSF+\n\tNPA2bApppu3MfcCv3Ts66PUUWmt6m6FpwPXkp5BYIpTnNW2qX57iRm7/tZPFWSbB1t9B\n\thXuAjYcMuwkXDCT1c6ibS5t9ZM3cMbwDE8XcMC4MdJOMC7u7QN3HBaK2vLnT45AwEAVR\n\tuBU1j5/8ZFPoftZtXCGPOgV1cO6NRhU2U4v2Gte8at55r7EayTymaMKljH9U/8D9gEZA\n\tFYkAOmlECRn8GjOGWXyOZNOEvEiVjaGxb+Fw3/ERNkX3w4sTwvT2GdD0Ax1eu/AWUppu\n\tJX8Q==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=3fy0aUVBnTay/EX4suvChFC06TbKN1owkLk88trnH5g=;\n\tb=c+Zu+9YS7AMk909ta4zOANziuhc3SDQ1W5498Z4pHVHn+CdlVho2VPFJtQCpiF9JJp\n\trdr6boGU4UzKCy2zzWrUlwQVwqvCGoh3IRY9DlIbVG2KKtpim791wR2AMdVDxjqnVgMm\n\tQYt42BwJI3BWP2/gHkv9W9AznglOQ17s55AQMcP/DcIfZqegHRL6EvFPvPsSIjRx1I8o\n\tJbJT7B7m1zwGbOqD8tXy9qOBDnmJ39nVfwF3tLYvLIhkCruvndgD/KLmz3NRt5tgM9dO\n\tGSg645xfKoEqQrkKQAJuu0QcPHN2/EjHGVUYQj0xoniPkAqr1QOc/N1VmtNXfh1VOggY\n\t5ccQ==","X-Gm-Message-State":"AJaThX5/padFbFPSDcIxgjPGRgwYAQu0nCgbpWZFzmeRiDytVq/MRK7Y\n\tGWS+qrQ82TKHsWoPDhLXrjo=","X-Google-Smtp-Source":"AGs4zMZJMNMBz3W4Oqh1AnNRtwVTSWXwtSW36qQpJ/4rjBMFIY0Vmrg0e7hOuETeBWlUc0eiv0dy7w==","X-Received":"by 10.80.240.200 with SMTP id a8mr8822124edm.288.1510945377430; \n\tFri, 17 Nov 2017 11:02:57 -0800 (PST)","To":"York Sun <york.sun@nxp.com>,\n\t\"u-boot@lists.denx.de\" <u-boot@lists.denx.de>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>\n\t<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>","From":"Marek Vasut <marek.vasut@gmail.com>","Message-ID":"<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>","Date":"Fri, 17 Nov 2017 20:02:55 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.4.0","MIME-Version":"1.0","In-Reply-To":"<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>","Content-Language":"en-US","Cc":"Priyanka Jain <priyanka.jain@nxp.com>, Stefan Roese <sr@denx.de>,\n\tMarek Vasut <marek.vasut+renesas@gmail.com>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>"}},{"id":1806649,"web_url":"http://patchwork.ozlabs.org/comment/1806649/","msgid":"<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>","list_archive_url":null,"date":"2017-11-17T19:04:07","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":1124,"url":"http://patchwork.ozlabs.org/api/people/1124/","name":"Marek Vasut","email":"marek.vasut@gmail.com"},"content":"On 11/17/2017 08:02 PM, Marek Vasut wrote:\n> On 11/17/2017 05:43 PM, York Sun wrote:\n>> On 09/12/2017 10:09 AM, Marek Vasut wrote:\n>>> The status register is optional in the AMD command sets, but it's\n>>> presence can be checked by reading out CFI table entry 0xc bit 0.\n>>> If the register is present, prefer using it's bit 7 to determine\n>>> if the flash is busy over reading the flash ; this is needed ie.\n>>> on Hyperflash memories.\n>>>\n>>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n>>> ---\n>>\n>> Marek,\n>>\n>> Some of our boards failed. I traced to this commit. Reverting this\n>> commit fixes the issue. I happen to have two boards with slightly\n>> different flash chip. One works and the other doesn't.\n> \n> I can't since I don't have the board with such a chip ...\n> Which chip is that ? Mine is Spansion S25KL256 hyperflash.\n\nS26KL256S (26 instead of 25), sorry.\n\n> \n>> The working board has\n>>\n>> => fli\n>>\n>> Bank # 1: CFI conformant flash (16 x 16)  Size: 128 MB in 1024 Sectors\n>>   AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E2801\n>>   Erase timeout: 2048 ms, write timeout: 1 ms\n>>   Buffer write timeout: 3 ms, buffer size: 512 bytes\n>>\n>> The failing board has\n>>\n>> => fli\n>>\n>> Bank # 1: CFI conformant flash (16 x 16)  Size: 128 MB in 1024 Sectors\n>>   AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x227E2801\n>>   Erase timeout: 4096 ms, write timeout: 1 ms\n>>   Buffer write timeout: 3 ms, buffer size: 64 bytes\n>>\n>> Can you investigate?\n>>\n>> York\n>>\n> \n>","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=\"WPQ9pIL7\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3ydnbX4SvFz9rxj\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Nov 2017 06:04:24 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid 586F0C21DDE; Fri, 17 Nov 2017 19:04:14 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 97988C21C73;\n\tFri, 17 Nov 2017 19:04:12 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 3E8E9C21C73; Fri, 17 Nov 2017 19:04:11 +0000 (UTC)","from mail-wr0-f177.google.com (mail-wr0-f177.google.com\n\t[209.85.128.177])\n\tby lists.denx.de (Postfix) with ESMTPS id D5B91C21C45\n\tfor <u-boot@lists.denx.de>; Fri, 17 Nov 2017 19:04:10 +0000 (UTC)","by mail-wr0-f177.google.com with SMTP id l22so2921379wrc.11\n\tfor <u-boot@lists.denx.de>; Fri, 17 Nov 2017 11:04:10 -0800 (PST)","from [192.168.42.37] (cst-prg-12-70.cust.vodafone.cz.\n\t[46.135.12.70]) by smtp.gmail.com with ESMTPSA id\n\t12sm4950178wmn.1.2017.11.17.11.04.09\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 17 Nov 2017 11:04:09 -0800 (PST)"],"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_BLOCKED, 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=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=aZ14tTVPvWZ0FiUzPzOCT3JNWTBE/fhZSiFzKm8czPw=;\n\tb=WPQ9pIL7OGXxpq/DdGHZSxBmipjCRHlAp844bQBwLLlEHsq87HX53PHruTwyUGeOVr\n\t+kjenkfwgVGKcl2gQonuNNv20Ncd30JujDq8xZWPft5A197UhbVmiOFp9IJhJ0V+nDPY\n\twowAG6KB4lMlwEA4O3I4MzTsyfQ47KIpXuEMF0JfqZjUS+oofUVrS/rpuGb8AmIycd6m\n\tfir38a/vfZ1FvYg/7knMAiUjspnWAfxxl7qD0mKb9OMiFBPntLhk8s1uyVlN9ZWesDxy\n\tj/cLs+r0oh4GvcHy6bjI5oauKt+q2YM8+5HJQfslaEY944VfAzpVivRTI0NXKSMAZgZs\n\tU3cQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=aZ14tTVPvWZ0FiUzPzOCT3JNWTBE/fhZSiFzKm8czPw=;\n\tb=WPh9f67ZC3riaBKwwEvcEOoyTEpwbM3THym3f0wyyx/GiSdpoV5/VezyfeTRWdKlNa\n\tmjrXt8jWorraOapHGI0qduOABWZ7a4Sfb3/XwdVUnqsbnpHKqCXGubOpujPq3rjSGon7\n\tz/UalAH9CXVy+qukyONVizPMnzOfUQwg9gWA5rQxCbmMjyGKr+YnEi9YmNe+dVZ14WUM\n\twtOiJvYWR2Tido+QfHa1zlPy5ez0kw7T+eoZ6by5u9Ub2tcIBYdonE7lVLd9CUikf8+M\n\ta7m+FWSROBUKl1Citt8l0jhz2cMZnpO0hD7BdZx9Y/obfXixgCnAwCkzJCQTonUY5iMj\n\tZV0Q==","X-Gm-Message-State":"AJaThX5vZUTtemoEtBhLImKzKs7+1TgnKub+csS6ALn5vChtri0V+0dj\n\tS5EAwXGX/v2YVt+rLNrio4U=","X-Google-Smtp-Source":"AGs4zMbXfaWXzKJEgwmPLZZ74+S0vujUJzcrRgIcxPs0R/xVcTwb3r/g9eDZLQvVo26HYgRWVrwXSg==","X-Received":"by 10.223.196.179 with SMTP id m48mr5523362wrf.67.1510945450328; \n\tFri, 17 Nov 2017 11:04:10 -0800 (PST)","To":"York Sun <york.sun@nxp.com>,\n\t\"u-boot@lists.denx.de\" <u-boot@lists.denx.de>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>\n\t<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>\n\t<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>","From":"Marek Vasut <marek.vasut@gmail.com>","Message-ID":"<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>","Date":"Fri, 17 Nov 2017 20:04:07 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.4.0","MIME-Version":"1.0","In-Reply-To":"<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>","Content-Language":"en-US","Cc":"Priyanka Jain <priyanka.jain@nxp.com>, Stefan Roese <sr@denx.de>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>"}},{"id":1806673,"web_url":"http://patchwork.ozlabs.org/comment/1806673/","msgid":"<7C559172-9E9C-4886-B6CD-B6D7136C2AD5@nxp.com>","list_archive_url":null,"date":"2017-11-17T19:48:43","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":67822,"url":"http://patchwork.ozlabs.org/api/people/67822/","name":"York Sun","email":"york.sun@nxp.com"},"content":"On Nov 17, 2017, at 11:04, Marek Vasut <marek.vasut@gmail.com<mailto:marek.vasut@gmail.com>> wrote:\r\n\r\nOn 11/17/2017 08:02 PM, Marek Vasut wrote:\r\nOn 11/17/2017 05:43 PM, York Sun wrote:\r\nOn 09/12/2017 10:09 AM, Marek Vasut wrote:\r\nThe status register is optional in the AMD command sets, but it's\r\npresence can be checked by reading out CFI table entry 0xc bit 0.\r\nIf the register is present, prefer using it's bit 7 to determine\r\nif the flash is busy over reading the flash ; this is needed ie.\r\non Hyperflash memories.\r\n\r\nSigned-off-by: Marek Vasut <marek.vasut+renesas@gmail.com<mailto:marek.vasut+renesas@gmail.com>>\r\n---\r\n\r\nMarek,\r\n\r\nSome of our boards failed. I traced to this commit. Reverting this\r\ncommit fixes the issue. I happen to have two boards with slightly\r\ndifferent flash chip. One works and the other doesn't.\r\n\r\nI can't since I don't have the board with such a chip ...\r\nWhich chip is that ? Mine is Spansion S25KL256 hyperflash.\r\n\r\nS26KL256S (26 instead of 25), sorry.\r\n\r\nI have to wait for the team to confirm. The board is remote to me.\r\n\r\nYork","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"B0tlCz9l\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3ydpZy25Ykz9rvt\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Nov 2017 06:48:56 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid 9DB39C21DDB; Fri, 17 Nov 2017 19:48:51 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9E2C1C21D76;\n\tFri, 17 Nov 2017 19:48:48 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid B9FB9C21C73; Fri, 17 Nov 2017 19:48:46 +0000 (UTC)","from EUR02-AM5-obe.outbound.protection.outlook.com\n\t(mail-eopbgr00063.outbound.protection.outlook.com [40.107.0.63])\n\tby lists.denx.de (Postfix) with ESMTPS id 5DC14C21C45\n\tfor <u-boot@lists.denx.de>; Fri, 17 Nov 2017 19:48:46 +0000 (UTC)","from VI1PR04MB2078.eurprd04.prod.outlook.com (10.166.43.18) by\n\tDB5PR0401MB1734.eurprd04.prod.outlook.com (10.165.5.136) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.20.239.5; Fri, 17 Nov 2017 19:48:44 +0000","from VI1PR04MB2078.eurprd04.prod.outlook.com\n\t([fe80::94f4:3642:3629:81bb]) by\n\tVI1PR04MB2078.eurprd04.prod.outlook.com\n\t([fe80::94f4:3642:3629:81bb%13]) with mapi id 15.20.0239.007;\n\tFri, 17 Nov 2017 19:48:43 +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_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2, SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=skhnsf6Ivg+bte9bmMofFh3vUFUM3ClGUyEV/JhqTPQ=;\n\tb=B0tlCz9l+LyJcKwz80m+eXu3FqBt3Y+a7cCAojdK5RjQT8eg/DLqoZG2jmD1sEqaVInISkIKL0bUeSeTbQ6GspekHh5oe76T8GH4QKQeZlEcBvGX0xeYnLJygtd/vtcTLHEUd34x8TiLYeJv+/8O2BnPiOh7+Nu/KdBdzUFsknA=","From":"York Sun <york.sun@nxp.com>","To":"Marek Vasut <marek.vasut@gmail.com>","Thread-Topic":"[U-Boot] mtd: cfi: Add support for status register polling","Thread-Index":"AQHTX8NC7MNPU9HO0keWSuadkLPX06MY7dOAgAAAVYCAAAx3Vg==","Date":"Fri, 17 Nov 2017 19:48:43 +0000","Message-ID":"<7C559172-9E9C-4886-B6CD-B6D7136C2AD5@nxp.com>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>\n\t<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>\n\t<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>,\n\t<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>","In-Reply-To":"<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>","Accept-Language":"en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"B0tlCz9l\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"x-originating-ip":"[2600:1:980d:808d:45db:db8e:dcaf:85bf]","x-ms-publictraffictype":"Email","x-microsoft-exchange-diagnostics":"1; DB5PR0401MB1734;\n\t6:teCKM5Wir92bpKVh+ekeWeHtp/wO7MhV+hqQVsuTZblErAiq14EKrnS4yA+Cb0agK3lfmdO48qY/SXrzLlO/y2Q2H+mTHkGp9hD5bZXYd+CN/ojTg6hdvJlKP1nmXLOMQjTvXL4Tv/W+rK9aM7UnqDpC0BzsAAjOUMNYQr3TvpSIrGfSO31JZ9rvdsgj/zzbvnUHn7aUqfDB2zBMtafXTSx9gsQMcxdgKdki2ANf2XUuj0nhhWnHzoUmRNO7e1ha6o8ig81MDsFwn53o6o+DvE6VLv+nUqfoak9A3pEnQnMWafwCEj1wu56xy3U1+W/j5PFCfYcf0CgMkj4YmKCyRUZZgLCz2/xgloLoJYVG4Pw=;\n\t5:2JZkmB8Lnjqf09tgU2c0J/PSNS8HCnm3CNDW9oJ06oZG0Buz7ecl/MevVkSvgfhwm8RHsVfgbwkIqf4PIp/KCiC3Y510jHpj72lMXYtL1cgv8EMHkKzWWAQ5/cGpeOV7IcaowZlet4m7tQ31V2mZtMfi3CqTjGl4M3mWx6oCWvQ=;\n\t24:6DgBY0Py3aUTdMekXsJOP3z4dPDwOVT35w/Byc/vcLOlrMOCMdXPhMsOSNkZdol1kdpOLWz3nxPxA48vgQYAus8/u1Ro/jiywvgHB4XbInU=;\n\t7:cOLO2DmshvkkgezkHLEtqyyIq+RKXZsWzR1Ee8Xr4yHE3X5MbfvOcpkTF/g2oGDmAdSrp1DTFQ3cdE76kUzq4p8/1YUHMWophBbBHHjqr5ZVCrGqv2JGe4f4jC84cHY6gsp+997CjBiJucQn59c1QMZuVrvf/h9UMdR429uQKkP7vsMnbpCqmmGMWuyG5k9JmE7VUkbDYsgMRes/ztUt4u6WJHRfsBWTWzS4bJkhuU6PRCXW4mdhQ+kzcnHDxcLY","x-ms-exchange-antispam-srfa-diagnostics":"SSOS;SSOR;","x-forefront-antispam-report":"SFV:SKI; SCL:-1; SFV:NSPM;\n\tSFS:(10009020)(39860400002)(346002)(376002)(199003)(189002)(24454002)(54356999)(5660300001)(229853002)(50986999)(6916009)(93886005)(2950100002)(478600001)(8936002)(3280700002)(25786009)(68736007)(99286004)(2906002)(39060400002)(14454004)(4326008)(5250100002)(6246003)(83716003)(53936002)(236005)(6512007)(189998001)(102836003)(6116002)(76176999)(86362001)(53546010)(97736004)(7736002)(3660700001)(33656002)(106356001)(316002)(101416001)(105586002)(54906003)(6436002)(82746002)(6486002)(54896002)(6506006)(81166006)(81156014)(36756003)(2900100001)(8676002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR0401MB1734;\n\tH:VI1PR04MB2078.eurprd04.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; A:1; MX:1; LANG:en; ","x-ms-office365-filtering-correlation-id":"1665b3fc-a239-4c14-b127-08d52df435b0","x-ms-office365-filtering-ht":"Tenant","x-microsoft-antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603199);\n\tSRVR:DB5PR0401MB1734; ","x-ms-traffictypediagnostic":"DB5PR0401MB1734:","x-microsoft-antispam-prvs":"<DB5PR0401MB173492650CE057CE86E0EDF99A2F0@DB5PR0401MB1734.eurprd04.prod.outlook.com>","x-exchange-antispam-report-test":"UriScan:;","x-exchange-antispam-report-cfa-test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(3231022)(6055026)(6041248)(20161123558100)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:DB5PR0401MB1734; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:DB5PR0401MB1734; ","x-forefront-prvs":"049486C505","received-spf":"None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)","spamdiagnosticoutput":"1:99","spamdiagnosticmetadata":"NSPM","MIME-Version":"1.0","X-OriginatorOrg":"nxp.com","X-MS-Exchange-CrossTenant-Network-Message-Id":"1665b3fc-a239-4c14-b127-08d52df435b0","X-MS-Exchange-CrossTenant-originalarrivaltime":"17 Nov 2017 19:48:43.7429\n\t(UTC)","X-MS-Exchange-CrossTenant-fromentityheader":"Hosted","X-MS-Exchange-CrossTenant-id":"686ea1d3-bc2b-4c6f-a92c-d99c5c301635","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"DB5PR0401MB1734","X-Content-Filtered-By":"Mailman/MimeDel 2.1.18","Cc":"\"u-boot@lists.denx.de\" <u-boot@lists.denx.de>, Stefan Roese <sr@denx.de>,\n\tPriyanka Jain <priyanka.jain@nxp.com>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>"}},{"id":1806715,"web_url":"http://patchwork.ozlabs.org/comment/1806715/","msgid":"<VI1PR04MB20786C0EF4D48128AAC6D9839A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>","list_archive_url":null,"date":"2017-11-17T20:59:08","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":67822,"url":"http://patchwork.ozlabs.org/api/people/67822/","name":"York Sun","email":"york.sun@nxp.com"},"content":"On 11/17/2017 11:04 AM, Marek Vasut wrote:\n> On 11/17/2017 08:02 PM, Marek Vasut wrote:\n>> On 11/17/2017 05:43 PM, York Sun wrote:\n>>> On 09/12/2017 10:09 AM, Marek Vasut wrote:\n>>>> The status register is optional in the AMD command sets, but it's\n>>>> presence can be checked by reading out CFI table entry 0xc bit 0.\n>>>> If the register is present, prefer using it's bit 7 to determine\n>>>> if the flash is busy over reading the flash ; this is needed ie.\n>>>> on Hyperflash memories.\n>>>>\n>>>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n>>>> ---\n>>>\n>>> Marek,\n>>>\n>>> Some of our boards failed. I traced to this commit. Reverting this\n>>> commit fixes the issue. I happen to have two boards with slightly\n>>> different flash chip. One works and the other doesn't.\n>>\n>> I can't since I don't have the board with such a chip ...\n>> Which chip is that ? Mine is Spansion S25KL256 hyperflash.\n> \n> S26KL256S (26 instead of 25), sorry.\n> \n\nMy local board has chip S29GL01GS11TFIV1. The remote board has identical\nmanufacture ID and device ID. I guess they are the same part (maybe\ndifferent speed grade though). I haven't heard from the team who can\nvisually check the part number for me.\n\nYork","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"tpWxGxLa\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3ydr8C19M3z9s3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Nov 2017 07:59:23 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid 49BA6C21DBB; Fri, 17 Nov 2017 20:59:16 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id C44E3C21D76;\n\tFri, 17 Nov 2017 20:59:13 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 9BF47C21D76; Fri, 17 Nov 2017 20:59:11 +0000 (UTC)","from EUR01-DB5-obe.outbound.protection.outlook.com\n\t(mail-db5eur01on0049.outbound.protection.outlook.com [104.47.2.49])\n\tby lists.denx.de (Postfix) with ESMTPS id 2DC56C21C45\n\tfor <u-boot@lists.denx.de>; Fri, 17 Nov 2017 20:59:11 +0000 (UTC)","from VI1PR04MB2078.eurprd04.prod.outlook.com (10.166.43.18) by\n\tVI1PR04MB1248.eurprd04.prod.outlook.com (10.162.121.157) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n\t15.20.218.12; Fri, 17 Nov 2017 20:59:09 +0000","from VI1PR04MB2078.eurprd04.prod.outlook.com\n\t([fe80::94f4:3642:3629:81bb]) by\n\tVI1PR04MB2078.eurprd04.prod.outlook.com\n\t([fe80::94f4:3642:3629:81bb%13]) with mapi id 15.20.0239.007;\n\tFri, 17 Nov 2017 20:59:08 +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_H3,\n\tRCVD_IN_MSPIKE_WL, SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=iY/HQxyObOUHcdtrpujIxDCkLIYNWv+MPoT8pMhNLg4=;\n\tb=tpWxGxLaQA/uexFJ9qmfeVqT2yP1YBCaDxcVu2zqw4QXhFQyYL2DTCKLfB4iqpsvFWQfvhspU1g5Q6nkgz+Drldg941R86GcRPaVjXOGzIbzUZZL2qKSrTYvNfcc+R0micnM47bUIpdVuJpa+tP5Zsb1E9QNOH+nuOhmw415X4Q=","From":"York Sun <york.sun@nxp.com>","To":"Marek Vasut <marek.vasut@gmail.com>, \"u-boot@lists.denx.de\"\n\t<u-boot@lists.denx.de>","Thread-Topic":"[U-Boot] mtd: cfi: Add support for status register polling","Thread-Index":"AQHTX8NC7MNPU9HO0keWSuadkLPX0w==","Date":"Fri, 17 Nov 2017 20:59:08 +0000","Message-ID":"<VI1PR04MB20786C0EF4D48128AAC6D9839A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>\n\t<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>\n\t<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>\n\t<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>","Accept-Language":"en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"tpWxGxLa\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"x-originating-ip":"[66.235.19.164]","x-ms-publictraffictype":"Email","x-microsoft-exchange-diagnostics":"1; VI1PR04MB1248;\n\t6:KfbAS8dP52UpmoPNUyhzUI9Fi2NanwAH1+rDgXFpruX9xcCHO2nIwp2QO1dGy9QQsn4jIISOJz2sq4zOnINLpKLVnYS/uUKiqA1GRdqyrkmrUzClZPE4R8v3SuItLGBa07gRwpY+cC2Dn5GcI4/5/djtzwxkNqg9q0yw8M/mHTv2quNoRTt5ydDNebgQO+JJwpe+e7pnxrPJtV+dHvl/JqkKCbI5t8CCSP+5xDatc6FfDnlLYsPbfkg1LY906DQ1MMK7KUW/B0P1FapjKDnxQEwAY/FtEPooAoW3ntTCIvD2wDg0dav6MwUAy6507MZk1NiUqeNQMa3yvLUNzaPa3z5OdRSsQyAgBWgvlk52bnk=;\n\t5:GYCleCCTUAfw09cFhR0NlXBFulxnZNtf9g3JP61ifLHXj9MhsdPcpk3fJ+T7dbxEZZHHX1sRjdpmfuU7MjOiXSE+3FhoneOWPjLXHEBRqHu0tO9T1vFUshVNzzXuu8rmfk7+d2BxzcXDFQ8kwv0OI7hCdI3tbZB88XF8Swb/Omg=;\n\t24:PHcKPtTjYd5XVfiazFKnJL4N7oGk6VtUWq+Ogmf6AL3AYmFrR2p3mpbQYJzb8ITKJjd1d/revSgNsGWqXMfQn/cCJYfgneqEtvCkG4ob7yc=;\n\t7:wSGY2c8gjEmUralswBlKRSk0YzoxB243/c2dKZSUjxC49hmPQm8SYb2lGLCT44bznFJfq7cIAdnNqLJMaDs1tS9t01klKMT/UMCRym/gcDkMGFC9BTy75QgJxa6EYKq+WXZ47xaNRFahsEiw2ziCj6qQctAYKht4+iPFGB90wCmCW7iTAMr1NbZbpKITKHre51mhEeV/RKheuqzQCThwmvNyHXRr5e3Nys6dUSMb/vWogup1AGfATXGV1V13FQq8","x-ms-exchange-antispam-srfa-diagnostics":"SSOS;SSOR;","x-forefront-antispam-report":"SFV:SKI; SCL:-1; SFV:NSPM;\n\tSFS:(10009020)(6009001)(346002)(39860400002)(376002)(189002)(199003)(24454002)(39060400002)(25786009)(305945005)(4326008)(93886005)(99286004)(101416001)(53546010)(68736007)(5660300001)(105586002)(43066004)(81156014)(229853002)(6246003)(53936002)(7736002)(81166006)(74316002)(14454004)(478600001)(8676002)(106356001)(7696004)(33656002)(102836003)(66066001)(9686003)(54906003)(97736004)(8936002)(5250100002)(6506006)(6116002)(3280700002)(3846002)(2900100001)(2906002)(55016002)(316002)(3660700001)(2501003)(50986999)(6436002)(76176999)(3450700001)(86362001)(189998001)(110136005)(54356999);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1248;\n\tH:VI1PR04MB2078.eurprd04.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; MX:1; A:1; LANG:en; ","x-ms-office365-filtering-correlation-id":"60eb8d7a-7b60-40ec-7719-08d52dfe0bc3","x-ms-office365-filtering-ht":"Tenant","x-microsoft-antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(22001)(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258);\n\tSRVR:VI1PR04MB1248; ","x-ms-traffictypediagnostic":"VI1PR04MB1248:","x-microsoft-antispam-prvs":"<VI1PR04MB12486A6A431114516A3763589A2F0@VI1PR04MB1248.eurprd04.prod.outlook.com>","x-exchange-antispam-report-test":"UriScan:;","x-exchange-antispam-report-cfa-test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231022)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6041248)(20161123558100)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:VI1PR04MB1248; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:VI1PR04MB1248; ","x-forefront-prvs":"049486C505","received-spf":"None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)","spamdiagnosticoutput":"1:99","spamdiagnosticmetadata":"NSPM","MIME-Version":"1.0","X-OriginatorOrg":"nxp.com","X-MS-Exchange-CrossTenant-Network-Message-Id":"60eb8d7a-7b60-40ec-7719-08d52dfe0bc3","X-MS-Exchange-CrossTenant-originalarrivaltime":"17 Nov 2017 20:59:08.3845\n\t(UTC)","X-MS-Exchange-CrossTenant-fromentityheader":"Hosted","X-MS-Exchange-CrossTenant-id":"686ea1d3-bc2b-4c6f-a92c-d99c5c301635","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"VI1PR04MB1248","Cc":"Priyanka\n Jain <priyanka.jain@nxp.com>, Stefan Roese <sr@denx.de>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>","Reply-To":"York Sun <york.sun@nxp.com>","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>"}},{"id":1806732,"web_url":"http://patchwork.ozlabs.org/comment/1806732/","msgid":"<VI1PR04MB20787A49E43F79B1EA1268109A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>","list_archive_url":null,"date":"2017-11-17T21:48:40","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":67822,"url":"http://patchwork.ozlabs.org/api/people/67822/","name":"York Sun","email":"york.sun@nxp.com"},"content":"On 11/17/2017 12:59 PM, York Sun wrote:\n> On 11/17/2017 11:04 AM, Marek Vasut wrote:\n>> On 11/17/2017 08:02 PM, Marek Vasut wrote:\n>>> On 11/17/2017 05:43 PM, York Sun wrote:\n>>>> On 09/12/2017 10:09 AM, Marek Vasut wrote:\n>>>>> The status register is optional in the AMD command sets, but it's\n>>>>> presence can be checked by reading out CFI table entry 0xc bit 0.\n>>>>> If the register is present, prefer using it's bit 7 to determine\n>>>>> if the flash is busy over reading the flash ; this is needed ie.\n>>>>> on Hyperflash memories.\n>>>>>\n>>>>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n>>>>> ---\n>>>>\n>>>> Marek,\n>>>>\n>>>> Some of our boards failed. I traced to this commit. Reverting this\n>>>> commit fixes the issue. I happen to have two boards with slightly\n>>>> different flash chip. One works and the other doesn't.\n>>>\n>>> I can't since I don't have the board with such a chip ...\n>>> Which chip is that ? Mine is Spansion S25KL256 hyperflash.\n>>\n>> S26KL256S (26 instead of 25), sorry.\n>>\n> \n> My local board has chip S29GL01GS11TFIV1. The remote board has identical\n> manufacture ID and device ID. I guess they are the same part (maybe\n> different speed grade though). I haven't heard from the team who can\n> visually check the part number for me.\n> \n\nMarek,\n\nI got an email from our hardware team. At some point, our vendor had two\nparts with the same device ID. The other one is S29GL01GP13TFIV1.\nAccording to Cypress migration document, the old part doesn't support\nstatus register feature. I understand you already check lower software\nbits. But I am afraid this register is not valid for old parts which\ndon't support this feature. I checked the datasheet of S29GL01GP. It has\nno description of offset 0xC. Reading from the hardware, I got 0xFF. If\nthere is no \"valid\" bit to indicate we can use lower software bit\nregsiter, it is useless.\n\nComparing the logs\n\nFailing board\n\nFlash: York debug: manuId = 0x1\nYork debug: lsbits = 0xff\nYork debug: read offset 0xE as 0x28\nYork debug: read offset 0xF as 0x1\n128 MiB\n\n\nWorking board\n\nFlash: York debug: manuId = 0x1\nYork debug: lsbits = 0x3\nYork debug: read offset 0xE as 0x28\nYork debug: read offset 0xF as 0x1\n128 MiB\n\nIf there is no other way to know the \"lower software bits\" register is\nvalid, then we have to abandon this feature.\n\nYork","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"LROxWdPh\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3ydsFP4p0Tz9s3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Nov 2017 08:48:56 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid F1CDCC21E01; Fri, 17 Nov 2017 21:48:50 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 203F3C21D76;\n\tFri, 17 Nov 2017 21:48:47 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid ED50FC21D76; Fri, 17 Nov 2017 21:48:44 +0000 (UTC)","from EUR01-DB5-obe.outbound.protection.outlook.com\n\t(mail-db5eur01on0082.outbound.protection.outlook.com [104.47.2.82])\n\tby lists.denx.de (Postfix) with ESMTPS id 789BAC21C45\n\tfor <u-boot@lists.denx.de>; Fri, 17 Nov 2017 21:48:44 +0000 (UTC)","from VI1PR04MB2078.eurprd04.prod.outlook.com (10.166.43.18) by\n\tVI1PR04MB1245.eurprd04.prod.outlook.com (10.162.121.154) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.20.239.5; Fri, 17 Nov 2017 21:48:41 +0000","from VI1PR04MB2078.eurprd04.prod.outlook.com\n\t([fe80::94f4:3642:3629:81bb]) by\n\tVI1PR04MB2078.eurprd04.prod.outlook.com\n\t([fe80::94f4:3642:3629:81bb%13]) with mapi id 15.20.0239.007;\n\tFri, 17 Nov 2017 21:48:40 +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_H4,\n\tRCVD_IN_MSPIKE_WL, SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=rcmS8jguaDrUbsXkdCsQgaWVNzJwM37glm6sv6s2X8w=;\n\tb=LROxWdPhLrLnbKk3Vi2pz8OZnpwopJPh/RlWagFdNfmm+JlPrW9fse4ddx3ifIBnGYgnZNzqXudf4X1v+M3RhNQMi2d2pPyvKRXVqsmH7hfPQ5tNDqYCX5H9XlOD1n9Gud8ldhO5KzfvpVaUBHFxJOlpvURVvh7GWZ8I3SeQkRo=","From":"York Sun <york.sun@nxp.com>","To":"Marek Vasut <marek.vasut@gmail.com>, \"u-boot@lists.denx.de\"\n\t<u-boot@lists.denx.de>","Thread-Topic":"[U-Boot] mtd: cfi: Add support for status register polling","Thread-Index":"AQHTX8NC7MNPU9HO0keWSuadkLPX0w==","Date":"Fri, 17 Nov 2017 21:48:40 +0000","Message-ID":"<VI1PR04MB20787A49E43F79B1EA1268109A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>\n\t<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>\n\t<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>\n\t<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>\n\t<VI1PR04MB20786C0EF4D48128AAC6D9839A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>","Accept-Language":"en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"LROxWdPh\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"x-originating-ip":"[192.88.168.1]","x-ms-publictraffictype":"Email","x-microsoft-exchange-diagnostics":"1; VI1PR04MB1245;\n\t6:otm1sxjTvZRXx1cH7jjbzNAabbCK0hLl/2jR4BIxHlnGE2S+q8tbgObh2dCXkT/Am4hhJhG8lPmMypI46jpM0FmfVbwUGRJmlrFArJen+Hn7TIw+wQdkkQY4deck3YE5jiTiSuUZvD7BdknDu9rFC/n+a/LKJHQ5GKS8n85gavs2LeSfwPcRi/lXqMA8UoqaJr1VjyR9NeYwQ3vpsJbI4zlgb21tB4Rmj5lajS8L7g20memA41+GRfbCRkXuc9PoGrUpDCBJOG92sH9FdT3rnTTZv613PcchnwBkIfsAFiCHne+KprWd239M98Q3Ipj8TySx7JLYk7ibLTvl+XHcdK1NxsGeLbDwuHAgPqfvzxA=;\n\t5:+oe/HVyOwe1sYwmJSm2wPPjg7pMIHGhZzEX9Clm8K8tpaEvuwQaSeNOPjYQj6v/ONMnLeiSj5BDbtNuleqay/+rAibrtMC+fmgDD0joSTBr0XULioawcP7POlgQA24uhKoJ2Xu8MhGRAaHnj2+C2SHy7Frmdka/PgF2uu74RXAI=;\n\t24:G3l94kevEDvIRQQCEciIMD5r3AscSxGKb11f/B3B9VgewFsz1fZWIQSM5HcodmJ+uSktey05LT2dPafxzNhid+6fky2SUROsqpsFtGmTe6E=;\n\t7:7AaXPaD+vyMsTTrjfB33Bhudp4Zq4QZoMzBwq5ExMGmibvENUlwJCl+6N5YCo8K+NZeG+UhyXwtVcGesLhzVIkSzPBVxq8It53wqmEFm9pt2jt4WgHDX64kMGHicjx1/Q6QFX5aflZyr3X8/8Bbe7wE/YYeYKrmZNWaDKZZg+YWqkjcPOT6lJi9EZ0dTfh/jrmdpB/j4e7KdnuogAC1C891G+qmZ7GDZkXWKjmE5h4S6e90NPJJ8YjWyBZuh50T6","x-ms-exchange-antispam-srfa-diagnostics":"SSOS;SSOR;","x-forefront-antispam-report":"SFV:SKI; SCL:-1; SFV:NSPM;\n\tSFS:(10009020)(6009001)(39860400002)(376002)(346002)(24454002)(189002)(199003)(3280700002)(43066004)(14454004)(25786009)(99286004)(2906002)(7696004)(74316002)(66066001)(8676002)(305945005)(7736002)(5250100002)(54356999)(93886005)(6116002)(3846002)(6436002)(102836003)(6506006)(478600001)(5660300001)(50986999)(101416001)(76176999)(4326008)(55016002)(105586002)(53546010)(106356001)(33656002)(229853002)(6246003)(2501003)(189998001)(68736007)(39060400002)(316002)(9686003)(97736004)(110136005)(8936002)(54906003)(3660700001)(86362001)(81166006)(2900100001)(53936002)(3450700001)(81156014);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1245;\n\tH:VI1PR04MB2078.eurprd04.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; MX:1; A:1; LANG:en; ","x-ms-office365-filtering-correlation-id":"4d3ba0e3-c668-4e41-c1f8-08d52e04f716","x-ms-office365-filtering-ht":"Tenant","x-microsoft-antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603199);\n\tSRVR:VI1PR04MB1245; ","x-ms-traffictypediagnostic":"VI1PR04MB1245:","x-microsoft-antispam-prvs":"<VI1PR04MB12454315C045FED08002BE499A2F0@VI1PR04MB1245.eurprd04.prod.outlook.com>","x-exchange-antispam-report-test":"UriScan:;","x-exchange-antispam-report-cfa-test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(3231022)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:VI1PR04MB1245; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:VI1PR04MB1245; ","x-forefront-prvs":"049486C505","received-spf":"None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)","spamdiagnosticoutput":"1:99","spamdiagnosticmetadata":"NSPM","MIME-Version":"1.0","X-OriginatorOrg":"nxp.com","X-MS-Exchange-CrossTenant-Network-Message-Id":"4d3ba0e3-c668-4e41-c1f8-08d52e04f716","X-MS-Exchange-CrossTenant-originalarrivaltime":"17 Nov 2017 21:48:40.1753\n\t(UTC)","X-MS-Exchange-CrossTenant-fromentityheader":"Hosted","X-MS-Exchange-CrossTenant-id":"686ea1d3-bc2b-4c6f-a92c-d99c5c301635","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"VI1PR04MB1245","Cc":"Priyanka Jain <priyanka.jain@nxp.com>, Stefan Roese <sr@denx.de>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>","Reply-To":"York Sun <york.sun@nxp.com>","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>"}},{"id":1806825,"web_url":"http://patchwork.ozlabs.org/comment/1806825/","msgid":"<0aae01d7-0808-d7d2-e2ae-96b6c7c662d5@gmail.com>","list_archive_url":null,"date":"2017-11-18T10:23:14","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":1124,"url":"http://patchwork.ozlabs.org/api/people/1124/","name":"Marek Vasut","email":"marek.vasut@gmail.com"},"content":"On 11/17/2017 10:48 PM, York Sun wrote:\n> On 11/17/2017 12:59 PM, York Sun wrote:\n>> On 11/17/2017 11:04 AM, Marek Vasut wrote:\n>>> On 11/17/2017 08:02 PM, Marek Vasut wrote:\n>>>> On 11/17/2017 05:43 PM, York Sun wrote:\n>>>>> On 09/12/2017 10:09 AM, Marek Vasut wrote:\n>>>>>> The status register is optional in the AMD command sets, but it's\n>>>>>> presence can be checked by reading out CFI table entry 0xc bit 0.\n>>>>>> If the register is present, prefer using it's bit 7 to determine\n>>>>>> if the flash is busy over reading the flash ; this is needed ie.\n>>>>>> on Hyperflash memories.\n>>>>>>\n>>>>>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n>>>>>> ---\n>>>>>\n>>>>> Marek,\n>>>>>\n>>>>> Some of our boards failed. I traced to this commit. Reverting this\n>>>>> commit fixes the issue. I happen to have two boards with slightly\n>>>>> different flash chip. One works and the other doesn't.\n>>>>\n>>>> I can't since I don't have the board with such a chip ...\n>>>> Which chip is that ? Mine is Spansion S25KL256 hyperflash.\n>>>\n>>> S26KL256S (26 instead of 25), sorry.\n>>>\n>>\n>> My local board has chip S29GL01GS11TFIV1. The remote board has identical\n>> manufacture ID and device ID. I guess they are the same part (maybe\n>> different speed grade though). I haven't heard from the team who can\n>> visually check the part number for me.\n>>\n> \n> Marek,\n> \n> I got an email from our hardware team. At some point, our vendor had two\n> parts with the same device ID. The other one is S29GL01GP13TFIV1.\n> According to Cypress migration document, the old part doesn't support\n> status register feature. I understand you already check lower software\n> bits.\n\nWhich lower software bits ?\n\n> But I am afraid this register is not valid for old parts which\n> don't support this feature. I checked the datasheet of S29GL01GP. It has\n> no description of offset 0xC. Reading from the hardware, I got 0xFF. If\n> there is no \"valid\" bit to indicate we can use lower software bit\n> regsiter, it is useless.\n\nI am happy to dump you whatever you need from the hyperflash (which is\nin fact a CFI NOR flash with different interface), if that helps us\nidentify how to improve the condition to discern flashes which do and do\nnot support this polling feature.\n\nSince CFI is a standard, there must be a way to do it.\n\n> Comparing the logs\n> \n> Failing board\n> \n> Flash: York debug: manuId = 0x1\n> York debug: lsbits = 0xff\n> York debug: read offset 0xE as 0x28\n> York debug: read offset 0xF as 0x1\n> 128 MiB\n> \n> \n> Working board\n> \n> Flash: York debug: manuId = 0x1\n> York debug: lsbits = 0x3\n> York debug: read offset 0xE as 0x28\n> York debug: read offset 0xF as 0x1\n> 128 MiB\n> \n> If there is no other way to know the \"lower software bits\" register is\n> valid, then we have to abandon this feature.\n\nWe cannot because then that breaks hyperflash support, so we need to\nfigure out how to improve the condition to discern the flashes.\n\n> York\n>","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=\"J8Fe4q5+\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3yfB396Plvz9ryk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 18 Nov 2017 21:26:13 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid 8E523C21DE6; Sat, 18 Nov 2017 10:25:25 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id DB3FCC21DCA;\n\tSat, 18 Nov 2017 10:25:01 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 0C5F0C21DC6; Sat, 18 Nov 2017 10:24:40 +0000 (UTC)","from mail-wm0-f48.google.com (mail-wm0-f48.google.com\n\t[74.125.82.48])\n\tby lists.denx.de (Postfix) with ESMTPS id 46151C21DC5\n\tfor <u-boot@lists.denx.de>; Sat, 18 Nov 2017 10:24:39 +0000 (UTC)","by mail-wm0-f48.google.com with SMTP id y80so10577424wmd.0\n\tfor <u-boot@lists.denx.de>; Sat, 18 Nov 2017 02:24:39 -0800 (PST)","from [192.168.1.4] (ip-86-49-107-50.net.upcbroadband.cz.\n\t[86.49.107.50]) by smtp.gmail.com with ESMTPSA id\n\t30sm4034770edz.42.2017.11.18.02.24.37\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 18 Nov 2017 02:24:38 -0800 (PST)"],"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_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\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=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=GEzV/yqf8jonkurdzrX+uFZFAZcci8bJtVJJTv3W3H4=;\n\tb=J8Fe4q5+tj/CCnFzPC+CXbiLIPMwyLVtyCTFbfwbojb5V0SK3uH9s65k7+zuuRagd5\n\tRiHc8EmZz1RlLmMPzmKAsbKimzdIxEAyR5cKtdQ+GbrjzTHA80+gbWeXar/etTis2K11\n\t3pwZZilFNpTtvV9U3iBnWcgpBdefhhMuoAm2vTvmD8Wppi41KGDlqJo+OWLh/cgGQtSJ\n\thPuqMWFFBTnBihhjCUCkdJ/BmnE8hhVGRWPQ2JfO8UPLwq6+1C7pXCqJJ/O8lcc7okyw\n\tLW32zNGtluvZ4poLgkLEGUTM6rC+mMRTpLKXVU5wmiQaSwAbC/r9Jp+rfGQpgkKJFEiz\n\ta/1Q==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=GEzV/yqf8jonkurdzrX+uFZFAZcci8bJtVJJTv3W3H4=;\n\tb=MMYnNfikwddJ+7+sbyOjD6UsrR3l435FbeVPZHAEavrqXdobLfCY6C/keU2dVS8mjB\n\tQXH8Y4VQPU9OLJORV6HmInm2ubS6hsO7DmoOCEG7JcvvMw5DRwbzlsZR/If5J/62XxYV\n\toObEjeH6gXqXLkZtRk+VZcj7vs8U7lYJvuP6ffeGaPXMTeOJhPNrY297hdZZsoUx+4pW\n\t1Cd+JUekFRr3DtvywjRcDHdilkW2vPXpceWA/Em7L1xKoadMuddmi0NCSGZRtKIwVw/Z\n\trL14JzggQ6YEJELlfyoBWftvWhPdn7YfZZweHWxNIwGS6SOwY+sIG0u3HqDega6b6ix2\n\tscQw==","X-Gm-Message-State":"AJaThX56FYZuofZMKr4jutjrfwBzktis72SnV/936/BioiLPjgZPi3rz\n\t5bQe/yS3B1cvGpw5U2PlHT0=","X-Google-Smtp-Source":"AGs4zMZBxhdL8Fxt1InJqR6fA1yP6lnuPZyFVqtEGyzQZkYEmk8qbBns1eAusJXo0n+a2jsx5KGqRg==","X-Received":"by 10.80.205.143 with SMTP id p15mr11422306edi.255.1511000678836;\n\tSat, 18 Nov 2017 02:24:38 -0800 (PST)","To":"York Sun <york.sun@nxp.com>,\n\t\"u-boot@lists.denx.de\" <u-boot@lists.denx.de>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>\n\t<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>\n\t<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>\n\t<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>\n\t<VI1PR04MB20786C0EF4D48128AAC6D9839A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>\n\t<VI1PR04MB20787A49E43F79B1EA1268109A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>","From":"Marek Vasut <marek.vasut@gmail.com>","Message-ID":"<0aae01d7-0808-d7d2-e2ae-96b6c7c662d5@gmail.com>","Date":"Sat, 18 Nov 2017 11:23:14 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.4.0","MIME-Version":"1.0","In-Reply-To":"<VI1PR04MB20787A49E43F79B1EA1268109A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>","Content-Language":"en-US","Cc":"Priyanka Jain <priyanka.jain@nxp.com>, Stefan Roese <sr@denx.de>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>"}},{"id":1806885,"web_url":"http://patchwork.ozlabs.org/comment/1806885/","msgid":"<HE1PR04MB20734CB16710BE6DD6583B2F9A2C0@HE1PR04MB2073.eurprd04.prod.outlook.com>","list_archive_url":null,"date":"2017-11-18T19:11:28","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":67822,"url":"http://patchwork.ozlabs.org/api/people/67822/","name":"York Sun","email":"york.sun@nxp.com"},"content":"On 11/18/2017 02:24 AM, Marek Vasut wrote:\n> On 11/17/2017 10:48 PM, York Sun wrote:\n>> On 11/17/2017 12:59 PM, York Sun wrote:\n>>> On 11/17/2017 11:04 AM, Marek Vasut wrote:\n>>>> On 11/17/2017 08:02 PM, Marek Vasut wrote:\n>>>>> On 11/17/2017 05:43 PM, York Sun wrote:\n>>>>>> On 09/12/2017 10:09 AM, Marek Vasut wrote:\n>>>>>>> The status register is optional in the AMD command sets, but it's\n>>>>>>> presence can be checked by reading out CFI table entry 0xc bit 0.\n>>>>>>> If the register is present, prefer using it's bit 7 to determine\n>>>>>>> if the flash is busy over reading the flash ; this is needed ie.\n>>>>>>> on Hyperflash memories.\n>>>>>>>\n>>>>>>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n>>>>>>> ---\n>>>>>>\n>>>>>> Marek,\n>>>>>>\n>>>>>> Some of our boards failed. I traced to this commit. Reverting this\n>>>>>> commit fixes the issue. I happen to have two boards with slightly\n>>>>>> different flash chip. One works and the other doesn't.\n>>>>>\n>>>>> I can't since I don't have the board with such a chip ...\n>>>>> Which chip is that ? Mine is Spansion S25KL256 hyperflash.\n>>>>\n>>>> S26KL256S (26 instead of 25), sorry.\n>>>>\n>>>\n>>> My local board has chip S29GL01GS11TFIV1. The remote board has identical\n>>> manufacture ID and device ID. I guess they are the same part (maybe\n>>> different speed grade though). I haven't heard from the team who can\n>>> visually check the part number for me.\n>>>\n>>\n>> Marek,\n>>\n>> I got an email from our hardware team. At some point, our vendor had two\n>> parts with the same device ID. The other one is S29GL01GP13TFIV1.\n>> According to Cypress migration document, the old part doesn't support\n>> status register feature. I understand you already check lower software\n>> bits.\n> \n> Which lower software bits ?\n\nRegister at offset 0xC. This register is not part of CFI. But there is\nCFI extention, explained below.\n\n> \n>> But I am afraid this register is not valid for old parts which\n>> don't support this feature. I checked the datasheet of S29GL01GP. It has\n>> no description of offset 0xC. Reading from the hardware, I got 0xFF. If\n>> there is no \"valid\" bit to indicate we can use lower software bit\n>> regsiter, it is useless.\n> \n> I am happy to dump you whatever you need from the hyperflash (which is\n> in fact a CFI NOR flash with different interface), if that helps us\n> identify how to improve the condition to discern flashes which do and do\n> not support this polling feature.\n> \n> Since CFI is a standard, there must be a way to do it.\n\nIn vendor specific extended query, it has a register at address 53h in\nthis document http://www.cypress.com/file/213771/download.\n\n> \n>> Comparing the logs\n>>\n>> Failing board\n>>\n>> Flash: York debug: manuId = 0x1\n>> York debug: lsbits = 0xff\n>> York debug: read offset 0xE as 0x28\n>> York debug: read offset 0xF as 0x1\n>> 128 MiB\n>>\n>>\n>> Working board\n>>\n>> Flash: York debug: manuId = 0x1\n>> York debug: lsbits = 0x3\n>> York debug: read offset 0xE as 0x28\n>> York debug: read offset 0xF as 0x1\n>> 128 MiB\n>>\n>> If there is no other way to know the \"lower software bits\" register is\n>> valid, then we have to abandon this feature.\n> \n> We cannot because then that breaks hyperflash support, so we need to\n> figure out how to improve the condition to discern the flashes.\n> \n\nI sent you a patch. Please review.\n\nYork","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"sMsGmZ/z\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3yfPjX1WtPz9s0Z\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 19 Nov 2017 06:11:44 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid C6A35C21DDA; Sat, 18 Nov 2017 19:11:36 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 6C091C21D8C;\n\tSat, 18 Nov 2017 19:11:34 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 97EC2C21D8C; Sat, 18 Nov 2017 19:11:33 +0000 (UTC)","from EUR01-DB5-obe.outbound.protection.outlook.com\n\t(mail-db5eur01on0083.outbound.protection.outlook.com [104.47.2.83])\n\tby lists.denx.de (Postfix) with ESMTPS id BEAC0C21C45\n\tfor <u-boot@lists.denx.de>; Sat, 18 Nov 2017 19:11:32 +0000 (UTC)","from HE1PR04MB2073.eurprd04.prod.outlook.com (10.166.67.143) by\n\tHE1PR04MB1242.eurprd04.prod.outlook.com (10.162.249.155) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.20.239.5; Sat, 18 Nov 2017 19:11:29 +0000","from HE1PR04MB2073.eurprd04.prod.outlook.com\n\t([fe80::78b0:eb9a:2e38:dca0]) by\n\tHE1PR04MB2073.eurprd04.prod.outlook.com\n\t([fe80::78b0:eb9a:2e38:dca0%13]) with mapi id 15.20.0239.008;\n\tSat, 18 Nov 2017 19:11:28 +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_DNSWL_BLOCKED,\n\tRCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=JVznL7rt3B0tSfeW+Vvb5AhLab7/KdBMpQoxleahorQ=;\n\tb=sMsGmZ/z6KW/ASXG2qWeVykaZyzGINLY00clPi/dgo2I43C8cYohDRig9oVsvvDFHku+SNmWyRzRDEAMtUv/RH0KWyu+PYLyXn2HBMd91Na9/ytCqRyxRa/jj46QLJcYC4FCBD9wViI9eBHvwVFi+lfA/9Jc5IIBf8urvc3GUcU=","From":"York Sun <york.sun@nxp.com>","To":"Marek Vasut <marek.vasut@gmail.com>, \"u-boot@lists.denx.de\"\n\t<u-boot@lists.denx.de>","Thread-Topic":"[U-Boot] mtd: cfi: Add support for status register polling","Thread-Index":"AQHTX8NC7MNPU9HO0keWSuadkLPX0w==","Date":"Sat, 18 Nov 2017 19:11:28 +0000","Message-ID":"<HE1PR04MB20734CB16710BE6DD6583B2F9A2C0@HE1PR04MB2073.eurprd04.prod.outlook.com>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>\n\t<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>\n\t<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>\n\t<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>\n\t<VI1PR04MB20786C0EF4D48128AAC6D9839A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>\n\t<VI1PR04MB20787A49E43F79B1EA1268109A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>\n\t<0aae01d7-0808-d7d2-e2ae-96b6c7c662d5@gmail.com>","Accept-Language":"en-US","Content-Language":"en-US","X-MS-Has-Attach":"","X-MS-TNEF-Correlator":"","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\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"sMsGmZ/z\";\n\tdkim-atps=neutral","spf=none (sender IP is )\n\tsmtp.mailfrom=york.sun@nxp.com; "],"x-originating-ip":"[192.88.168.1]","x-ms-publictraffictype":"Email","x-microsoft-exchange-diagnostics":"1; HE1PR04MB1242;\n\t6:yPV2ec4MxnjER6x2qqFsJBYQqT5uMsPYSTyAw4mHZnDVg0ZbjBXpaI/XBnT6BUbQCoNqpKnal72IAA2sZhtgsQ5B4MakEkSjDkrwHTP/uCXA6zsIcvxqJkhmXQI4Kl07ofV0c5ZOnJCwfdfe712d9w7ahMQlJA7pzIMM663fLE3gUL0ohAuy0hofi72JA6EWWJiGyS3xA5kwA4XzbBrW6MGJ/2Kabu23qZMAlOuby2Yb6iGAAi+Nnk3iL4ESuqb1k0oebZQGz9i22N04Otw6a4ipTffZEpHz2tA614gkdA20YAxgYeGZsUydiHikucz3Hask/oJl6o5kLqtXOCdyKmocUhIyxxXqD5NIZeDZjCo=;\n\t5:tWDRYWjrB9somC+6SqFBB1plnwle2YZugZRq4SkARXOu16QMwlOvw133G8eHD11GY/zfS5Q9eqZHR4HhJNFjerQl2IaanMcwDbo6AZZPIkrjp2DsDZ6uuIx/PWIk3Grro22z3fnsQpggfF6D3cCl57ItAS6ZlqAOKRrrFEFoiZc=;\n\t24:9iNnv0DdcPXpmxLEv8T7VxqNQnJgwsfo0aWkRGc/UksiAlJyDEx1RmFg7yJaUNTW5RsCEHnSFgkIiAFdELa8n2UswFdpj4xFCiiR8eb8kbA=;\n\t7:Z+VRmv5ncwgDHnjzkpGZ61Vv7QF4+l+sFcpjEJSwKMXMVmx62IPeUTRr/7rA2JPsQVEPmzZPW8NiRkJjsrvI7I7nN3ZmmLR0rRFW+/1IWqDbfpfrPvU7LWoNLHCMK2O4bGs/j2AGpBSNqVHv8iGvjcWVDqaYEQqrMixAPVP9rJqHYvsjkGTCSonpTUgoWDzywgILShOdCiSBkd1kbq09t4WfYTrIjl/Z6An+GoguaYJxILFuj7OU5EbEgDBDTm3K","x-ms-exchange-antispam-srfa-diagnostics":"SSOS;SSOR;","x-forefront-antispam-report":"SFV:SKI; SCL:-1; SFV:NSPM;\n\tSFS:(10009020)(6009001)(346002)(376002)(39860400002)(189002)(199003)(24454002)(2906002)(305945005)(316002)(6116002)(102836003)(5660300001)(81166006)(68736007)(8676002)(81156014)(8936002)(105586002)(106356001)(53546010)(39060400002)(97736004)(33656002)(53936002)(74316002)(229853002)(110136005)(7696004)(6306002)(2501003)(9686003)(6436002)(5250100002)(93886005)(6246003)(54906003)(6506006)(4326008)(3846002)(25786009)(7736002)(189998001)(966005)(43066004)(99286004)(55016002)(2900100001)(50986999)(478600001)(86362001)(101416001)(3450700001)(14454004)(66066001)(3280700002)(76176999)(54356999)(3660700001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1242;\n\tH:HE1PR04MB2073.eurprd04.prod.outlook.com; FPR:; SPF:None;\n\tPTR:InfoNoRecords; MX:1; A:1; LANG:en; ","x-ms-office365-filtering-correlation-id":"be36d9e4-8677-435c-0819-08d52eb82bb6","x-ms-office365-filtering-ht":"Tenant","x-microsoft-antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(22001)(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);\n\tSRVR:HE1PR04MB1242; ","x-ms-traffictypediagnostic":"HE1PR04MB1242:","x-microsoft-antispam-prvs":"<HE1PR04MB124273A6858E9B997879908F9A2C0@HE1PR04MB1242.eurprd04.prod.outlook.com>","x-exchange-antispam-report-test":"UriScan:(258095267146985)(261952635957900); ","x-exchange-antispam-report-cfa-test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(3231022)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:HE1PR04MB1242; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:HE1PR04MB1242; ","x-forefront-prvs":"04953B1F22","received-spf":"None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)","spamdiagnosticoutput":"1:99","spamdiagnosticmetadata":"NSPM","MIME-Version":"1.0","X-OriginatorOrg":"nxp.com","X-MS-Exchange-CrossTenant-Network-Message-Id":"be36d9e4-8677-435c-0819-08d52eb82bb6","X-MS-Exchange-CrossTenant-originalarrivaltime":"18 Nov 2017 19:11:28.3128\n\t(UTC)","X-MS-Exchange-CrossTenant-fromentityheader":"Hosted","X-MS-Exchange-CrossTenant-id":"686ea1d3-bc2b-4c6f-a92c-d99c5c301635","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"HE1PR04MB1242","Cc":"Priyanka Jain <priyanka.jain@nxp.com>, Stefan Roese <sr@denx.de>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>","Reply-To":"York Sun <york.sun@nxp.com>","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>"}},{"id":1814487,"web_url":"http://patchwork.ozlabs.org/comment/1814487/","msgid":"<7ba58d31-2050-0923-a571-ed800c4009a6@gmail.com>","list_archive_url":null,"date":"2017-12-02T09:14:34","subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","submitter":{"id":1124,"url":"http://patchwork.ozlabs.org/api/people/1124/","name":"Marek Vasut","email":"marek.vasut@gmail.com"},"content":"On 11/18/2017 08:11 PM, York Sun wrote:\n> On 11/18/2017 02:24 AM, Marek Vasut wrote:\n>> On 11/17/2017 10:48 PM, York Sun wrote:\n>>> On 11/17/2017 12:59 PM, York Sun wrote:\n>>>> On 11/17/2017 11:04 AM, Marek Vasut wrote:\n>>>>> On 11/17/2017 08:02 PM, Marek Vasut wrote:\n>>>>>> On 11/17/2017 05:43 PM, York Sun wrote:\n>>>>>>> On 09/12/2017 10:09 AM, Marek Vasut wrote:\n>>>>>>>> The status register is optional in the AMD command sets, but it's\n>>>>>>>> presence can be checked by reading out CFI table entry 0xc bit 0.\n>>>>>>>> If the register is present, prefer using it's bit 7 to determine\n>>>>>>>> if the flash is busy over reading the flash ; this is needed ie.\n>>>>>>>> on Hyperflash memories.\n>>>>>>>>\n>>>>>>>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n>>>>>>>> ---\n>>>>>>>\n>>>>>>> Marek,\n>>>>>>>\n>>>>>>> Some of our boards failed. I traced to this commit. Reverting this\n>>>>>>> commit fixes the issue. I happen to have two boards with slightly\n>>>>>>> different flash chip. One works and the other doesn't.\n>>>>>>\n>>>>>> I can't since I don't have the board with such a chip ...\n>>>>>> Which chip is that ? Mine is Spansion S25KL256 hyperflash.\n>>>>>\n>>>>> S26KL256S (26 instead of 25), sorry.\n>>>>>\n>>>>\n>>>> My local board has chip S29GL01GS11TFIV1. The remote board has identical\n>>>> manufacture ID and device ID. I guess they are the same part (maybe\n>>>> different speed grade though). I haven't heard from the team who can\n>>>> visually check the part number for me.\n>>>>\n>>>\n>>> Marek,\n>>>\n>>> I got an email from our hardware team. At some point, our vendor had two\n>>> parts with the same device ID. The other one is S29GL01GP13TFIV1.\n>>> According to Cypress migration document, the old part doesn't support\n>>> status register feature. I understand you already check lower software\n>>> bits.\n>>\n>> Which lower software bits ?\n> \n> Register at offset 0xC. This register is not part of CFI. But there is\n> CFI extention, explained below.\n> \n>>\n>>> But I am afraid this register is not valid for old parts which\n>>> don't support this feature. I checked the datasheet of S29GL01GP. It has\n>>> no description of offset 0xC. Reading from the hardware, I got 0xFF. If\n>>> there is no \"valid\" bit to indicate we can use lower software bit\n>>> regsiter, it is useless.\n>>\n>> I am happy to dump you whatever you need from the hyperflash (which is\n>> in fact a CFI NOR flash with different interface), if that helps us\n>> identify how to improve the condition to discern flashes which do and do\n>> not support this polling feature.\n>>\n>> Since CFI is a standard, there must be a way to do it.\n> \n> In vendor specific extended query, it has a register at address 53h in\n> this document http://www.cypress.com/file/213771/download.\n\nCool, that works!\n\n>>\n>>> Comparing the logs\n>>>\n>>> Failing board\n>>>\n>>> Flash: York debug: manuId = 0x1\n>>> York debug: lsbits = 0xff\n>>> York debug: read offset 0xE as 0x28\n>>> York debug: read offset 0xF as 0x1\n>>> 128 MiB\n>>>\n>>>\n>>> Working board\n>>>\n>>> Flash: York debug: manuId = 0x1\n>>> York debug: lsbits = 0x3\n>>> York debug: read offset 0xE as 0x28\n>>> York debug: read offset 0xF as 0x1\n>>> 128 MiB\n>>>\n>>> If there is no other way to know the \"lower software bits\" register is\n>>> valid, then we have to abandon this feature.\n>>\n>> We cannot because then that breaks hyperflash support, so we need to\n>> figure out how to improve the condition to discern the flashes.\n>>\n> \n> I sent you a patch. Please review.\n\nDone, thanks\n\n> York\n> \n>","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=\"uzt2YG5q\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3yppcF55lpz9t3x\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Dec 2017 22:21:16 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid 2A902C21FE1; Sat,  2 Dec 2017 11:21:09 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 8C63BC21E76;\n\tSat,  2 Dec 2017 11:21:06 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 8380DC21E76; Sat,  2 Dec 2017 11:21:05 +0000 (UTC)","from mail-pl0-f48.google.com (mail-pl0-f48.google.com\n\t[209.85.160.48])\n\tby lists.denx.de (Postfix) with ESMTPS id D0C93C21DA3\n\tfor <u-boot@lists.denx.de>; Sat,  2 Dec 2017 11:21:04 +0000 (UTC)","by mail-pl0-f48.google.com with SMTP id q7so7778221plk.0\n\tfor <u-boot@lists.denx.de>; Sat, 02 Dec 2017 03:21:04 -0800 (PST)","from [192.168.43.97] ([219.100.139.57])\n\tby smtp.gmail.com with ESMTPSA id\n\tp85sm15620073pfk.147.2017.12.02.03.20.59\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 02 Dec 2017 03:21:02 -0800 (PST)"],"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_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=EJv90T4LCkTtKSHSg2/76h0X44M17Vl9HMdnHX5nefg=;\n\tb=uzt2YG5qGORysNUxb6vRdILAMcEz/5tGSxDbtYsTK3JwYCep9qSGnE0asHg6A3ZOgZ\n\t2d84E0epP6slpavto+vAUawt5fIlj9Y6XoJ+tFL9ngtHN5pyRSFa33x/bThaG4ILt0ce\n\t4GhPLjtqsYG4qNw0EVCEoIt8X0O24bIw8zWu0s9uLDOKOIqOoYO2pAg7A0RoTxcqPYyU\n\tPYgGEceAV2NmbrHqv79YFG3q6kQT1qQ16aBRVka+dMnn5H0ln/0J0HOHweQglUdK9PTm\n\tjcaXdgrwNTILp8df3bxMMF8CoCS+LXddAAzsnSjrFsw5GH0TCFJ2c7GqDFFC2UNknMjv\n\ty8pg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=EJv90T4LCkTtKSHSg2/76h0X44M17Vl9HMdnHX5nefg=;\n\tb=XL8alS9J24zCdO1chAhn+6EVHHAXzYO0LpP3b0HFT8tt+IybTM1vVjrSiUl58kIKFr\n\tiPzo3LTe1/I78ofs/qkbA/5tRAlE5/GYIL1Eg7vfTN9YOcf4LE4N7/2wRZtMOxIpNbR0\n\tqZsAjadInEUD0RYUdBXW62NFV6GwBel5HqOhPrO8Flut9a4cYgj15emNP1cTxSm4RjTj\n\tYWzTKsUR2MQxvKDyoknoFVkiXai6Vmw8Hy7B4lb0xQ0FMVauAx0GKEozPLTnIFVeBp4G\n\tHywzG5COjWXL4vqQTXesvSsIsN99RroWoKXNgAolF90UKRJT6klr+Q8vQzngvpxHH3Xw\n\tFHSg==","X-Gm-Message-State":"AJaThX4mSEP053HbxMGRRYzsnCDUR0Lq0tfAYFKqClFy83Bl6F6UlfDf\n\teWOSwXWQUhgYusBCrZ6xLao=","X-Google-Smtp-Source":"AGs4zMYFr0IglUYzbnYBjt9OEb110G2F2408uUMzaXv6bviZl8eBOo72rX5k4hGi7UUDTFixFG3eIQ==","X-Received":"by 10.159.241.1 with SMTP id q1mr9083184plr.383.1512213662942;\n\tSat, 02 Dec 2017 03:21:02 -0800 (PST)","To":"York Sun <york.sun@nxp.com>,\n\t\"u-boot@lists.denx.de\" <u-boot@lists.denx.de>","References":"<20170912170931.29974-1-marek.vasut+renesas@gmail.com>\n\t<HE1PR04MB2073D2D6F6BA95DAD80BE5709A2F0@HE1PR04MB2073.eurprd04.prod.outlook.com>\n\t<48e13a2e-3380-4ff5-ad64-6b3e23910156@gmail.com>\n\t<48035e40-b6a0-e55c-13f9-df7830e5dd35@gmail.com>\n\t<VI1PR04MB20786C0EF4D48128AAC6D9839A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>\n\t<VI1PR04MB20787A49E43F79B1EA1268109A2F0@VI1PR04MB2078.eurprd04.prod.outlook.com>\n\t<0aae01d7-0808-d7d2-e2ae-96b6c7c662d5@gmail.com>\n\t<HE1PR04MB20734CB16710BE6DD6583B2F9A2C0@HE1PR04MB2073.eurprd04.prod.outlook.com>","From":"Marek Vasut <marek.vasut@gmail.com>","Message-ID":"<7ba58d31-2050-0923-a571-ed800c4009a6@gmail.com>","Date":"Sat, 2 Dec 2017 10:14:34 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.4.0","MIME-Version":"1.0","In-Reply-To":"<HE1PR04MB20734CB16710BE6DD6583B2F9A2C0@HE1PR04MB2073.eurprd04.prod.outlook.com>","Content-Language":"en-US","Cc":"Priyanka Jain <priyanka.jain@nxp.com>, Stefan Roese <sr@denx.de>","Subject":"Re: [U-Boot] mtd: cfi: Add support for status register polling","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>"}}]