Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4177227pxv; Tue, 27 Jul 2021 00:13:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy89x9+hz7Znr2jD8NY0IIkZyu73mRY5l37PbJx7vE69H6SG+qBji+3AAk3NAm6Qep9Pcpj X-Received: by 2002:a05:6402:1601:: with SMTP id f1mr25736039edv.388.1627370034509; Tue, 27 Jul 2021 00:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627370034; cv=none; d=google.com; s=arc-20160816; b=G0ov9p675P+p4UHLEvnMr8I8F+VL5YBukJoZ8G/hAuw3vB7i+af4uA3Fq6HIpa3tAW KUHSm1KP+wtQoNSpQK8P+GI5piKR689+IQM7Q0s/ojNYoDnqRPMmanz+s/scz739klVN ALVugQJYHewsvu3PdjuyZruTRnlSrNM5/C1snYB8ir40w6kTFh95ugf4/eGe4tH8pb3D OMcdchcW1S/CoT4+GUW+L51ntWpyOAnheH4igHMFMAEyrd7pP3mcITaAV/F7NAbfB/ZU jRYd1ct/elReVqZlB7/9cNXFNIFtuu4qI0/V85v/DKMINiPY7M3pCGLiVDgMe0GbxOZB GuIQ== 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=EOJFW/hcqRz7AGRgmL25IuiXB0pKdensyRUsdiGJkUc=; b=gBLk+35UmCDS10rQqSGomHl0YF9rZOSVJxIDd3Z0S0Z1xpg1N0To65R+IvzdlBpnFA qeHkJ7IJk2DpJ/HBrAULu5k6/JYDQHJeYRH9fZ+CxTYYV5ehQO9pYSlfT+y3gCdQY8yF HZD11P4O4b7+gd6YcUKYvi9nzL8TG64JKgavxHLjOcDJ/9KRjHcXPPNlQpDFoqYEUCJA x5Ws0+y3KOYKyDO3OIMRd7Ugw9o3Re+lFYQikBIu0+RPSBIq81cP5O1v36Ge3ahElW3N 4Hl4WfnbMxtatqV4snK65YMD6XfYxejPHB9F4m+pQQayXNcqB5Lq4WcyUlzr1rDbrz2s wLyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=FRBttgS1; 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 dm18si2105590edb.411.2021.07.27.00.13.31; Tue, 27 Jul 2021 00:13:54 -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=FRBttgS1; 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 S235729AbhG0HJ5 (ORCPT + 99 others); Tue, 27 Jul 2021 03:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234803AbhG0HJ4 (ORCPT ); Tue, 27 Jul 2021 03:09:56 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45E3CC061757 for ; Tue, 27 Jul 2021 00:09:57 -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 204F922234; Tue, 27 Jul 2021 09:09:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1627369794; 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=EOJFW/hcqRz7AGRgmL25IuiXB0pKdensyRUsdiGJkUc=; b=FRBttgS1hRR69hjIKmi0XFB4cO3NI6oDhr6RpxoZAuCt0K7N0h3I9jS9ueGlrgYQ70SFNu btGz4vze57Q466VTcBdC8Qwa82G8pu13diNNG7qBhRojLDvUdaA44WJcXGVvycpAA576I1 919MAB1DGYKZ9Tqvx1NmFVn7172rwyw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Jul 2021 09:09:53 +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: [PATCH 1/2] mtd: spi-nor: micron-st: sync flags of mt25ql02g and mt25qu02g with other mt25q In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > Signed-off-by: Matthias Schiffer > --- > drivers/mtd/spi-nor/micron-st.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/mtd/spi-nor/micron-st.c > b/drivers/mtd/spi-nor/micron-st.c > index c224e59820a1..d5baa8762c8d 100644 > --- a/drivers/mtd/spi-nor/micron-st.c > +++ b/drivers/mtd/spi-nor/micron-st.c > @@ -181,11 +181,11 @@ static const struct flash_info st_parts[] = { > SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | > NO_CHIP_ERASE) }, > { "mt25ql02g", INFO(0x20ba22, 0, 64 * 1024, 4096, > - SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | > - NO_CHIP_ERASE) }, This bothers me. I'm not sure how this will work. I see that chip erase is command 0xc7, but both the new and the old flash just supports 0xc3 (DIE ERASE). Did you test these changes? > + SECT_4K | USE_FSR | SPI_NOR_DUAL_READ | > + SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, > { "mt25qu02g", INFO(0x20bb22, 0, 64 * 1024, 4096, > SECT_4K | USE_FSR | SPI_NOR_DUAL_READ | > - SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, > + SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, > > { "m25p05", INFO(0x202010, 0, 32 * 1024, 2, 0) }, > { "m25p10", INFO(0x202011, 0, 32 * 1024, 4, 0) }, -michael