From patchwork Fri Dec 2 16:05:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerry Ray X-Patchwork-Id: 2540 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp945714wrr; Fri, 2 Dec 2022 08:14:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf444Q/hey+jxJYfrAw4zI2yrxyuwcx+Zk8K2OKX4bMyQm3w8wQl4r/yCibAbDASDY00tZ8Z X-Received: by 2002:aa7:de08:0:b0:46a:e4e0:8407 with SMTP id h8-20020aa7de08000000b0046ae4e08407mr28469542edv.36.1669997687522; Fri, 02 Dec 2022 08:14:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669997687; cv=none; d=google.com; s=arc-20160816; b=xkVfOmWV/U6bVZRySpl1LeSPaYx97Irs3zzqnfyZe8/D69Can4fWlJSC3hJDA6BANo ZIxh0eUaTno/3jjoHabgQ3ggDdTXpCvZQgDRWbyRTVHKhRnrpyetNQT0KcsUHhJZo8e0 g7Xm6SxYIXjJ3Q7zWBRWOV0qAl7JJqzxkP/R9ySUZxjjI6ezmchp1UgGR9zB9ViOXAOi saxcnbxNv0uzjEoblc1oQm+3XnzmsL9hwf1GnLBXaJiBJUKWMj7o5mm7PXbXV9iGeXtL /zFZSAivDG5ggoBTILobsOTsVW/t43GI2i2JHm7v58dwBruq2z5Wp6cJslJnB2meE3xd XX2w== 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=xD4uZu3i37XFWjIhQlvkmX1Fzfem6pzq7ZnrtxVdaMU=; b=OI4wy5Co/it5VbhaV8zn+J4xQSBOb7/jCvYjnX+DpXqUJNRi3WBGMKdLDBjn6N5+/Y dnGCVZQHclZawiyarhm+J1xAVX3h2pF3zYXqMjyGKZAijEW2kP0ASC1R8qSZ01ZbeRfS Ec2uuBPho3RFL6MRJzLRuLeM8TwZ2Do9FONHL5efJs3f2fCzIy6Lt2KG9tFCb+YFkrs4 EtnPkAZvKiJve7vPNV/XAvdU0O/ZvqVnbG3Pjtm4Rrd0Dh4w2RV58dZPrfqNDaH8jI6Q FpW6DnIJwFymAqrR3NqgQ+j7lLjyP4a/YYkyQYY7p7cQfcxsmY6MOxcXto3M4bRfvH3I zN2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=t5suCTKS; 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 m9-20020a056402430900b0046ab1d20ca2si6523834edc.439.2022.12.02.08.14.23; Fri, 02 Dec 2022 08:14:47 -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=t5suCTKS; 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 S233541AbiLBQFx (ORCPT + 99 others); Fri, 2 Dec 2022 11:05:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232364AbiLBQFe (ORCPT ); Fri, 2 Dec 2022 11:05:34 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6FB02872F; Fri, 2 Dec 2022 08:05:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1669997134; x=1701533134; h=from:to:subject:date:message-id:mime-version; bh=xD4uZu3i37XFWjIhQlvkmX1Fzfem6pzq7ZnrtxVdaMU=; b=t5suCTKSlsz1isLC88euGuAafWnscukusdNGw4BQsb8KliF6U6tcD7mk 9IUFRs2UEkMKAQiXjwoBIw/FLCxECrjGXlbAJ5iXgubeYD/XPbXrPovTb NA6svQKQYu1vGm8aqcoxwFonmI+igpGDaTMD5Y58Y3pvlII9L/6RHbmtG tIepVZFLgbhmc0RcfXWgd/5LMvJRbEq08QinStcVMw3iy2PFei7/jsOdu 5OQZszn/PwRrUXz0ulglZZXsQlrhRWXlFy/mxnZtmaPExqXaVLUDHOZnL 49koMP3tHY1jZBXm8nEZkPeOgPn2rqQSSgvsCW91bosPUGvSg6bAsJJUn Q==; X-IronPort-AV: E=Sophos;i="5.96,212,1665471600"; d="scan'208";a="191476205" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Dec 2022 09:05:33 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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 09:05:31 -0700 Received: from AUS-LT-C33025.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 2 Dec 2022 09:05:30 -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 0/2] dsa: lan9303: Move to PHYLINK Date: Fri, 2 Dec 2022 10:05:27 -0600 Message-ID: <20221202160529.30010-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?1751119495160222709?= X-GMAIL-MSGID: =?utf-8?q?1751119495160222709?= 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 drivers/net/dsa/lan9303-core.c | 93 ++++++++++++-------- 1 file changed, 56 insertions(+), 37 deletions(-)