Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5493404imw; Wed, 20 Jul 2022 06:52:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uBjL3aoKDJRvYPE2yqoQ0T29fKfwJyXfwM6mOReVC+mvIMD47Z25tO1fA5ZQ7xMr/+owLh X-Received: by 2002:a05:6402:304d:b0:43a:9d08:9613 with SMTP id bs13-20020a056402304d00b0043a9d089613mr49483254edb.289.1658325131987; Wed, 20 Jul 2022 06:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658325131; cv=none; d=google.com; s=arc-20160816; b=sUqZF4F9ImJrN/ySBmsd9iJ+3sPhjU5okVKeWAKrZyiZ3r7iiOBJTuQtUf3xP+jWjQ T0x5YTHX73FpemHQISB+qoGURa1w7vkBt97zCGIxHNSBtRe0mdByCJTYQc17+KTO83pL tUdGB3lsgwtrod/PPIniZPtwtGDLHiUoK7Bgu2Am3lOYZCDqxaXnNA+SZ83WhlAXdYen mLkPu7tZscc0Nbc1Ca1eKkzYpexMpM++o4ng8zsZVOLGia9xXtK4cfvSMtHGH1+GYzt9 3g/9M2+DFMHzNvoNi+4U8/3FFEkUCyimwIV4D/Rfvd+MXsQpfOBH238ZFfNnzb24ko0Z AYzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=5SDELbFZivHkdGyHGF1nop4U3jMBC/a0ONji2ciT+Qc=; b=hofCPARIK/z7UtjVkkmahPcM2YGpFFYq5ytJlvhgUfebvlDCURvptS7EwFxjAQU1Gd B6fJ1F8PBUtseJzmzjnvUkkDwZBZZi1DCGhCxUBptbOPkFPAV49AWGX4i9XLjQcDOTDM e26R695LRDzPtHldPaWW1djkHfzP4PmDq7RPA29BY63JlXbyjtEzRRzTbJn6qv+kuZwe ngnG/rakRrtYF4b+LjZ61IulDOaGIfsA+Dun2/JQkUWuidEpJgW+lcrqK7FN9jKsw+fJ wmZfqEeU0ehLvlj/kxVQNF3KSotaBeysZASAX4vbnPb1bcyW+o3GKf6xDoAYXTb1f5eB vkyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=FcfZdyDe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb37-20020a1709071ca500b00715849159c7si1675241ejc.56.2022.07.20.06.51.46; Wed, 20 Jul 2022 06:52:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=FcfZdyDe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239148AbiGTNtG (ORCPT + 99 others); Wed, 20 Jul 2022 09:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiGTNtD (ORCPT ); Wed, 20 Jul 2022 09:49:03 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA19A61D8D for ; Wed, 20 Jul 2022 06:48:51 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 5FC752223E; Wed, 20 Jul 2022 15:48:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1658324928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5SDELbFZivHkdGyHGF1nop4U3jMBC/a0ONji2ciT+Qc=; b=FcfZdyDefl/Euo7ImCUcqieYhONzoiD2qLyGJh5kPiPNtfzkEB03vTNFgxrGMtsRIwWbuH JraLrzdm1V6pCcJSrb5biunhS+MokJDcTYNYiTDcvt7oKVyo6RHhO69AX8Nb0saEk5LT65 T853AvIgyG+uP0L8HfSeQD6QsLiAStQ= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 20 Jul 2022 15:48:41 +0200 From: Michael Walle To: Tudor.Ambarus@microchip.com Cc: p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, heiko.thiery@gmail.com Subject: Re: [PATCH v1] mtd: spi-nor: unset quad_enable if SFDP doesn't specify it In-Reply-To: <43041ef1-2b1b-5729-9611-00964d617f63@microchip.com> References: <20220304185137.3376011-1-michael@walle.cc> <43041ef1-2b1b-5729-9611-00964d617f63@microchip.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-07-19 06:57, schrieb Tudor.Ambarus@microchip.com: > On 3/4/22 20:51, Michael Walle wrote: > > Hi! > >> While the first version of JESD216 specify the opcode for 4 bit I/O >> accesses, it lacks information on how to actually enable this mode. >> >> For now, the one set in spi_nor_init_default_params() will be used. >> But this one is likely wrong for some flashes, in particular the >> Macronix MX25L12835F. Thus we need to clear the enable method when >> parsing the SFDP. Flashes with such an SFDP revision will have to use >> a >> flash (and SFDP revision) specific fixup. > > This is equivalent to clearing the default QE method for all those > flashes > that support SFDP, with implications for those that support SFDP Rev A. > If I continue the logic, I could remove the default QE method from > spi_nor_init_default_params(), but I don't think I would like that. > You could use a post_bfpt hook without explicitly clearing it here. > > Would you please explain more why is clearing the default method better > than using a wrong default one, and why you chose to do this just for > the Rev A SFDP flashes and you didn't include the no-SFDP flashes as > well? Honestly, I don't care too much about this flash. I can't remember any details from this 4 months old thread. Sorry. I guess it is fine to drop this patch. If someone cares, she or he can resurrect this one. -michael