Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4072212imw; Tue, 12 Jul 2022 00:45:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1shLXXEsJaY59P3dCzQGCfKM9PQBYpLZi5ZCn+d9PUV5UIKXsZyYXVIUOMJZVkX8oQvRS5S X-Received: by 2002:a17:90a:5d05:b0:1ef:91ab:de15 with SMTP id s5-20020a17090a5d0500b001ef91abde15mr2689161pji.85.1657611957409; Tue, 12 Jul 2022 00:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657611957; cv=none; d=google.com; s=arc-20160816; b=VrB+4hkJESeAQD1eFy9vF6oEeYfVgRjXT0QTQjWPnfuaC7oKpWHBC+NKzAuEHoPuTq TuiQO9gAEVuVoXtMFeRvXcQwQbO10eW0oBaXqpAGnHCy5HxS7qNd36GCGi0+XJ7NvUB4 FK1uzcQ3LIMcBSkV2W7izPQzvUQPQFE1zeYCQPKcscle4ohESQICOZ+4Uj/CzhQKpQsW FayrdwC7mVqPDPuxBsKWSI/UHjCzNA1uIHjz+EaukC8LxS6VqMz5qmEKkZJUHsjUw0KI IKRcSyS/nULP9y/eyqu+VVfydrJhIFXla0IhesarKYevTpz/NNRO0qkmmL3A9SyY/Pss Onjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iQV1bIfl8FQruMBMeoBcsL27lyqT/vZYQCTpuCzw4Zo=; b=BDRD/iQnyzRMYBq8HsJ6+7/pqbv7oovh4GG3z9qOEZH2WgL8q/DvCnT3vak+vyNA8F 3YTfxH906zw5QnXhXySpWncZX7X9byZpHUFuWAjPOWZ0LSSrruC7m2RbvhhTbMxg4D8e llPeLNkZ+Auy4k1q9rnlydDbJTXNpm9pCF97S1UgkdVXJA6d+90hKb2SAZb1DN1IZkVC Mv+QsY6vHwX1mD925jYB/kIHbumd7O5AqpFGUpX8opr9c3mVyUbqGzzQEaqZcXg6noxv /OLuf2OlF2WygkyQ0KqKUnjBTsgIp1GFFAFimgdsLl+gr4o4hJ8++AI3TY6qp1EsVjHE a/Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=j0KNRpAr; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r19-20020a6560d3000000b004124f034b49si13324961pgv.529.2022.07.12.00.45.43; Tue, 12 Jul 2022 00:45:57 -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=@ti.com header.s=ti-com-17Q1 header.b=j0KNRpAr; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231259AbiGLHXg (ORCPT + 99 others); Tue, 12 Jul 2022 03:23:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiGLHXf (ORCPT ); Tue, 12 Jul 2022 03:23:35 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F69E99667 for ; Tue, 12 Jul 2022 00:23:30 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 26C7N6OL085875; Tue, 12 Jul 2022 02:23:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1657610586; bh=iQV1bIfl8FQruMBMeoBcsL27lyqT/vZYQCTpuCzw4Zo=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=j0KNRpArAEa6aSXJQR8nKgogyKnQl0u53MZMrSEAJk/AZDZ6+2mfYc5yYLMpeYDsa DN1gdmM3XirRW2U5ee/g2EX8YX78HmOXKHHzi0tWVGcc1tDSKoADwnEM+/exRX2cd6 vhzUMqv9WZ9z8BedxzYo0Ih6dNe++AkkYjctGyDk= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 26C7N6is022176 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Jul 2022 02:23:06 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 12 Jul 2022 02:23:06 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 12 Jul 2022 02:23:06 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 26C7N58A042639; Tue, 12 Jul 2022 02:23:05 -0500 Date: Tue, 12 Jul 2022 12:53:04 +0530 From: Pratyush Yadav To: Michael Walle CC: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Shaik Sajida Bhanu , , Subject: Re: [PATCH 1/2] mtd: spi-nor: introduce SNOR_ID3() Message-ID: <20220712072304.icesvrfmem5lgr6i@ti.com> References: <20220510140232.3519184-1-michael@walle.cc> <20220510140232.3519184-2-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220510140232.3519184-2-michael@walle.cc> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 On 10/05/22 04:02PM, Michael Walle wrote: > Up until now, flashes were defined by specifying the JEDEC ID, the > sector size and the number of sectors. This can be read by parsing the > SFDP, we don't have to specify it. Thus provide a new macro SNOR_ID3() > which just takes the JEDEC ID and implicitly set .parse_sfdp = true. All > new flashes which have SFDP should use this macro. > > Signed-off-by: Michael Walle Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments Inc.