From patchwork Fri Dec 2 19:17:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerry Ray X-Patchwork-Id: 2553 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1033366wrr; Fri, 2 Dec 2022 11:27:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf60X/MsqfHunBdodB56zXsFp8QlizSLXUge58MCcvVtbDf8s/76xhV7d2CTiUaUKEjlD95o X-Received: by 2002:a17:90a:e2c1:b0:219:5bdb:2b45 with SMTP id fr1-20020a17090ae2c100b002195bdb2b45mr18161214pjb.71.1670009255391; Fri, 02 Dec 2022 11:27:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670009255; cv=none; d=google.com; s=arc-20160816; b=thYTr1SmYpT9MCJWptRai686bYsJ1QH1Dd3A7ipiOAAQnLx8CrFWMlsgwWXQeobii/ nUm371398z8+2O1Co+lkx2AxqX0DV7t7PWGaN5kLFIHM5zBcOTWyBZAaGVkgJshpy+pn Roj/fiFlvPPT6U7iuD8CKOJoQjkOcE5C17s7gpZ3tCGnqiF9OMSD3ooR/7wntkURespY HWWEOAjRpnEJSWd9jGNgilarGseRW6HirhBNMY1EOQSQoE8X5BI76XFAmLtr2BwTO5k8 sg8Y54U1RX6/cWg6N17Wx5IdPKrtGGppf9RT9KJDPH3YaI1nZAERa/mUNudQPMVHDUlj u+2Q== 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=Jj5pzxIAkzX+IRkeIcnRzn+oyGQYoWDo9eWru+IkmdI=; b=0lIWQbX/dtxRqd9GuIZSCWyjhRH0naHmeqTs9hDxVN1aBFUaZzTHDBel4eG3wX2dHX vKwkBPOeOHAi91V7tawj2jL3XzOUC4N+Ljn4ToK9g302tGFi3HNOR4PvherTYOCDJQUr xBUCaG+N6suxogZG8RHbawNGLz3/FwCANhRqX7VGkWpzc/doYucbyfQ9erCDhJ0ah2Q8 KXtS/XVd67GGTjAJWmjGAlMCf5BRo5RJknSdwY97Pg83pHzfWkaSMk48InpMFyx9XtZ9 32NsIZID41EfDzc1G+oLCwly0bNhChvsd8pxs5QbvxI9eayyvr0WQWLfC01fgWlIuIQ6 rh3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=tkrQR2f0; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id br6-20020a056a00440600b0056bcbc51d79si7799480pfb.169.2022.12.02.11.27.19; Fri, 02 Dec 2022 11:27:35 -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=tkrQR2f0; 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 S234714AbiLBTR7 (ORCPT + 99 others); Fri, 2 Dec 2022 14:17:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234694AbiLBTR4 (ORCPT ); Fri, 2 Dec 2022 14:17:56 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B5E81E700; Fri, 2 Dec 2022 11:17:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1670008671; x=1701544671; h=from:to:subject:date:message-id:mime-version; bh=jYYY9Pw5VXdCKxGrRHaBuVdrbALTmlDdRa5GM45Mg4Q=; b=tkrQR2f0j/qFjy89xcbXh5BvYW3i3ceCFVykD7S9o6aSuBSe7QykWn/y 0OCp6T77pZlT3VvSyFRmCQZVrxrZRVbHYn3hc2YYEh6EU/ldir+SWQ9lI CBHABcUro5Nc6firOLtvOaRT3vOXGpk9sRMu4Iv3lXl4AI6R6MAYX3cRw tjQ5Qkxll4xR32l9M0cgVrHQ5T0sQjXxBwPTGVWdz2hFaNngHebvVyriX 238lh+1KUG5AAO4bZbjjvCiGcAmc818AYbC5hdEGYst5m2nbDF10KmuYr oQrigNlHgxNGAv2ljpYAtKVFXUreh6bv9rQnMnoWdBouxBobviIYA42VQ A==; X-IronPort-AV: E=Sophos;i="5.96,213,1665471600"; d="scan'208";a="202387654" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Dec 2022 12:17:50 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 2 Dec 2022 12:17:50 -0700 Received: from AUS-LT-C33025.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 2 Dec 2022 12:17:49 -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 v2 0/2] dsa: lan9303: Move to PHYLINK Date: Fri, 2 Dec 2022 13:17:47 -0600 Message-ID: <20221202191749.27437-1-jerry.ray@microchip.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 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, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751131272753547648?= X-GMAIL-MSGID: =?utf-8?q?1751131624493476363?= 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 At this point, I do not see anything this driver needs from the other phylink APIs. Signed-off-by: Jerry Ray --- 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(-)