Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp467856imn; Thu, 28 Jul 2022 06:20:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vWTcr/A9Eng+rl9RaiGf9cpJeanqVHxiGiYe3wz/Eop4Arj5LUKFJNjbWP9HVaf99Y3WP1 X-Received: by 2002:a17:907:7f24:b0:72b:8e8e:11e with SMTP id qf36-20020a1709077f2400b0072b8e8e011emr20721920ejc.429.1659014421393; Thu, 28 Jul 2022 06:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659014421; cv=none; d=google.com; s=arc-20160816; b=oC1si5oQU5kLfshgCgBBT8cDn536qtOhmJekJvpalwjqWIu+NBBbB0/ZUZ7llm6BzY DkCkKSvsSlQwHYC7FWKTFJ1rShikMSj2Yeb6ODChHj+5W2nMZELF2P6EdMs+3QPBirm1 qquQQHWk48doBUDXjGZ6r+sttZM0UvtcHfY16uXIPDoA5QCJZYc0E5xODSX2ah+0CWjC 4FH/+/b3vj+5ksVkmUQ/QrM4k1Jm7jet4LBrAKpoj80dLTMP58Y3Wz6LGQHneYwHWhBb 0JpZ3wAPyqQDk+2loaN/6FnyHIUqnZZn0ulD+zAn/oep4dv/hKXyQ7TGSqqdla2cSCSR 3BfA== 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=+AM9Ba+r0a5Evo71nndoB7O7xd8smBijytRfC8ILpJU=; b=vtd8gcvxA3VOFWLNvjEAPdMTZ/56IqEna53sab3pE1d35zX9riHcwsuZs7xHaB8ejU bdi/l/rPAz5kqISchzPrcjP+i9IgXqb+9npC1ZgWdeC633uaZKj900zug3nDIuHSmsY4 HBmOCCUWhPqJ1Kq03ls01qBC7mAoiMZh1mMShfbJ0+iedL8UYNa7/KEkRTTM0u0rTfsY mkdqQHOS4TvaSshk9NytlV5A283+c23BuA8M0tqYJ1SYTe6HpktucAhbfwoCWGQ1tSWq O2DpDZq2DoOdU5VPVSykZBtJK0kf04qLSVGxl8jmBQbCSqwZt0Qh+56k1QNy7Aw7kcsP cIhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=dVhtB81c; 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 d12-20020a50c88c000000b0043bd77de21esi678535edh.51.2022.07.28.06.19.55; Thu, 28 Jul 2022 06:20:21 -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=dVhtB81c; 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 S239065AbiG1NMO (ORCPT + 99 others); Thu, 28 Jul 2022 09:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236688AbiG1NMN (ORCPT ); Thu, 28 Jul 2022 09:12:13 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A2232BD3 for ; Thu, 28 Jul 2022 06:12:12 -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 4F0F12223A; Thu, 28 Jul 2022 15:12:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1659013930; 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=+AM9Ba+r0a5Evo71nndoB7O7xd8smBijytRfC8ILpJU=; b=dVhtB81cBL1x5UE2KhrE4NpC71/op+Y/56XkmATxClbo2yLLQD565meQ3DwMkXc5uCMI8O /iinNdftYB70nUEbv4jIG3608GQozd5KNeh4qgrtVXbk6rYb+2CXer6rg3nxbaZRy2+83V PjdsAS6kh9B8+UPJn+usOrE88Jle6qA= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 28 Jul 2022 15:12:10 +0200 From: Michael Walle To: Tudor.Ambarus@microchip.com Cc: p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, quic_c_sbhanu@quicinc.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mtd: spi-nor: introduce SNOR_ID3() In-Reply-To: <41e6b74d-6973-60da-1556-82a1e879ffd4@microchip.com> References: <20220510140232.3519184-1-michael@walle.cc> <20220510140232.3519184-2-michael@walle.cc> <160ddac1-6d0a-c922-1380-09e7823a285e@microchip.com> <41e6b74d-6973-60da-1556-82a1e879ffd4@microchip.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: 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 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 >>> +#define SNOR_ID3(_jedec_id) > > How about SFDP_ID3 and SFDP_ID6 instead? Yes, probably a better name. I was also thinking about splitting the id in vendor, device and additional bytes. But I haven't thought of the actual implementation that much. Such as: #define SFDP_ID(, , ) #define SFDP_ID_FULL(, , , ) Couldn't make up a better name than that _FULL for now. Happy to hear suggestions :) -michael