Message ID | 1453960307-10181-2-git-send-email-computersforpeace@gmail.com |
---|---|
State | Accepted |
Commit | edf891ef9ab773363f8e58022a26d7d31604aed6 |
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 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 85024140B96 for <incoming@patchwork.ozlabs.org>; Thu, 28 Jan 2016 16:54:57 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=X+ov/LOH; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOfVf-0004MM-Fe; Thu, 28 Jan 2016 05:52:47 +0000 Received: from mail-pa0-x244.google.com ([2607:f8b0:400e:c03::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOfVZ-00047b-9Z for linux-mtd@lists.infradead.org; Thu, 28 Jan 2016 05:52:42 +0000 Received: by mail-pa0-x244.google.com with SMTP id yy13so1429995pab.1 for <linux-mtd@lists.infradead.org>; Wed, 27 Jan 2016 21:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GSOZ73EO6k55xe7umhVgVtdXCes+lskfcaEaa1U275k=; b=X+ov/LOHmcqH3Xe66eCjBdc9/k3zVgGX0h4FVHcpG6MSPgf09CfxvZkNzqi3S57Yhe H2bxK02Wq2qggM4LP/AZof1f5IMK3imVvOf2La6NND613FDXAlg746wdTD+3xDJ+0Iw5 7MG9OMiGbpkQG0Ni69qfpcV7H6gdJWpc3yrhf2Inz9S/3T652+px08a1WBNAtqoVCMOF J5UX1EuovkSi2YMnWQ0YoTGWhSXePPxOFEVbL3GxQ7oSPgf5UgoRD3jH7TD007qN32Oc UTeVEDSWLj9R5913PrEkItZ7ZyzbKrZame5phynHWUnH2InEoK+ZDyNZc6zvl8S7Ihzb xMXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GSOZ73EO6k55xe7umhVgVtdXCes+lskfcaEaa1U275k=; b=J35P2Lm/q7nhM30Y2dWq7JJUwtdbEg5DpUnW7MJwe+yY0kESiZ/h5as3eRgx03Hy5g OJoDAqopg1gITUm/czy6BUzIdjM79MZZFI9bDqSyCL87h88JbtMipzkBgdLc+kyreL+t MU7ICz2uh5Y/qqOxi3uvN0hBh933xy/3FdUjCnkS7dVbKze7G4FWnyjCGjQUzeHYKjVu S02UJ50R0iRXtTqm/isu2eefezVzQdCFoYcxwytpywqoWH2jnAYFRgG8EGj4qVm2tP8v Z1KPrZ4XvXjlXsTzFF0E20L+RJw/rqJKd4dy7ZV8N8jxNRlckA2JOlZjgUB1KyX5bXo6 fjEQ== X-Gm-Message-State: AG10YOQDUn863WtS2C3Lec6YqTyL44sGudcdaMsOOzyACeDrH4lHcoEcOCwXxdyu/iRAFg== X-Received: by 10.66.150.228 with SMTP id ul4mr1919842pab.15.1453960340464; Wed, 27 Jan 2016 21:52:20 -0800 (PST) Received: from localhost.lan. (c-71-198-3-2.hsd1.ca.comcast.net. [71.198.3.2]) by smtp.gmail.com with ESMTPSA id 6sm2371255pfo.58.2016.01.27.21.52.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2016 21:52:20 -0800 (PST) From: Brian Norris <computersforpeace@gmail.com> To: <linux-mtd@lists.infradead.org> Subject: [PATCH 1/8] mtd: spi-nor: wait for SR_WIP to clear on initial unlock Date: Wed, 27 Jan 2016 21:51:40 -0800 Message-Id: <1453960307-10181-2-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1453960307-10181-1-git-send-email-computersforpeace@gmail.com> References: <1453960307-10181-1-git-send-email-computersforpeace@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160127_215241_545037_CB539613 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c03:0:0:0:244 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 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: Marek Vasut <marex@denx.de>, Boris Brezillon <boris.brezillon@free-electrons.com>, djkurtz@chromium.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>, linux-kernel@vger.kernel.org, Bayi Cheng <bayi.cheng@mediatek.com>, Stas Sergeev <stsp@users.sourceforge.net>, Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>, Brian Norris <computersforpeace@gmail.com> 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 |
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index ed0c19c558b5..ef89bed1e5ea 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1236,6 +1236,7 @@ int spi_nor_scan(struct spi_nor *nor, const char *name, enum read_mode mode) JEDEC_MFR(info) == SNOR_MFR_SST) { write_enable(nor); write_sr(nor, 0); + spi_nor_wait_till_ready(nor); } if (!mtd->name)
Fixup a piece leftover by commit 32321e950d8a ("mtd: spi-nor: wait until lock/unlock operations are ready"). That commit made us wait for the WIP bit to settle after lock/unlock operations, but it missed the open-coded "unlock" that happens at probe() time. We should probably have this code utilize the unlock() routines in the future, to avoid duplication, but unfortunately, flash which need to be unlocked don't all have a proper ->flash_unlock() callback. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Cc: Stas Sergeev <stsp@users.sourceforge.net> Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> --- drivers/mtd/spi-nor/spi-nor.c | 1 + 1 file changed, 1 insertion(+)