From patchwork Tue Aug 13 12:38:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagar Shrikant Kadam X-Patchwork-Id: 11092125 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E09514F7 for ; Tue, 13 Aug 2019 12:40:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D2CC2856F for ; Tue, 13 Aug 2019 12:40:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70AD228600; Tue, 13 Aug 2019 12:40:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1B7A6284E9 for ; Tue, 13 Aug 2019 12:40:54 +0000 (UTC) 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=O6gDM1jitRmoRjuiaXpf0W1mePMfoEsyQE4XcFMhUWY=; b=oM+yNcVbO+8qDzOvIsLaaCHUeH EYuor0pqAAMBO6SAsC8frg1U38Ctb2AA/TsOlltiXqQK1BbGLShXJyNZtlBOmMUpNARuxq5gEzxUj esuNP1igOr7VPuIIoUG6tFndu16c+fzpNr9rKwucrR1cwJv10pvWQGdDkO0t33TKjUwgwLmeCM7R5 jDwowlcOxCVYnPVT9txSLe8FWax34WI7Gz4sj1oJj0uA6/4sysfxU9iMtptoGoQGg769KnGVwc0OZ vfB0vDrl0HdLn9ctynMnCzWBRJqn2I0XWsseqrcO0H4ExOh5/8zy0NJ2Sq5cnj0Rt2yWr9NxTTkwE QDypiK+w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hxW6c-0002Zv-D8; Tue, 13 Aug 2019 12:40:50 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hxW6C-000224-RF for linux-riscv@lists.infradead.org; Tue, 13 Aug 2019 12:40:26 +0000 Received: by mail-pl1-x641.google.com with SMTP id g4so2760458plo.3 for ; Tue, 13 Aug 2019 05:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HuZqhFloNsXdkXS3ECm5uIQkv6TKXS63NVePQ94bhBM=; b=ktbcE/AL4sb1aIODwft8dRlSCxGZ43zSLC5NCthdXu4fWv5QoHCFZU2fpMaxZWeFFY Qyq129wZuAwpk46h68SWoNxmAVjuOoFu54bPyrjGgFvyl5uYNEM9o8godLU+YreMQbZk D+aGrUKbdJxHvTWmrPyILeXNH6/s6byaPeKQydLWHwMyg9k2v1D5LdnVcMBqendI1Ehh /L+VfdF2mLdy/hYw2Jmc5KAGMdNRZl6i1DNZTI2iYYb+u+BViLHTw/zSc79rm0CfYV3Q Yc3G7PPn1gJNXOElBy2rib87uEBdqv/3Mp/FHGJZzX1MEDJCi/9ESXu9+ptqDrtC6Om3 xjkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HuZqhFloNsXdkXS3ECm5uIQkv6TKXS63NVePQ94bhBM=; b=SrHEeyKqq1FE1dydd58zfUnbgRZsZZOrjp9X24+ZJ0hL0nSoHQqDZj0KbyCv1sHLig sC+3ntbXUjmdQli+kT9GltjH+QCcOzkTdQePZdwaEUgXLdc5XY/sWZVCzI32a4pO4s2J 3pkdTaBy66rEVjXys6TUD+ylw89t0vxnijg7U8IrQ7gQGvUWrs9BIoZ/vUyQLTcCHrb3 DHbiC1Vnd77vATSOLdXqTUEm53ZINwLpsLo/UyMRVsULCN0yNUbJ1Rd5rLVpBvGmwXgQ wYsFSTGhE569c3vJdG2dU0PpJez54qTSKK4K3jm8KKRhQyHSRUsPok4693cZPLA4qJnx O0nA== X-Gm-Message-State: APjAAAWAvQ8iywFZ1NM++qFvpN/AlW8Pa9KE2P0F2PdD6JyHH2yqjRy9 mNdgIw5HUfnGP4fPIMW1KzdwWQ== X-Google-Smtp-Source: APXvYqz7sJ7/aKi3Wqp7p4CdH0zx43soAGpeV6N+iBXq71zY2GoOnkwB5xc00uKcMcxN5GsX3ImK3Q== X-Received: by 2002:a17:902:d890:: with SMTP id b16mr36912634plz.315.1565700024307; Tue, 13 Aug 2019 05:40:24 -0700 (PDT) Received: from buildserver-90.open-silicon.com ([114.143.65.226]) by smtp.googlemail.com with ESMTPSA id v145sm14758467pfc.31.2019.08.13.05.40.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Aug 2019 05:40:23 -0700 (PDT) From: Sagar Shrikant Kadam To: marek.vasut@gmail.com, tudor.ambarus@microchip.com, dwmw2@infradead.org, computersforpeace@gmail.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com Subject: [PATCH v8 2/4] mtd: spi-nor: fix nor->addr_width for is25wp256 Date: Tue, 13 Aug 2019 18:08:13 +0530 Message-Id: <1565699895-4770-3-git-send-email-sagar.kadam@sifive.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1565699895-4770-1-git-send-email-sagar.kadam@sifive.com> References: <1565699895-4770-1-git-send-email-sagar.kadam@sifive.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190813_054024_936586_6CC75632 X-CRM114-Status: GOOD ( 11.71 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aou@eecs.berkeley.edu, palmer@sifive.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Sagar Shrikant Kadam , paul.walmsley@sifive.com, linux-riscv@lists.infradead.org MIME-Version: 1.0 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Use the post bfpt fixup hook for the is25wp256 device as done for is25lp256 device to overwrite the address width advertised by BFPT. For instance the standard devices eg: IS25WP256D-JMLE where J stands for "standard" does not support SFDP. Signed-off-by: Sagar Shrikant Kadam Reviewed-by: Vignesh Raghavendra --- drivers/mtd/spi-nor/spi-nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 6635127..cb40b1b 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1949,7 +1949,7 @@ static int spi_nor_spansion_clear_sr_bp(struct spi_nor *nor) { "is25wp256", INFO(0x9d7019, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) - }, + .fixups = &is25lp256_fixups }, /* Macronix */ { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) }, { "mx25l2005a", INFO(0xc22012, 0, 64 * 1024, 4, SECT_4K) },