From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9788ECCA473 for ; Thu, 30 Jun 2022 21:09:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237349AbiF3VJL (ORCPT ); Thu, 30 Jun 2022 17:09:11 -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> Precedence: bulk List-ID: X-Mailing-List: devicetree@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