Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp993026iog; Thu, 30 Jun 2022 14:38:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s9Tj8kQwt3XBzx1FZNa77ffjZwSnH1bsm5RzYHn8Z+GBICADXXKSs7yoqbLLAM+Ya2r7p9 X-Received: by 2002:a17:90b:3812:b0:1ec:ca8a:f15c with SMTP id mq18-20020a17090b381200b001ecca8af15cmr12411369pjb.187.1656625088940; Thu, 30 Jun 2022 14:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656625088; cv=none; d=google.com; s=arc-20160816; b=jZY88kXx6Q8jNQheFjSzN2mBDqDDoD5eMbdK/VaexDj00Cfr0j5w/yUNGQjjYouNmA 1xtzEijo0r29dhyseEb1Q49m8bTgqWAuVi/thv+l38LmALllEZ/PgVKF75C6n1g9P/CK wVE/TvypLX9ADvyk0kM9mGrrlOr9WUH/SLRsJv07OJPhbS/9kPZ3XJD7b3tYIl8DhyF0 o1u9lP62Lkj9Q7Y8Kc/DikfNBcVrYZcP2KbZes4VUgaT3+Jr/qPYgeXFbWeViCb4CMAW Yxd24tADjiSSvcJQfhDu8T++leVeV1K/yk1wp/fYr13QytquZqngBc0DI3ntkxZZVs83 FwvA== 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=jYiwArxJOPIMKTn3ckicwMJjp+sAHT0Bcl9xbjqkMYA=; b=bi7EdSAvPtAFzExbnCIy2ib9Q+ZzQZ/3wCyWaKvG2XvElMTLN7upIkT9Y3Mbt1ucWC HNTsQOkqpLu/dFBWG+vZ6N4eTgjqS06pBN4W6uOtU9CO9BEHXSZynYU2PtHoV1paDntE PeI33t2aUUQwEbqAUYhYBw091uvHOsD1c+td2QydkA9nqauRmqPlT1IBmUfaZyX1MBGL EBuWSYUSAGgXtgSIkLpbuXCUcxmGizYElPIXyBdELLL7qkMRNjlYa8HktA66V7hPNOWS Twnu/0ZAyz/HnWS+BsSkzU6mcc8+L/OEQl0IFnLju5ntm+aKKaywjKk0Nj1fcCAzd8mp NoPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wNn8I5D1; 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 n16-20020a17090ade9000b001ea941e79d0si6981489pjv.156.2022.06.30.14.37.57; Thu, 30 Jun 2022 14:38:08 -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=@lunn.ch header.s=20171124 header.b=wNn8I5D1; 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 S237343AbiF3VJM (ORCPT + 99 others); Thu, 30 Jun 2022 17:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236849AbiF3VJL (ORCPT ); Thu, 30 Jun 2022 17:09:11 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E13911F2E8; Thu, 30 Jun 2022 14:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=jYiwArxJOPIMKTn3ckicwMJjp+sAHT0Bcl9xbjqkMYA=; b=wNn8I5D1TAgaOQx931cxYaKLD/ s+nyAYCMj58qPvKH2z879Vw3j7rwFWiRe14OJ80h5uUpyi3PrbuUNlAL6ApAa3FC9GWnT3EA4VNvR C4h+kldixbWRsvQFRcg8B18CdVNVl9WB9YB2wZtg9AZFr8mfhTvd3cVR5Ooh2kjv7IzI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o71Oq-008r5z-Tg; Thu, 30 Jun 2022 23:08:32 +0200 Date: Thu, 30 Jun 2022 23:08:32 +0200 From: Andrew Lunn To: Michael Walle Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Horatiu Vultur , UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 0/4] net: lan966x: hardcode port count Message-ID: References: <20220630140237.692986-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220630140237.692986-1-michael@walle.cc> 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_PASS,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 Thu, Jun 30, 2022 at 04:02:33PM +0200, Michael Walle wrote: > Don't rely on the device tree to count the number of physical port. Instead > introduce a new compatible string which the driver can use to select the > correct port count. Does the silicon have an ID register which identifies what the device is? Andrew