Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1008115imj; Thu, 7 Feb 2019 15:53:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IaCITJ/Hqz6SSz15VAaraXZMCEB7Dk+YLRZ5n2MfqHPKXJMC9a5dU4or1Q2kHie2puBE4c5 X-Received: by 2002:a17:902:7687:: with SMTP id m7mr19196129pll.187.1549583580453; Thu, 07 Feb 2019 15:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549583580; cv=none; d=google.com; s=arc-20160816; b=wCIhPXqEMXE0wh9hNad5VoU3/ApXyhv8CIe7VHkodd4gjoecIYRR29BpRdcDhKcZAT N5t7ZCUdq5Lg8nv29BhUS+SBTuy2K3fX2/A6YbVz/4VWk0mrAO2HIIKWEME9I/XxGd6W IgsfvEZ3p0gvmG2ByJzZtMp+gIwVCOga4nlB/pZ5NtuxnhlGFDh3wUpWsIw+I80+6aLg KV5+X5DUXTKMPyaZoMc/GZ6uHYZwSypMdoBj0KyN3jrjCsBqN5iJBgz1l0r+Ip/EYkgm gd00Q5cxBHNWaFNJHfQUT9Z1/dPR+lg7FKkauTMQrgL93gsIRX5gsD5GKz7jhqO62kR1 rNdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=ejLmcIlfLO0Ssh23QOb4ogmjBngZo6L2DAcjdrS9wDQ=; b=ubO8C/lwOurtdD0uKx7f3Uvzr5NRy1dyzgl4pwt3u86P2U0SHl2d9ybhJsk55c+91t VQVoFprEyvPpiD8jmYuRuEHC1kNEQm0bZEa4i07fwr35ZJD7OiHySwfqRJ2V1XxPWyr9 /Lnjsznh+4eYlPACe4Q9L78A/DD9ISX3D7Qf8FT1RI10zHFTj6kTK/3Pjn+qUkObsLXP KOduGgV1KPIPYv7fw75wqOqzJb3gXyW5Pzvg+bpQuTwnpOgN64phKRfziJr0rNSBqfmx Toz+WgqPdPHAhDepfjwpWWERLy1x/70jVqSUfqFURD6RNMtg8Lord9Gg6Ksavbry/Nwe x+nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ehPZDUo0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n128si377342pga.423.2019.02.07.15.52.43; Thu, 07 Feb 2019 15:53:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ehPZDUo0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726796AbfBGXuq (ORCPT + 99 others); Thu, 7 Feb 2019 18:50:46 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:2823 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfBGXuq (ORCPT ); Thu, 7 Feb 2019 18:50:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1549583443; x=1581119443; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ejLmcIlfLO0Ssh23QOb4ogmjBngZo6L2DAcjdrS9wDQ=; b=ehPZDUo03tuXqrYDWdx6l6Rxkk+XfADjj5LNBgNcBT836NllwlaZTm9X pHdun9tkAkIqqKmQ6aJ37nbH4EPdM+YGPOEjiFUAWk2MC3k6K76zX7XC1 8TZA5w+6PYVpKaXl1VA/CjLMNaaaudohs4KgjOHFbwLigrahOorzPlj4Q Y=; X-IronPort-AV: E=Sophos;i="5.58,345,1544486400"; d="scan'208";a="658326734" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1d-9ec21598.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 07 Feb 2019 23:50:39 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-9ec21598.us-east-1.amazon.com (Postfix) with ESMTPS id DF3D2A20B6; Thu, 7 Feb 2019 23:50:35 +0000 (UTC) Received: from EX13D07UWA003.ant.amazon.com (10.43.160.35) by EX13MTAUWA001.ant.amazon.com (10.43.160.58) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 7 Feb 2019 23:50:35 +0000 Received: from EX13D07UWA001.ant.amazon.com (10.43.160.145) by EX13D07UWA003.ant.amazon.com (10.43.160.35) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 7 Feb 2019 23:50:34 +0000 Received: from EX13D07UWA001.ant.amazon.com ([10.43.160.145]) by EX13D07UWA001.ant.amazon.com ([10.43.160.145]) with mapi id 15.00.1367.000; Thu, 7 Feb 2019 23:50:34 +0000 From: "Sobon, Przemyslaw" To: "ikegami_to@yahoo.co.jp" , Boris Brezillon CC: "keescook@chromium.org" , "joakim.tjernlund@infinera.com" , "ikegami@allied-telesis.co.jp" , "richard@nod.at" , "linux-kernel@vger.kernel.org" , "marek.vasut@gmail.com" , "linux-mtd@lists.infradead.org" , "computersforpeace@gmail.com" , "dwmw2@infradead.org" , Liu Jian Subject: RE: Re: [PATCH] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer Thread-Topic: Re: [PATCH] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer Thread-Index: AQHUu5pgPuG2fN5WMEykck2gQhFtIaXNv4mAgAQNLxCAAkIwgIAA64iAgAALp4A= Date: Thu, 7 Feb 2019 23:50:34 +0000 Message-ID: <632ed76bd3844ceab75066d1f30a7115@EX13D07UWA001.ant.amazon.com> References: <1548977439-318904-1-git-send-email-liujian56@huawei.com> <20190203092645.18d1495b@bbrezillon> <20190203093509.269bf1e1@bbrezillon> <20190207095635.0fc3b411@kernel.org> <193621849.44066.1549580387922.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <193621849.44066.1549580387922.JavaMail.yahoo@mail.yahoo.co.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.161.164] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgSWtlZ2FtaSwNCg0KSSBoYXZlIHNlZW4gYSBjYXNlIG15c2VsZiB3aGVyZSBhIHZhbHVlIHdh cyB3cml0dGVuLCBjaGlwIGNoYW5nZWQNCnN0YXRlIHRvICJyZWFkeSIgYnV0IHdoZW4gSSB3YXMg cmVhZGluZyB0aGUgdmFsdWUgd2FzIGluY29ycmVjdC4NClRoaXMgY2FuIGhhcHBlbiBhcyByZXN1 bHQgb2YgaW50ZXJtaXR0ZW50IGlzc3VlIHdpdGggZmxhc2guIEl0IGlzDQpoYXJkIHRvIGZhbGwg aW50byBzY2VuYXJpbyB3aGVuIHRlc3Rpbmcgb24gbGltaXRlZCBudW1iZXIgb2YgZGV2aWNlcw0K YnV0IHdpdGggbGFyZ2UgZW5vdWdoIHBvcHVsYXRpb24geW91IGNhbiBzZWUgdGhhd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