Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7877430rwb; Tue, 6 Dec 2022 10:58:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf4bgO29WqHM1cSr58bqATHGFvuwXACjAFA7rCCa9QjNic3whUEbD2RsgcKMRP83UqIR977m X-Received: by 2002:a17:906:240f:b0:7c0:9f04:1938 with SMTP id z15-20020a170906240f00b007c09f041938mr24533981eja.769.1670353132951; Tue, 06 Dec 2022 10:58:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670353132; cv=none; d=google.com; s=arc-20160816; b=X3Yb2YUzn/YTK/9+5afDV1jZfjsrDyH+PTxo3xuPrlkYJOMhWNWaeisWBFWs4v33oz cwSehWUDCdk6sQeIYzEi124wmScJziSz6UsDO9Vt9/ieV+31/rkgnbLImSMg85L1gPgP 0L5zh+xEKj7KjuALqg02UqH7Bq6s1KvlMoLvADzKP5tAFufyRfKb7EY9B3gD1npRzM5e ubmEF9mgNiRYYd7u3AlOdHE/bynL2kVnEMMlcT+f694I6TpZF/4HrfLdetjuWeMtl3J5 8DoenqZALX1QyBcCYJIi9nduDhcAm+n91pniHMpPT7IcG95wAG3EjAeUPZ5KrS8azNra ysXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from :dkim-signature; bh=bWh4g2qIfgPURKxg1Izw3140ofPmdzudlCKPDgpe2Oc=; b=oTpisPkZZAexVb81Ruwk7jZh8FWPllj5LoGFsBq5jigHq7MdPWx/F7afEBlH2M+H1f 72u454EeIzzL07SlkOcb/D9Y67ukXH5YdOGN3pUk0ghiyMQVn0zC2/ZbEv4E8HmM5+D4 zmstJMJl6bAK4ByQPjAD3FSzTvBhGH3MTh4/OZVFEuYnf8X/UTNgQe3KEmETCIQK2uIo eyNP3ttIxj8WOHcpX1zIRinBt9rWoWdc/ZB/8zBWOBjpQuzfHs0d9angC7hkJPdyju88 P+/XUVbFbcgwh3FJYI5T/C+1YK3x9FT83sEXncCpXcBi9DxZ0qcCZVgZRymYlxaGGEmo mASg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=u3LCP2B7; 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=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 z16-20020a1709063ad000b0078d38cda44bsi2955201ejd.694.2022.12.06.10.58.33; Tue, 06 Dec 2022 10:58:52 -0800 (PST) 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=@microchip.com header.s=mchp header.b=u3LCP2B7; 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=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229602AbiLFSfk (ORCPT + 78 others); Tue, 6 Dec 2022 13:35:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbiLFSfU (ORCPT ); Tue, 6 Dec 2022 13:35:20 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C13002DDE; Tue, 6 Dec 2022 10:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1670351705; x=1701887705; h=from:to:subject:date:message-id:mime-version; bh=E8753zyjLDm0yzoPomzMO54qW0/wFObJcMt/t49KGLM=; b=u3LCP2B7hVuZPv5QO4iCoD7ETHec+by7JvOXZz7nr/LWb5iqgsR1vFym +HxCdpPj2Ox1TPvX/OBDsag8QVLW1bS7kYYUJtOGxl4WE33j5sDJ6TFT5 RtTLnCD+X7NdaT7gDHW8bI7u6bQjJwHrm2E3B4rZJqk3LVRjxLynPRPZN Xb6Lpnc/M8yv/h59LKC/mlpxRM5Aa8DagJRzRqAcm9kCH4qijC+bUxH5i 0jEzi3NclLbChxpcJpsovbWeZAUdd6HY+kunhJMtkwRvDr6Jk4fzneAwV m4DGoDiFRAxykaqbfq+OOsqR3ux7QHaho0HqNtvjLZ4U/WRqunHnp2qAv w==; X-IronPort-AV: E=Sophos;i="5.96,223,1665471600"; d="scan'208";a="190327743" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Dec 2022 11:35:03 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.2507.12; Tue, 6 Dec 2022 11:35:03 -0700 Received: from AUS-LT-C33025.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 6 Dec 2022 11:35:01 -0700 From: Jerry Ray To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Paolo Abeni" , , , , Jerry Ray Subject: [PATCH net-next v3 0/2] dsa: lan9303: Move to PHYLINK Date: Tue, 6 Dec 2022 12:34:58 -0600 Message-ID: <20221206183500.6898-1-jerry.ray@microchip.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 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 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 This patch series moves the lan9303 driver to use the phylink api away from phylib. 1) adds port_max_mtu api support. 2) Replace .adjust_link with .phylink_get_caps dsa api Clearing the Turbo Mode bit previously done in the adjust_link API is moved to the driver initialization immediately following the successful detection of a LAN93xx device. It is forced to a disabled state and never enabled. At this point, I do not see anything this driver needs from the other phylink APIs. Signed-off-by: Jerry Ray --- v2-> v3: Added back in disabling Turbo Mode on the CPU MII interface. Removed the unnecessary clearing of the phyvsupported interfaces. v1-> v2: corrected the reported mtu size, removing ETH_HLEN and ETH_FCS_LEN drivers/net/dsa/lan9303-core.c | 93 ++++++++++++-------- 1 file changed, 56 insertions(+), 37 deletions(-)