Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3273848ybb; Mon, 6 Apr 2020 05:49:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJ0GUuNjfCtnAHCpigrRuTRYGypj4xPcWGE2U8GKHW7qgirdbGYgmFDaslPEN9duUwd6BoD X-Received: by 2002:a9d:1e82:: with SMTP id n2mr17267123otn.356.1586177383950; Mon, 06 Apr 2020 05:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586177383; cv=none; d=google.com; s=arc-20160816; b=eR3OWsyowy0JUkUqmFE/+9EIf/hnqXpSDkEWQ0/50c2jMpPKD0+MBiiS3hsz/XqQY9 afw0svMPBQmGddIdAL3efpTq1CbtCB1Hxhb7yL5AV2CSSGWaq5BbhRVI2T6//1/T+sQu 7XgPSAJbp5hzL11Glyqmzswnx10hLGdwLDv6a3mISTclYWmzjTQr72uM3lzFr+8wbY/S YReyWFmZM4CnEUN27ts9vmR2Zx97MoZdsu+fr+cJfZWhvl5ck3WAWlOdM8eB0lJ1umLL vFIrz3NRPISHCkNiKrcxSTI9YWnJF5K/DitJzGKzD1AxR2Ahwigop4zxgurahXmbK2iQ d5gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fFB4VdA84Kugwzr7cseBJwu0dBCE6rHh8pgVv8EEcS0=; b=SqxTyy2GPo6IJ6NW2KugXUjLr13CVOzALiJ+PsNNSkf//YcDKbAirpjFj4XTCWe/v6 5Y7BMlP49sC/UCPFkzQ/n7w2cC8D6Ioe0fL98vgg+tYbqCIoWsVhOOOZBgmIL27nu6iG gxM4N8fwXbkHVtT0EbuPCX+UEmU787GruqqPJWvBme6mz2TU+BM+0wO7iI2LQK30SIhd qvMQJpZySC0U33T43wCOWPmYP8rl626fcQvS/sMyElF/nmDDQBL9a3qBGxl0CuvRn9gq 2nFKLKIlU9WlzHE37h+v296zHjBAhKYWUloRYp63w3z4SxkP90WVgwPikfasKC8n8JY0 M+qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tc47wP7v; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m126si7538920oig.177.2020.04.06.05.49.31; Mon, 06 Apr 2020 05:49:43 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=tc47wP7v; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728068AbgDFMtP (ORCPT + 99 others); Mon, 6 Apr 2020 08:49:15 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:38365 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728009AbgDFMtP (ORCPT ); Mon, 6 Apr 2020 08:49:15 -0400 Received: by mail-oi1-f196.google.com with SMTP id w2so12932732oic.5 for ; Mon, 06 Apr 2020 05:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fFB4VdA84Kugwzr7cseBJwu0dBCE6rHh8pgVv8EEcS0=; b=tc47wP7v2iRxBHrC4XRQCCKeCh3hWP45Nin6JzgR3+4GyevHAWChQgDAKOfMtyjmK9 VOsVxkgLbMbW58sh4UpBrQRTKFdFnniHrU/yt309hGVa0gub/FsysLJMwD1xquCmQRGA xiHuAJuoFhQl7veK5j9wCnk3W9bbPkO2EXrmvpEJSXzypOIDJPVQDKErZodbebvt726B h8M5jUCKjLQUotXM4U7CGxB8CF+Vx3RWNrL/KOonulMVcijs/zR52xudTFNRPq0WJyy6 X/MOFAgZizYVSLrK6cSA4ll9AK3iZJc5H8yorq0nmHOZcnLLK/IpwO+eBBCCzUTL8+kV EN/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fFB4VdA84Kugwzr7cseBJwu0dBCE6rHh8pgVv8EEcS0=; b=RdAxd3+HhT0k5cGoFGh09c8OXVFbOkprbvJrf/RS2QSSaxUUv1wyGzR0lJK22Z6FDn 1lV7vWkpOqhope284XxBjZTzpqLGd3YJCjXLcjrO5KHvl3IT3mahRvP+bP9ut/kVckwy l+Rv9z7+jW8301McFct5WeLa6DPwbeI9GLxlL3ccTotd7coCttPkhnDZi5h7VAt+X5L6 JwLe/9KpwKF3OdH3qNlSfEEM9AhvUkuTWadk98W6Sa0nooTUzta+0XyAemFprPsYbzI4 d5QJUdDRPzksVSTZhvV1NFAjWfTbovXanms1PtPvMST7M5yp/PVGNNOTrxIKeKbNPPLt OpTA== X-Gm-Message-State: AGi0Pua0xOPDXwIHEK1ZUS47nSsZYMj+4Dz7Q1KOPDVjwx1m4tMmZCWP pIRptnm7PRKJpCvbV9yomomGY+PtmNZSwpf1pC0= X-Received: by 2002:aca:3196:: with SMTP id x144mr12841366oix.77.1586177354089; Mon, 06 Apr 2020 05:49:14 -0700 (PDT) MIME-Version: 1.0 References: <20200404125845.1381080-1-gch981213@gmail.com> In-Reply-To: From: Chuanhong Guo Date: Mon, 6 Apr 2020 20:49:02 +0800 Message-ID: Subject: Re: [PATCH] Revert "mtd: spi-nor: Add 4B_OPCODES flag to w25q256" To: Robert Marko Cc: linux-mtd@lists.infradead.org, Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , open list Content-Type: multipart/mixed; boundary="000000000000be6f7405a29eb139" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000be6f7405a29eb139 Content-Type: text/plain; charset="UTF-8" Hi! On Mon, Apr 6, 2020 at 8:23 PM Robert Marko wrote: > > It appears that W25Q256JV has an SFDP table and in it advertises 3B or 4B modes. > > > > [ 1.957903] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64 > > [ 1.962185] SFDP advertises 3B or 4B > > [ 1.977393] spi-nor spi0.0: w25q256 (32768 Kbytes) > > > I have used the attached patch to check what does the SFDP DWORD 1 advertises. > If FV version has or does not advertise 4B support than that can be > used to differentiate them. My old w25q256fv spits all 0xFF to 0x5a read sfdp instruction. I've asked someone with a newer w25q256fv to dump the entire SFDP for me and it's in the attachment. You could do a comparison between w25q256jv with this dump. > Can you apply this patch and check what the FV version advertises as I > don't have a device using that revision. > FV version also should have SFDP as datasheet for it clearly advertises is. I've checked the sfdp dump in the attachment and it's also advertising 3B or 4B in 1st BFPT dword. -- Regards, Chuanhong Guo --000000000000be6f7405a29eb139 Content-Type: application/octet-stream; name="sfdp-w25q256fvem-wson8.bin" Content-Disposition: attachment; filename="sfdp-w25q256fvem-wson8.bin" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k8ogxpxp0 U0ZEUAABAP8AAAEJgAAA//////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ///////////////////lIPP/////D0TrCGsIO0K7/v//////AAD//yHrDCAPUhDYAAD///////// //////////////////////////////////////////////////////////////////////////// /////////////////////////////////////w== --000000000000be6f7405a29eb139--