Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp311443ybm; Fri, 29 May 2020 00:20:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvRYwtB529072orTTP+szwgrPIpnH2FBRLj3cTwtST2I5fz7rNedoGC8Pu8A2Hz5gcVNsU X-Received: by 2002:a17:907:9f4:: with SMTP id ce20mr5912824ejc.365.1590736853382; Fri, 29 May 2020 00:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590736853; cv=none; d=google.com; s=arc-20160816; b=s5AdsGfbmq5bmYVheK6Tta1OU6lvMLuNlyXcY0OPGr3x6G5Kr9ooBrhNgqbI3v8grl YTu9eL7sNQgOs5yiF94HaQl+lzD0rwRX7bXHdedRbC/X8G3pP7BxkULyvhAqxVvu5l8V s0tnRGqOT5bpTypf89EE5aVhtj4XBviQ4aykuOxqo9T31tDY7v4RhZ2VD9AEZYwf7QwJ gyYaY7qmgkPzHGEnX7Tt0gmUZENg0XBxrrAs555QhF4xLzf1FRNGsX5q/eDa269+0L25 s9ExssXpxJT6VgKfTDaCTwK41aBwZu/Qb35/4v9FqkzssrHmt+/KFOsZi5Esoe7VYQBL dZUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=P5u/NbTWEXJl8r2ntb3RMUbWPRi8ebmRq4q1xRNaxs0=; b=WkibjVVgFs0xcXfjTewPMnG+EKsAqwbl/gJ9hHy9Bb+hbDQQrwV95NU0rt3lV3sl7i AoKPo6eCgrjdJswrsnwzPiVK/Y8EAALnDphS0DcnGuWOi9iHkMBmTcaNHlzkaDW05EF+ XGcpz+fdhnIiwztdxWdRHa7LvFjjhrnutqBTnpzqybPOGmOCwfJZZXIo78TbxmI0DW64 G3Y1P5I3LGQo2riUPF1dh1mFsJcbhqDHEcIZeMObDMCObvs5YCAdtxciv06bOXypz9f3 PW0lwWVusnnh6hPisfkv+DKckMbiBdHUWRnPwvt7KPrHDjI9N0KuMXSbCwwronpHjW2x a0cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=EXjRYk2e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr4si6466250ejc.239.2020.05.29.00.20.29; Fri, 29 May 2020 00:20:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=EXjRYk2e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725913AbgE2HRL (ORCPT + 99 others); Fri, 29 May 2020 03:17:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgE2HRK (ORCPT ); Fri, 29 May 2020 03:17:10 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D2E6C03E969 for ; Fri, 29 May 2020 00:17:10 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id ci21so818847pjb.3 for ; Fri, 29 May 2020 00:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=P5u/NbTWEXJl8r2ntb3RMUbWPRi8ebmRq4q1xRNaxs0=; b=EXjRYk2eE8ul6RkMaGwpyALBo5BTSDqE3OyHZPZb+x6FV1PL83C4t1UyRjx0Rl7Hlh 4MnRprcXutzOk7MZJ5HWAaNu6U2ubJrQmyn3RFoi9Iph7iubNRbqUT/6SvDrCTr8f79M hfqJPtxO8+UDIaGmdlY5wINH9dUZxOi7NC/SY= 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; bh=P5u/NbTWEXJl8r2ntb3RMUbWPRi8ebmRq4q1xRNaxs0=; b=Hmj6lQcZOaUG++KriEcyjcv5YvSAN603jZSUN1AdUjOj2DqKD0+ipIp28Dmh0UH0+H FE7slYLWHn65bfpGLaivxkSYpwO8c3nCYS63ZbWuGXK7IT7WkjsGGmbNImUfhAAk06IY zM7RwAJXW64A7+868yR6EMXKYGHgpH+vvjFimK207XgjrVMrAQHCz8Fj5N/8hy9UAJIT r/wG+15q+tY1Qj+btWt5sPPWvS3ZIA7QKtjREwRONOHN/Qj0UxBktOnZ2ZbMIYGNcj++ TIvL2BNv3kQWvSPD3LZYSO6S1Y355L3w/lSVn3HwIzva61X6ao7pbksf7JBZ3bsyFAIL 7JXw== X-Gm-Message-State: AOAM5330GAU148ez8m5UJxyKoOjZhj/bzsnVH/+Pd00ifNsQUbO2JMdE J0kb2O96BCjjDvM3mvZ0rosAIw== X-Received: by 2002:a17:902:6b09:: with SMTP id o9mr7778933plk.100.1590736629784; Fri, 29 May 2020 00:17:09 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w65sm6418005pfb.160.2020.05.29.00.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 00:17:08 -0700 (PDT) From: Rayagonda Kokatanur To: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rayagonda Kokatanur Subject: [PATCH v2 1/1] drivers: mtd: spi-nor: update read capabilities for w25q64 and s25fl064k Date: Fri, 29 May 2020 12:46:55 +0530 Message-Id: <20200529071655.739-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both w25q64 and s25fl064k nor flash support QUAD and DUAL read command, hence update the same in flash_info table. This is tested on Broadcom Stingray SoC (bcm958742t). Signed-off-by: Rayagonda Kokatanur --- Changes from v1: -Address review comments from Vignesh Raghavendra Update commit message with testing details. drivers/mtd/spi-nor/spansion.c | 3 ++- drivers/mtd/spi-nor/winbond.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 6756202ace4b..c91bbb8d9cd6 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -52,7 +52,8 @@ static const struct flash_info spansion_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "s25fl016k", INFO(0xef4015, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, - { "s25fl064k", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) }, + { "s25fl064k", INFO(0xef4017, 0, 64 * 1024, 128, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "s25fl116k", INFO(0x014015, 0, 64 * 1024, 32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "s25fl132k", INFO(0x014016, 0, 64 * 1024, 64, SECT_4K) }, diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 17deabad57e1..2028cab3eff9 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -39,7 +39,8 @@ static const struct flash_info winbond_parts[] = { SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, { "w25x64", INFO(0xef3017, 0, 64 * 1024, 128, SECT_4K) }, - { "w25q64", INFO(0xef4017, 0, 64 * 1024, 128, SECT_4K) }, + { "w25q64", INFO(0xef4017, 0, 64 * 1024, 128, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "w25q64dw", INFO(0xef6017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, -- 2.17.1