Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp953774iog; Thu, 30 Jun 2022 13:41:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tyCzxoZo4Tr7lLOdfi2ZE8LWvriTZQsqW1KBHoQy4fX3r011IGihn3rog0F8I2TFvhAMeA X-Received: by 2002:a17:902:b188:b0:16b:9dbd:319a with SMTP id s8-20020a170902b18800b0016b9dbd319amr11009177plr.9.1656621713302; Thu, 30 Jun 2022 13:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656621713; cv=none; d=google.com; s=arc-20160816; b=LTAlkwpmw/xpW4B7/DAWmGGuiDgYx1IUAAUsfpv5Fj4AGMILRLnus90X0w4BppLkp0 2CS4WLBlWo0okwEl8+djNllOV6MPNmzogfDHBVc1+kjqF9faTCpK9MAbTJtTxGd/H0Ch prsxJzyp2E6M2tQTn7DUEsdq9i+iSs/CpWGQegde09qsGv8UZRKb4xJbkhZx5JlLnwOx 8GBJXjf2rRBv/XRp+dpV5R1JcL1GvRAb8pVxhP/J6ybrIgS99fJYJPGpoJ8bLtFZx06D Ppge/V0VyXMpvdk+WRGLokI078usyU8G0XCjIZB6Vu03iJ7qHjgzH+UoCcypwzoFB6Ww xSsw== 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=Y8F4l8l/owfVwSkmpTv5kkHg9ni6CtimarKHJ4r2Sio=; b=QLoAAPkP/FWki//8HQCwQau0HIv2XbWvEqU8tJUHapH2tftiEdRUQf6kYBvnXWyWAw Fuc8xoSQ8QKTlBx1k1Jc/xlE4nPJ/27h9BxGWgy+keKjGpOWUcpBPa5inG7HeP+tI9QB DK0/P4UQyFHdGrwrjXVrlwHJhWj2K2I9N5SNDPVKCk93AXq8Te6B6MzsN0MRfx+45BP1 2yGs9UZOvMpCaFNNRV7QoouH1qkNuxjHSd5HYjnNDHHN19iuan5ed0yP4eazA0E6eQOK Ogz/l2oANyeZRljwkjuHuRgmj6g0INtj9e7XprCqz5Fif3fMO+xI9/9n0U3ZaFSRi0y5 0Ang== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=VKHeF8RN; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a635848000000b003fe4055fa69si26841744pgm.306.2022.06.30.13.41.41; Thu, 30 Jun 2022 13:41:53 -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=fail header.i=@microchip.com header.s=mchp header.b=VKHeF8RN; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236932AbiF3Uko (ORCPT + 99 others); Thu, 30 Jun 2022 16:40:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbiF3Ukl (ORCPT ); Thu, 30 Jun 2022 16:40:41 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C69B22DB; Thu, 30 Jun 2022 13:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1656621640; x=1688157640; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dLHwojcIwhnxNiJZmRhvdWkTN7FOsnP5rdFn+0H9dDI=; b=VKHeF8RNBqZIcBwicqtq9t42AcBwiu4mh6kuKKXsu8Ssx/KBYBqFi9dc phuFJjWHNzTgS0RX7eUgJH3D6rPeJkPxlfayDVHjtWFDOfz6MoGJETzsY XnNurJH1j3uNp5ledT8EWNf7opWzkCRr9Q+PRHdG8SZTw5vvsuR6HqdQL u4xcNw7WUE0a5XZvivGM0p7uDCmtaFT11BFiyoMM3QszT5Iw+kE368l0n 76M5dFLW1MebWxd4x7dp4V4LRoDt9i1C7KCcJ1+jg6HswY4fd82DTzPv0 psrbbbVQfX8TQwV/pzTDmtwK8dKGfrxExAh8IFEgw487z6vbXrkgUZ+1d g==; X-IronPort-AV: E=Sophos;i="5.92,235,1650956400"; d="scan'208";a="170590192" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Jun 2022 13:40:39 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 30 Jun 2022 13:40:39 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 30 Jun 2022 13:40:39 -0700 Date: Thu, 30 Jun 2022 22:44:33 +0200 From: Horatiu Vultur To: Michael Walle CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , , , , Subject: Re: [PATCH net-next 0/4] net: lan966x: hardcode port count Message-ID: <20220630204433.hg2a2ws2zk5p73ld@soft-dev3-1.localhost> References: <20220630140237.692986-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20220630140237.692986-1-michael@walle.cc> X-Spam-Status: No, score=-4.8 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_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 The 06/30/2022 16:02, Michael Walle wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > 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. > > This also hardcodes the generic compatible string to 8. The rationale is > that this compatible string was just used for the LAN9668 for now and I'm > not even sure the current driver would support the LAN9662. It works also on LAN9662, but I didn't have time to send patches for DTs. Then when I send patches for LAN9662, do I need to go in all dts files to change the compatible string for the 'switch' node? > > Michael Walle (4): > net: lan966x: hardcode the number of external ports > dt-bindings: net: lan966x: add specific compatible string > net: lan966x: add new compatible microchip,lan9668-switch > ARM: dts: lan966x: use new microchip,lan9668-switch compatible > > .../net/microchip,lan966x-switch.yaml | 5 +++- > arch/arm/boot/dts/lan966x.dtsi | 2 +- > .../ethernet/microchip/lan966x/lan966x_main.c | 24 +++++++++++++------ > 3 files changed, 22 insertions(+), 9 deletions(-) > > -- > 2.30.2 > -- /Horatiu