Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1113599pxb; Thu, 7 Oct 2021 00:40:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWygik2OJq0Gq2xKNkH8Ku+B6GT/ON6wlNdcz3MtuR4OegZhqYSDXXjHLBvt3awk+FAALy X-Received: by 2002:a17:906:720e:: with SMTP id m14mr3711976ejk.500.1633592450892; Thu, 07 Oct 2021 00:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633592450; cv=none; d=google.com; s=arc-20160816; b=hHHhHLVo/WmjOrhbrREmA4vhqwpGnBqQENaw5tx5JBgbKJMq8Jc1bLWFnsk+TeB6n9 pX598eOQRg1vPgSAo960LPviGoiWToR/sC6MJWnJPq+oRIJoqG3Xdzs4+szrlupoK2lL Ou6+WTMaAW1pVnhYJ4GKtmZk4PrWaLmdpcqUMWL3Wu4roD6m5w3O3ALfF4bnKgJIcVfP Dn19a/rDEps+xT5/sQBck+tcDJcVkrDBKN0lk09EHAWexNn4OdPMiuLHukrm6145yOW1 W1bb2SE8fSbEWnBpE9DoeGSBV86Iof9+VDpOVzbs3LPn8/Z4YmJuTF7hRG6jKempqc+X fdmw== 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=XjCSY4XhccjbtaclWk/3U2lD3pRMWvVvTqTn+9l+6po=; b=dVYviWZ+ZBveFFHBt1LfyBOEcyqkAKglNnVh0PUmLHa4P2pDrKqNcWwCDUR+b/1zsd 8uT8d8PKJ3kplx6yZd+I+1/zaK/QydQagwWZGw2sy6Hw152tNQvHnY3YueBF4hGTBpas Cw/ekWgHiUALE7GXZkbeCMeqWMbrseXgJ8lG0ofqXeyeBLhJhmApTMiJf+Mj1a3q0Noc vp3T9qT4KJ2nXpyoppelme0DAQ5BMe84MoeHQZvRv8588yhaknNXY3NIembJEosTFfxn tL7FndvjT9N/Yv6HOHT8Okrw6VXnF/ODc2jhjRZp84Ld90uogCrOqYMlIsDtHlXNkF/h 1weA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=WXlwBRgz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x10si27964033edj.155.2021.10.07.00.40.26; Thu, 07 Oct 2021 00:40:50 -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=@walle.cc header.s=mail2016061301 header.b=WXlwBRgz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240420AbhJGHjX (ORCPT + 99 others); Thu, 7 Oct 2021 03:39:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240311AbhJGHjX (ORCPT ); Thu, 7 Oct 2021 03:39:23 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB7CCC061746 for ; Thu, 7 Oct 2021 00:37:29 -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 BD00322234; Thu, 7 Oct 2021 09:37:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1633592248; 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=XjCSY4XhccjbtaclWk/3U2lD3pRMWvVvTqTn+9l+6po=; b=WXlwBRgzZcy5UO+kZECN816WJnCfTYuwc9asjo694LCh6Y5thB033LNI+dj7v87/02kc5Z 9/UBScEaIiDw4K9KkHP1HJ4BNniIdeS4Urb3DZ20uqPA0qZhRuZQcAJWlUPR0xAwEg2qaa 6nsflXPbPtGQeElflFOwUeUMU441QIU= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 07 Oct 2021 09:37:27 +0200 From: Michael Walle To: Matthias Schiffer Cc: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: (EXT) Re: (EXT) Re: [PATCH 1/2] mtd: spi-nor: micron-st: sync flags of mt25ql02g and mt25qu02g with other mt25q In-Reply-To: <0e2ad27b00d85c1dfa489d91b54d2a3af41f5edb.camel@ew.tq-group.com> References: <3258026683c916a3a42e98ba76628228cddacb23.camel@ew.tq-group.com> <969e9169b77bb314aaa2e97789c76c00@walle.cc> <0e2ad27b00d85c1dfa489d91b54d2a3af41f5edb.camel@ew.tq-group.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <6ea1852ddc390cf18db0ae927b88b2b9@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-10-07 09:18, schrieb Matthias Schiffer: > On Thu, 2021-10-07 at 09:08 +0200, Michael Walle wrote: >> Am 2021-10-06 14:32, schrieb Matthias Schiffer: >> > On Tue, 2021-07-27 at 09:09 +0200, Michael Walle wrote: >> > > Am 2021-07-23 13:27, schrieb Matthias Schiffer: >> > > > All mt25q variants have the same features. >> > > > >> > > > Unlike the smaller variants, no n25q with 2G exists, so we don't need >> > > > to >> > > > match on the extended ID to distinguish n25q and mt25q series for these >> > > > models. >> > > >> > > But why shouldn't we? What if there will be another flash with >> > > the same first three id bytes? >> > >> > How do you suggest we proceed here? At the moment there are entries >> > matching on 0x20b[ab]22 (ignoring the extended ID) with the name >> > mt25q[lu]02g. >> > >> > Should I change these entries to match on on the extended ID >> > 0x20b[ab]22 / 0x104400 instead when I add the bits for the features >> > specific to the variant, removing support for other 0x20b[ab]22 >> > variants that may or may not actually exist? Keeping both entries (with >> > and without extended ID match) would preserve compatiblity with such >> > variants, but this approach seems problematic to me as well, as I can't >> > even give a name to the more generic entries (and there is no natural >> > extension of the n25q naming scheme to a 2G variant). >> >> Mh, what do you think of adding three entries and make the last one, >> the one with the short id, as a fallback so to speak. This should >> retrain backwards compatibility, right? It should probably have a >> comment because the order will matter then. >> >> -michael > > Is it okay for multiple entries to use the same value for the "name" > field? In the existing definitions I couldn't find any example of > different ID matches mapping to the same name. You're right, thats probably not good. Ok, if there is no objection from Tudor, I'd say we change the entry of the mt25 variant to the longer one. If there is a flash chip out there which matched the shorter one, but not the longer one, thats probably not a mt25 anyway. -michael