Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6282000rwl; Mon, 9 Jan 2023 06:32:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXvVKJae+SEXpd4dIElhzzk+VM/6GT/sBeWgyeJSRmSJaGYVkOtjokBc7WGCVqGIVFnhru95 X-Received: by 2002:a05:6402:28cd:b0:46c:fabc:5897 with SMTP id ef13-20020a05640228cd00b0046cfabc5897mr54770790edb.7.1673274774066; Mon, 09 Jan 2023 06:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673274774; cv=none; d=google.com; s=arc-20160816; b=KL0Vd8U3Raa7+dIC7SdiSRwvYdYFgh1vv12qI17SkonUbWZ6o3zJfu+AWRK5fOn1J2 NOpiP7rt1uA8Ul3k79z16eWoMAU5oFjIZ9p+mRhL4NLZzO57tAVtlYPCPiAMnd4SrqmV 9EepsZbtqlZFxK38a4bCsiG1VpHLwt29Ogo5yMOxpJ3Ppc0pn9nj1YHHNgMjSU2nXqvq +atUaFslU4Ci1vLXZk7Jg1y7gJvLFMp9abfNSLkAKIY78XBt3Mo4xL567KDNKzVoUluz jy5G5WJpT8nXka9eu5AwUlwTnWWxIVWQRoKOMSi5wy6WZ8xURJ9vdMwSGTeSD21KYRh2 LQGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=DyTntcXGnalnFdsHW0+05dfmoCRtXXqGoOJ38tx3Qjg=; b=xAaGN4JbWtEbgJ4uo9VQxfR1l6rPg1OW6o9j5pOFD6wEuSgO81fDX881u1EPStqP9s XnJgz5G+6jYSFO1+y45/2tWqYUfjNTPCRfs3p+IRkFRkXGTkV2l7S+6ugOIzowC2DrJb CtUeOjdsdPGhdfQuIZ28AqY4MfxHYbnyqSVQLPT5Hzp3lSyvABhTYy8EA5aRnTVBsZLo V8+TZo01bMurWU1QwSuSQ5U8UFJo6N+apQL+4+4RTfSsWMb2vCQOIAEJ81h/CJPaw7kh uptTqpF77qRInmS6hpwTixYLSYloefmLvgPJjkmU48eFCxoAFz6U0mus9Ogql4ZVxJpM TYew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=rHvEXkd7; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt33-20020a1709072da100b008318885e1dcsi10021954ejc.9.2023.01.09.06.32.41; Mon, 09 Jan 2023 06:32:54 -0800 (PST) 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=mail2022082101 header.b=rHvEXkd7; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231288AbjAIOVA (ORCPT + 53 others); Mon, 9 Jan 2023 09:21:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233084AbjAIOU1 (ORCPT ); Mon, 9 Jan 2023 09:20:27 -0500 Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF44515721 for ; Mon, 9 Jan 2023 06:20:25 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id D1C9A125C; Mon, 9 Jan 2023 15:20:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1673274023; 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=DyTntcXGnalnFdsHW0+05dfmoCRtXXqGoOJ38tx3Qjg=; b=rHvEXkd7pS/Yc68kEcJCrc7wVwe5mQnP9xVyS6z19jMT4iyTLn1J8IcfMCq0MlQuPRJqxj 6d6tFkhSMyxGcsEvCLpnPlATCUAe5JLKpam3ME8xiPDiTeFOgwnpURNJINi84x/MO+Ob1s YBfDxgtw8E5hltVraC/dHEVPLIt/OL/MYgcjjexATK4Mif2rnSYB+HS51Q8TPa68mLhlYy Y5Xv6nrwjoSjo2c8vKKpxkY/OlYOu0xfHiUPO5+TjPYCF2ZSUyMYZuYphVupx4v+ZUZUf8 /XZfo6qYAVyxviYvt2m97XULJvd3s8gngau81UZi8UhkJOFC54rSN8iWPKu0Uw== MIME-Version: 1.0 Date: Mon, 09 Jan 2023 15:20:23 +0100 From: Michael Walle To: "Usyskin, Alexander" Cc: "Winkler, Tomas" , Tudor Ambarus , Pratyush Yadav , linux-mtd@lists.infradead.org, Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mtd: spi-nor: macronix: add support for mx77l51250f In-Reply-To: References: <20230107214345.2524851-1-tomas.winkler@intel.com> <5076cc829fb5a9c5959687a401b120ca@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <6b4780f5366de7f0dd59da0ed4f9a948@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 2023-01-09 15:09, schrieb Usyskin, Alexander: >> > --- a/drivers/mtd/spi-nor/macronix.c >> > +++ b/drivers/mtd/spi-nor/macronix.c >> > @@ -100,6 +100,8 @@ static const struct flash_info macronix_nor_parts[] >> > = { >> > { "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096) >> > NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | >> SPI_NOR_QUAD_READ) >> > FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, >> > + { "mx77l51250f", INFO(0xc2751a, 0, 64 * 1024, 4096) >> > + PARSE_SFDP }, >> >> With the newest generic spi nor driver [1] this patch shouldn't >> be needed at all anymore. Could you verify, that your flash will work >> without it? >> >> -michael >> >> [1] >> https://elixir.bootlin.com/linux/v6.2-rc3/source/drivers/mtd/spi- >> nor/core.c#L1637 > > Tested now, the v6.2-rc3 recognizes the chip. > Does this mean that all SFDP-supporting chips will be recognized > automatically? As long as you just want to use the standard features described by SFDP, yes. There might be lacking support for some SFDP features, though. These should then be added to the SFDP parser. But, there are also features, which aren't supported by SFDP, i.e. locking or OTP. If you want to use these, you still need a flash table entry. -michael > Tomas, we can abandon upstreaming effort, I'll save the patch if it > will needed by older kernel versions.