Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1120558pxb; Thu, 7 Oct 2021 00:53:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbTCbwroSjRMAI0c34fRKEexhrh8wNmORKIY6dUfp57m1X5yTGhwR9+dRQQFOfggc5pTG0 X-Received: by 2002:a05:6402:2682:: with SMTP id w2mr4194605edd.185.1633593198901; Thu, 07 Oct 2021 00:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633593198; cv=none; d=google.com; s=arc-20160816; b=hjitCQHAk+gDZR188Z4L6R4joE4NgRJZC8A4hKfK84m7rRZuL3uHerSSTaFnC9FzjG DjBloQqrWauPzfegHElcpKO+HK3qLFdOOUk2WhNvy2XFUvskUK5QK0GUmpr4E4wSmciX xItEfGTK8bgFPp+zIfg86K7E2okgatbB/8GkeoqrWV3PQoSDh4jSOpd6p3R5jqn5Kz7V bOVt2QuEh8LI9dHenhI++//acfiGyyoCwxsWGaX20umpsHiGpYfVUvMiCKkHDybWxtvS xp2bUthU8udu2WpReaGF7ZAqLSpbhMlizUGs9SLpGGKM1jpGRcx9BWOrAFtYbLsqwrh9 xcXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:dkim-signature; bh=uScYYFUX8iG0TWB1RqIb8XXKjjNY6/uZlWQo8MkDwlo=; b=0OW4Pgq8bZyxs3387BxSwWRalNrJ+Mo73SBSpzA5djaf9zJ6o5DdyXkQ1CI/8eJjFR wrb6Sj+UPjDBhayZ+51XK3M5VUuT+34tWUFU4Q0L/hP9UsXsfPCyyDjNVaF66Jo01ZFM /weKb2noMsZVzzXaBlG+hMhnZFlH+DMDWQpVKfjpBLxVBsi0SLscV7bOOjRUY0iqnAuT S1hLcWd94ZDTiE1Q10j3h2XrQaEfAkUZgjQpXRUP2nIWA1I+p1zSIMHJPiMnI+VT5uQA IFj9F3A58sYPZ1JKWUhYkFRlyJPwL8eSLN4IK4rAkU2rECjFWIhGS5eWRclL4HtnWN3A W5bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=X5Gy3+5x; dkim=pass header.i=@tq-group.com header.s=key1 header.b=SZ5F1wcl; 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=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq21si31939655ejc.378.2021.10.07.00.52.55; Thu, 07 Oct 2021 00:53:18 -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=@tq-group.com header.s=key1 header.b=X5Gy3+5x; dkim=pass header.i=@tq-group.com header.s=key1 header.b=SZ5F1wcl; 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=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240316AbhJGHUU (ORCPT + 99 others); Thu, 7 Oct 2021 03:20:20 -0400 Received: from mx1.tq-group.com ([93.104.207.81]:37348 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240221AbhJGHUT (ORCPT ); Thu, 7 Oct 2021 03:20:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1633591106; x=1665127106; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=uScYYFUX8iG0TWB1RqIb8XXKjjNY6/uZlWQo8MkDwlo=; b=X5Gy3+5xB6lUayUAt7HN9+sht9hYF3djFqiS7i4fqbI0yvGgn/VwhwCm uztSMuH/g6Crb4M3iHfga1/wpNohIjEtpC+YSXRbRoIy2ytbKWX5chEyg 7GHbjzInJA/bByIjtOVZhCzdQcf12eOYNlgxq8ITxRpLr9Zz2dkluFFnD semP1tdEBn0vhG2PLFn4DT5WJMxuO5hGXL3FDifdQwt22bymBdRGTfwPI acjpNFaNfy/n3JeiKV70I4P5O41Tvl2IbWsJlJnHmEAgEJy4h1paFgTPj mF13JJ1dZktUQ1hK3GPK/fnEelOKUVujOa4n1bQEr7b3y7ePBKdxioO9p g==; X-IronPort-AV: E=Sophos;i="5.85,354,1624312800"; d="scan'208";a="19910223" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 07 Oct 2021 09:18:25 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 07 Oct 2021 09:18:25 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 07 Oct 2021 09:18:25 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1633591105; x=1665127105; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=uScYYFUX8iG0TWB1RqIb8XXKjjNY6/uZlWQo8MkDwlo=; b=SZ5F1wclGGxBTyZbeYQbiYWKd7FJHY3Mi/0iF6o3P5EjVnNLR7H3I3x/ doL0zsLtsJpJYnourchCsFxOh7Vu7h8doPNXkn25DHXe7zv//rO9+Xy9b B1pWnd5y5OcRANs0jsyDnUi87D47DlFwpyY2gJZ5fBjj8zqYtdNfbG1H2 8lkdSe9lUB5Yfwb+RHkhYpphDxUskhXPIYPYbwSKWfqJhqzcYA3HXjHlo 5SECyST0JbydlQh4UYDN5JzEJxS2ptaP+Je5PYHi0r8KYY++aJH1GbMqq 4oYfvwASbiC8oMGqIxTiNY9Xcl93nic7EDArYWSKjTy5CbseDjGuhbv0y g==; X-IronPort-AV: E=Sophos;i="5.85,354,1624312800"; d="scan'208";a="19910222" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 07 Oct 2021 09:18:25 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.121.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id 02C4B280065; Thu, 7 Oct 2021 09:18:24 +0200 (CEST) Message-ID: <0e2ad27b00d85c1dfa489d91b54d2a3af41f5edb.camel@ew.tq-group.com> Subject: Re: (EXT) Re: (EXT) Re: [PATCH 1/2] mtd: spi-nor: micron-st: sync flags of mt25ql02g and mt25qu02g with other mt25q From: Matthias Schiffer To: Michael Walle Cc: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Date: Thu, 07 Oct 2021 09:18:22 +0200 In-Reply-To: <969e9169b77bb314aaa2e97789c76c00@walle.cc> References: <3258026683c916a3a42e98ba76628228cddacb23.camel@ew.tq-group.com> <969e9169b77bb314aaa2e97789c76c00@walle.cc> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.