Message ID | 20180527232801.1666-2-ikegami@allied-telesis.co.jp |
---|---|
State | Superseded |
Delegated to: | Boris Brezillon |
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=allied-telesis.co.jp Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q0KI2Bxv"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40vGRp0LJxz9s15 for <incoming@patchwork.ozlabs.org>; Mon, 28 May 2018 09:29:58 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=kkCXKZUESR4vgjV6eNEJrRP8se4fllgb6WjR6+C2g6o=; b=Q0KI2BxvI9hDNHpMO51yfsQq0C gifbbQmzEvuCURsh2nFe6LuI9Tk0qo6O3VGzVoom1y1ZaBSZFc5A2hnilPHEOGOMBrsbPQxeAusuT pJK4uYTxKTI11lA964CmLjchHvlLpNn18EKLuxRVtFdDrL6UUWMYxxO/IlTFeInZ6gHrTWde3YdS9 W7C5jr0txKLMvspcjmDuy3ChFxumJymgxfPIz54bVPOTD9jm2kNAQ3ViznmfiW6D0OJ9kX9teWZDf 9iFi4w9KqbC9hcHOmBmrGk4Jvn2nMAxF4pPQJLdm/GUxjaJyIHKFlK1bLqk5BNtNRew7xbBXrQAZG KhdEZ4sw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fN56i-0007yD-0e; Sun, 27 May 2018 23:29:48 +0000 Received: from mail1.bemta12.messagelabs.com ([216.82.251.16]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fN56L-0007jJ-7h for linux-mtd@lists.infradead.org; Sun, 27 May 2018 23:29:38 +0000 Received: from [216.82.251.38] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-16.bemta-12.messagelabs.com id 02/05-25526-94F3B0B5; Sun, 27 May 2018 23:29:13 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRWlGSWpSXmKPExsUyLfyHiK6nPXe 0QcN2XovdTcvYHRg9Ni+pD2CMYs3MS8qvSGDN2DY5rWAXd8XR/0tZGhi/cXYxcnEICcxllJiz cQErhPOLUeLvvVamLkZODjYBU4nprxYygtgiAoYSK6e2sIAUMQssZ5bYtGE9WJGwQITE9fM72 EBsFgFViY5365i7GDk4eAUcJFbP5AYJSwjISxx+08QKYnMKOEpsX/OTHcQWAiqZfPg8K4StKf G85zsjRH2wxJ+FF1gmMPIuYGRYxahRnFpUllqka2igl1SUmZ5RkpuYmaNraGikl5taXJyYnpq TmFSsl5yfu4kRGAwMQLCD8cIy50OMkhxMSqK8FhM5ooX4kvJTKjMSizPii0pzUosPMcpwcChJ 8P615Y4WEixKTU+tSMvMAYYlTFqCg0dJhDcCJM1bXJCYW5yZDpE6xagoJc77HyQhAJLIKM2Da 4PFwiVGWSlhXkagQ4R4ClKLcjNLUOVfMYpzMCoJ894GmcKTmVcCN/0V0GImoMXrVrODLC5JRE hJNTBGV6mazxd+zJb3N1Z92/ujVZ2xHx+Ht8Yl/tsw0fLY//c32Zg+/f3v0XkpVukYa4BabNK isl1203VW84V3rkyyze/M73z9LvvLty1Ch3y27CuSfKemwX/oTF1pt1NETvPrxKPRiUZybOxC 6zcaNC+szzb6LTVbYPMdkVtrnSVlN1yS7veYG6TEUpyRaKjFXFScCAD6C4S8gAIAAA== X-Env-Sender: ikegami@allied-telesis.co.jp X-Msg-Ref: server-8.tower-163.messagelabs.com!1527463752!155080196!1 X-Originating-IP: [150.87.248.20] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.9.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 145712 invoked from network); 27 May 2018 23:29:13 -0000 Received: from abricot-inet.allied-telesis.co.jp (HELO TKY-DS01.at.lc) (150.87.248.20) by server-8.tower-163.messagelabs.com with SMTP; 27 May 2018 23:29:13 -0000 Received: from swim-manx.rd.allied-telesis.co.jp ([150.87.21.50]) by TKY-DS01.at.lc with Microsoft SMTPSVC(8.0.9200.16384); Mon, 28 May 2018 08:29:12 +0900 Received: from ikegami-pc.rd.allied-telesis.co.jp by swim-manx.rd.allied-telesis.co.jp (AlliedTelesis SMTPRS 1.3 pl 1 ++E6B86F8C687C6288D9B5559052954DC9) with ESMTP id <B0004118808@swim-manx.rd.allied-telesis.co.jp>; Mon, 28 May 2018 08:29:11 +0900 From: Tokunori Ikegami <ikegami@allied-telesis.co.jp> To: Boris Brezillon <boris.brezillon@bootlin.com> Subject: [PATCH v7 1/5] mtd: cfi_cmdset_0002: Change write buffer to check correct value Date: Mon, 28 May 2018 08:27:57 +0900 Message-Id: <20180527232801.1666-2-ikegami@allied-telesis.co.jp> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180527232801.1666-1-ikegami@allied-telesis.co.jp> References: <20180527232801.1666-1-ikegami@allied-telesis.co.jp> X-OriginalArrivalTime: 27 May 2018 23:29:12.0232 (UTC) FILETIME=[84D5BA80:01D3F612] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180527_162925_320713_08DC1F7E X-CRM114-Status: GOOD ( 17.21 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: wedev4u.fr] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [216.82.251.16 listed in list.dnswl.org] -1.7 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [216.82.251.16 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: Boris Brezillon <boris.brezillon@free-electrons.com>, Tokunori Ikegami <ikegami@allied-telesis.co.jp>, Richard Weinberger <richard@nod.at>, stable@vger.kernel.org, Marek Vasut <marek.vasut@gmail.com>, Chris Packham <chris.packham@alliedtelesis.co.nz>, linux-mtd@lists.infradead.org, Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>, Brian Norris <computersforpeace@gmail.com>, David Woodhouse <dwmw2@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
mtd: cfi_cmdset_0002: Change write and erase functions
|
expand
|
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index e397b80e40cc..1d6be8c63d39 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -1879,7 +1879,7 @@ static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip, if (time_after(jiffies, timeo) && !chip_ready(map, adr)) break; - if (chip_ready(map, adr)) { + if (chip_good(map, adr, datum)) { xip_enable(map, chip, adr); goto op_done; }