Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3845155ioo; Wed, 25 May 2022 09:15:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhDiL0uPACIqNmuMUAlhbN6oqMpwqCw6fRtfjMDXWv14QxKiXpRSJySvychFhbI2Axtcey X-Received: by 2002:a63:d855:0:b0:3fa:6f09:a3f6 with SMTP id k21-20020a63d855000000b003fa6f09a3f6mr11930050pgj.342.1653495325529; Wed, 25 May 2022 09:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653495325; cv=none; d=google.com; s=arc-20160816; b=0VHc3FFUHqkeCA4AnodRZiukLK8UamIj2JTBoJS2ACZzovi2ppaN48Uh8dBNh88UW0 TgFkyOsVFguw7GecRMJstTbfERtlJj60E1+ctPQLEFxz/nzdGbNwcHTs3byP4Ih3av7d v9sIPlm1C1lqSInvV615XtgLEhtyoLwp/7lvRbe1G3i5mvgtz1uBnxlnq/z//kvrl8ac NxDng0unUKCpO+6laAvJhODocL5J/ysa2osursKKnz0oVXwW+FR8l/yixdwpPfgcigUB EObLoctARLdBvsSzKdSFVF9PRgxfgI8YxHogpAcwYqG5lG4+ilvmsIwzEP7T7K1lkZdD GlSw== 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=BCs0HAhZARemmsGo2G3uYjUYYZKrxsWqOtnmQSTd4i4=; b=N6GWOKni9g9yKIX3ECAT8ud4YHJOmFqyNYzWjWiXnOGfMQWneRgrTbA+QueFXOJB1M 7vcqNZc8f8aanXHF9K9h8hZ6vlxQ97+05ViTdRh/joUB5UoNjJBWzSFRv1C5oaW/q+sA qCKUYEapkcIjg2keQdOpzPI52nEx0cMqfr5hpir+PeTd037ZFbUr7aqoPUAzirWNYHPv xAKy6bYri994FowWOeZODm0OYRlnXH+HQCEx8ipAdf81lB4vzNQNx2zEjPu4qtUODxgT rVblMuvoY+4p9XkHqF3ObovOqgumLPXY7ww0v108P8duxq0XW+ZCY2wzZzf+MGDkzu2Z /n4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=qPSxEn4u; 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 g12-20020a170902740c00b0016151c9be11si4048707pll.468.2022.05.25.09.15.12; Wed, 25 May 2022 09:15:25 -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=qPSxEn4u; 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 S240718AbiEXWhW (ORCPT + 99 others); Tue, 24 May 2022 18:37:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbiEXWhU (ORCPT ); Tue, 24 May 2022 18:37:20 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50275338BE for ; Tue, 24 May 2022 15:37:18 -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 53AF4221D4; Wed, 25 May 2022 00:37:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1653431836; 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=BCs0HAhZARemmsGo2G3uYjUYYZKrxsWqOtnmQSTd4i4=; b=qPSxEn4u8PQszAO0bIWyhCcQ2fFkT1WRWKaFop4Ned9HNlrWohdTRSlwViw9Uw2wVywxYD QA9m0ZXsWTsfY/HgMqkRqQesg5m2Ej4NQpUxSUhqGLoSPPf+RjlcYl8+MADAad+IFX/c3p sOy3B/P1jOT4sO8fNi2cQ6ZhXg5xtBs= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 25 May 2022 00:37:16 +0200 From: Michael Walle To: chf.fritz@googlemail.com Cc: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Nicolas Ferre , Alexandre Belloni , ClaudiuBeznea , linux-mtd@lists.infradead.org, linux-arm-kernel , linux-kernel Subject: Re: [PATCH] mtd: spi-nor: atmel: Add at25ql641 support In-Reply-To: <48b49de3712267780916b665d3b2a3323e6f10ce.camel@googlemail.com> References: <48b49de3712267780916b665d3b2a3323e6f10ce.camel@googlemail.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <0123ee0e70df13b340230a38cb44548f@walle.cc> 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,T_SCC_BODY_TEXT_LINE 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 Hi, Am 2022-05-24 21:20, schrieb Christoph Fritz: > This patch adds AT25QL641 to the list of supported nor flashs. Please mention on which spi host controller this flash was tested. > Signed-off-by: Christoph Fritz > --- > drivers/mtd/spi-nor/atmel.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mtd/spi-nor/atmel.c b/drivers/mtd/spi-nor/atmel.c > index 656dd80a0be7..dfbc12071093 100644 > --- a/drivers/mtd/spi-nor/atmel.c > +++ b/drivers/mtd/spi-nor/atmel.c > @@ -186,6 +186,8 @@ static const struct flash_info atmel_nor_parts[] = > { > .fixups = &atmel_nor_global_protection_fixups }, > { "at25sl321", INFO(0x1f4216, 0, 64 * 1024, 64) > NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, > + { "at25ql641", INFO(0x1f4317, 0, 64 * 1024, 128) > + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, This flash supports SFDP, please use either SNOR_ID3() (you'll have to pick my pending patches first [1]) or use { "at25ql641", INFO(0x1f4317, 0, 0, 0) PARSE_SFDP }, which will then be replaced with SNOR_ID3() once it is available. > { "at26f004", INFO(0x1f0400, 0, 64 * 1024, 8) > NO_SFDP_FLAGS(SECT_4K) }, > { "at26df081a", INFO(0x1f4501, 0, 64 * 1024, 16) -michael [1] https://lore.kernel.org/r/966de7ad5f563f9a29db91c5309a71c6@walle.cc/