Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2296793pxp; Mon, 21 Mar 2022 16:11:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaWmm9Ve939/9VUxQSb8hsFO+0uTy4VRyJy2eOXReaWYrW251LJPmn4YxjGXyjMaV2s954 X-Received: by 2002:a17:903:2cf:b0:151:a932:f1f0 with SMTP id s15-20020a17090302cf00b00151a932f1f0mr15204085plk.130.1647904294517; Mon, 21 Mar 2022 16:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647904294; cv=none; d=google.com; s=arc-20160816; b=oUhHeDRU45tZ6h0HSR8XoimXliwiZOnJBuXA+qmHmCscw/8na8XZ0H0qAhtuzV+Vdn mOkt0BERCJGaeZb1mQPkSy1eew4whZmjjuOmoX/Viq1haGfBd6sC6B/zl+vd3pjLvb0/ 6btf/EUEf7QCWlIoCsejPGHu3BWs3OwGSej1Jo8Z/7XRRBKeGrijkBrxu4Hxt3POHCRW fgY2VKGGzCm047tragXp+RZTu4xd/fQSQtNHcw3Mw+4eZ8uXhpyAY8KfFBAts1zz2mAm zoRX+/CqdN2RU7O5ogIdLZsS+CSRLYV1BJFsCLqYssekXQPqw7h7hwGkDXWwb9pL3vdL 0KPQ== 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=6hJ/5sK25zf8GQXvZeKEtNoEBPIsdJhE1Zr7R6mM+D4=; b=hOTTxOf2a3JDGNWHmYyY7MMVIuFVITv8XbDgMQs45kyKe3EXLFWwh3RVLbXdLDrPXB +m5RLAGeY1i2ZgoQaeq6+tlgNE5qWp+67d+6gVxFbE75lGxk9YbNMonKJPa2N9b4qI1e dDND6MeesbKbEIgz0lS81g6x4+r+P8EZNc9r09iZOa8U4o7ollanm++y8HGQIPhxHoYS eIFIQsMCCCp7RPjvaIgCHON96oKNnNQHvPA3Bf0s67sOb45wvGB0cbtsAJzP10vGQ1hn eGWLeV/6gLuwnIp6T2sdeQWIQuOx934IsLLyPVnRC5QWHl0C799cxFJwmIYjF3pnrYUS saGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dhq+qEZ8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p24-20020a634f58000000b003816043f049si14059638pgl.574.2022.03.21.16.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:11:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dhq+qEZ8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5F577352E17; Mon, 21 Mar 2022 15:09:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347048AbiCUMCS (ORCPT + 99 others); Mon, 21 Mar 2022 08:02:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347076AbiCUMCR (ORCPT ); Mon, 21 Mar 2022 08:02:17 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB99F56747 for ; Mon, 21 Mar 2022 05:00:51 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 22LC0aw2074420; Mon, 21 Mar 2022 07:00:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1647864036; bh=6hJ/5sK25zf8GQXvZeKEtNoEBPIsdJhE1Zr7R6mM+D4=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=dhq+qEZ8ub0hyqT2Df0fM2R7UMUjyqwbSaH4tGZc61VefHegc8djlYFHMxP1CDs9i xXE7/zQNFA7jcTAiQF6MDbn5DVu3dBe/G65QK0Ne9FapqcSgd/aYBaDtvEEMB8MPh+ B7m8LHIsrbq4Kx1G7QFSZUjKMKPfhET2L62AZLPs= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 22LC0a7Q030217 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Mar 2022 07:00:36 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 21 Mar 2022 07:00:36 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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; Mon, 21 Mar 2022 07:00:36 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 22LC0Z9P005787; Mon, 21 Mar 2022 07:00:35 -0500 Date: Mon, 21 Mar 2022 17:30:34 +0530 From: Pratyush Yadav To: Tudor Ambarus CC: , , , , , , Subject: Re: [PATCH v2 2/8] mtd: spi-nor: Introduce spi_nor_match_id() Message-ID: <20220321120034.aemrcpo6xvjd3znm@ti.com> References: <20220228111712.111737-1-tudor.ambarus@microchip.com> <20220228111712.111737-3-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220228111712.111737-3-tudor.ambarus@microchip.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 28/02/22 01:17PM, Tudor Ambarus wrote: > Similar to spi_nor_match_name() extend the search of flash_info through > all the manufacturers, this time doing the match by ID. There's no reason > to limit the search per manufacturer yet, do it globally, search the flash > in all the parts of all manufacturers in a single method. > > Signed-off-by: Tudor Ambarus Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments Inc.