Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp557100rwl; Wed, 12 Apr 2023 00:16:26 -0700 (PDT) X-Google-Smtp-Source: AKy350ZPeWQbP2sXKFBftvy3z4HyiSA70Zh36wanQ8WnUcdeXjxnhWoO6yBgSDFa5dOahi8Wjtnm X-Received: by 2002:a05:6a20:7a08:b0:d9:1eb8:7828 with SMTP id t8-20020a056a207a0800b000d91eb87828mr15444119pzh.14.1681283786360; Wed, 12 Apr 2023 00:16:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681283786; cv=pass; d=google.com; s=arc-20160816; b=kH7Jgrbk4guubNiArZJ2DW7kpuIFSoIDEzwWdCzN/LVnEXB5U8RIe3q1TJ5OOxQxdv Zt0SrKETKZD4BQsxL0Mr7rh0yM0Bf+ac0VGjKMdkX1v0kL+KmQCYdwIu+j5YMNPFU9Mc uIvYHr+ussHw9s8nbofSH9D7sIpGwZIbTTSsdMQBkl7qGBVNdZIM0ai+P+AHCHQkUM0E rpdfbov/Yc9mrberlT4zMTfovLwhbkblUyeSnhRCG35XaagkjAMYkurkA8IM0eRZY0UW +/5ATex4Nskofw1CLyQaZWysIVjTqlx8docc8Xj/7dwZNn2WP6dXKeg+SdE39Tq7kw2J +Dlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=LmmOoSRxhuBf3GeBJLZPhG1mT/jbhJtk2doUp+AYZFE=; b=00SyWn7cgu95j3iFnH1PIeW7ucAshPGo01B6bNAwCwsA2shG461UPb5gqa91JYPcM1 lfQVrN2m1M/B0Kx9qLOYII/D3ZcPXMV3pJ4AK9t81WJpgIoo/f15QZnKeT3SEQoogDmc PALTJIpQI0mk1FKDFje0Khrq/mVzWKKZE9VUa+Ls4UsN1fvmplyYJ+Tkq4mXJZaF2rOW fTPQ/W3MEpmFbLfOWSyCnS6qzDtvjkZ/IFIG0ICT/5SoQoUJoOblJius+PV02BYsgYXL VbNfWRjZ5lS56ldA8DzkXHxRXTjeuqkdDyRHEKGWM376uvZkT4VzsKpf6lgsDbHxZw2u n3AA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NWLz5Hxw; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020aa796d5000000b00625106cebedsi15286803pfq.187.2023.04.12.00.16.13; Wed, 12 Apr 2023 00:16:26 -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=pass header.i=@intel.com header.s=Intel header.b=NWLz5Hxw; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbjDLG7i (ORCPT + 99 others); Wed, 12 Apr 2023 02:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbjDLG7f (ORCPT ); Wed, 12 Apr 2023 02:59:35 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F1105B82; Tue, 11 Apr 2023 23:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681282770; x=1712818770; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Vx2zykhVdwWojTU7iqdTJmR23GpiZW2JE/nX9SCH4QE=; b=NWLz5HxwqpRWVRaK8cgARK6ZmQtpb83Tcc+Z6Sq+I5+lZBPzpGkykNrl pbP6z9nVJmAo+F46UxliK64wuUm17FiTO5VIGQGw12YTh0osPgunwWtTP u68VGszpOxexA5Q1x0tYpAxJhB/lLEvO3yIO/SE/SYMqEyk9jb5w9FaFb k+IE6uJuVnGbCfKVuFMjk4kQaPTw4Z9AeWJx+Dh5icH2t6vuXYXiW/gwd SjKxjVgpoqKP2XYhZp3PF4NDz3jiaRyNRFKBshdPfKJ7wgu2lAMEQXS63 xBH0BXqkaRpmY3mZ1Oprrp4MosHaHwE0QCEPuCQGI9kfkjIFUC3LgBc/2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="341310903" X-IronPort-AV: E=Sophos;i="5.98,338,1673942400"; d="scan'208";a="341310903" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2023 23:58:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10677"; a="778207510" X-IronPort-AV: E=Sophos;i="5.98,338,1673942400"; d="scan'208";a="778207510" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by FMSMGA003.fm.intel.com with ESMTP; 11 Apr 2023 23:58:20 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 11 Apr 2023 23:58:19 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 11 Apr 2023 23:58:19 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Tue, 11 Apr 2023 23:58:19 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Tue, 11 Apr 2023 23:58:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n/Dbp9jramlnEbL/9JqVLErnNOb+esB0ASOFiEKE/r7kjqZfbkjo3QMakm7LAvdnPs2/bVyuWAVkyMERRH8n1dtGbXVKDpB7nKBQwFE2OXznuqXo9/DaPmYT9HGgWXd+VPBRmZrUPE+TgqwFIuMRVfLlCQ6XY1qyD2LRfcEuQx0tmxh9wPzlKGvcNN4bz82lorY2RtlPe1g/xrCz3TCmTvaBZ32ZVSOLCoCXbvWUW2/oXwtJeY4x1YTjsLJ9aSY99meag9AlqFimwHtpCYPALyc2BeWhZIoRBrDXshFnOkYpt8IkzTM/+Ai+QOj3gD7zcqz173F/Jf2BC9HpFTeW2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LmmOoSRxhuBf3GeBJLZPhG1mT/jbhJtk2doUp+AYZFE=; b=a07Jugex4hZeq9psLsttD2F5n3durRXSPjHdFrereBMp7L69nG10y3/EA0+APyVxDi34k91kQE3QMOrkJ0OqJ+CyLse8zmZu38AeX+OsiICQr5EvwP84LE0QPUzOKsgOe/wkmLhC0u7GoZF4wW9NH6+0ymscXfg+V98578NulAy379r/3iFmrUD+Mg5KRy0ac0WlhnxNKOQZF6bACEYEULwzGtrxSLrurxU/sSFhfIGzVcnSXjLxIo+1mCDtyi5+pSStoWxXL9BGcJ23BoW6R4QIbUModQR0hDKfTq83TtBeUNEtzVw5R9c3wHKfIr2+j56SKWl//pMv10UuUhIwzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH0PR11MB7587.namprd11.prod.outlook.com (2603:10b6:510:26d::17) by SJ2PR11MB8299.namprd11.prod.outlook.com (2603:10b6:a03:53f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Wed, 12 Apr 2023 06:58:17 +0000 Received: from PH0PR11MB7587.namprd11.prod.outlook.com ([fe80::7237:e32c:559e:55e2]) by PH0PR11MB7587.namprd11.prod.outlook.com ([fe80::7237:e32c:559e:55e2%4]) with mapi id 15.20.6298.030; Wed, 12 Apr 2023 06:58:16 +0000 From: "Sit, Michael Wei Hong" To: Maxime Chevallier CC: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni , Maxime Coquelin , "Ong, Boon Leong" , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux@armlinux.org.uk" , "hkallweit1@gmail.com" , "andrew@lunn.ch" , "Looi, Hong Aun" , "Voon, Weifeng" , "Lai, Peter Jun Ann" , "alexis.lothore@bootlin.com" Subject: RE: [PATCH net v5 1/3] net: phylink: add phylink_expects_phy() method Thread-Topic: [PATCH net v5 1/3] net: phylink: add phylink_expects_phy() method Thread-Index: AQHZbQm97fiPNDxqkEOZqI8+LbFDRq8nPHmg Date: Wed, 12 Apr 2023 06:58:15 +0000 Message-ID: References: <20230330091404.3293431-1-michael.wei.hong.sit@intel.com> <20230330091404.3293431-2-michael.wei.hong.sit@intel.com> <20230412103812.45e52ab5@pc-288.home> In-Reply-To: <20230412103812.45e52ab5@pc-288.home> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB7587:EE_|SJ2PR11MB8299:EE_ x-ms-office365-filtering-correlation-id: b5b9bbd5-60e4-4fb1-c490-08db3b234a4b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2MUSaE7EC5zEMPCjZY1jWhjExfFet5bIiDmxvfFfFJ3PsIpfawTfkl/V2WjbnuyB5hmH9B9odxf9y/O600BsZD0RlbhgmxfI+XhOwxN7AvOu7kGE9ZQuDFKaNAgvTNgKtDoHK3ThfHK/3Z++POvrJ+SqTYHOZ/7j+1gGXFf8HvdPdjB19xTPMOT5VttUuhsX3YP9U+X+ukw8p8r1Bn1/QD1BoEZrhMh6XOwjm4V3idlAPKrDcKDQxYRYDox9rtH1/Mp373kvYtwKKuxUyaN10uPe0z2m4na2iUHWLfIDohd8nXDg8750+zS558u94WRn0PTjg6ph7kPFh6U0VDXtF7vrfelQCq9KB4MynPQyldAD4JsIx5ivwzk3PA/cWNYBWRQr6oY6wNTZ4DZeL1CQCwPrd23JxwZBUnPcttdhdAv+9Sa7DmtqamaZYqVGZLwPAzby38xzB8v9n86zS7E5m1XzzB4k9nlsi3JJMuQWZzwf2GG4XHD4+YnQkemRZjRq/d9s8u5N/vks/zNJHkzkQbALsJKsRE88HcooKvQStFwJoJs7iGzxhOn7YDZb17+CgoO9qweXoGSLMS095NflqF2arUqzLwdlozA6UtC8jDc= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB7587.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(136003)(376002)(346002)(366004)(396003)(451199021)(71200400001)(478600001)(7696005)(86362001)(83380400001)(33656002)(55016003)(82960400001)(122000001)(38070700005)(38100700002)(966005)(2906002)(26005)(316002)(53546011)(6506007)(54906003)(9686003)(186003)(5660300002)(64756008)(7416002)(66476007)(6916009)(66556008)(8936002)(52536014)(41300700001)(8676002)(4326008)(66446008)(66946007)(76116006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eWeUsCyLJNhRudN8vE0HxJBqFttfbgbcp0lyPCqqy2XtA/ikfa6gKPHzWS66?= =?us-ascii?Q?6RqPiFq64e95nzpXPhurEE+T6b3b/4SauzgXXzqko5k6M9A8i0Ty/nXn7YB1?= =?us-ascii?Q?SoEeAiZD/NF9NkcfRPwu2IKxdlaE/jLTMzc4tkEL4BoqBsor+/0vIiJgVQCq?= =?us-ascii?Q?frjMzXygwHBlfHdcIkbFz3OrcrUTkszg36X1/g6VuPYJB9WxdlsnvEKF7JdS?= =?us-ascii?Q?IEt3SrMIDDU2aNrdkfk68MHOOxE1u0yAR1RRsqMMfshPcWtvEn3cXQb/8zBP?= =?us-ascii?Q?RgmTJk84UF5N+T9HzIyF6/INFcv96B01nZ6wMBmKAjeW/+SkPEq1YHCBYPKL?= =?us-ascii?Q?uJdAXfW28Em3nobQAeP049trpffQF001V0CgLHOCZKqUuSoPozBrNe9OGi79?= =?us-ascii?Q?iG/7J5w7xudcKiDXzRkvu3RX8d9/AxTiYSqzzbdeQZo8KUeQeNKXQ2goxniz?= =?us-ascii?Q?oJv4jkCxF9bmjDVBh9AaIgpTLHCGShKu2bIUx9jjhufRa8+HA3ZNCAAW1jlc?= =?us-ascii?Q?42w0YeZvP0/o8m5yDzGqq1IP75Hdzoc3MuFYW+EZDAl/f3DshWX4hm0yJH0A?= =?us-ascii?Q?7sF+0NcpEwqEJI+qNKXirVPhr0LflHawQr3Fv9onYZCuJskw+nXQaR4YBp59?= =?us-ascii?Q?KyJWSV71rzG4ZGQPWm8viJZszdZFaRzryo1OFfdCef0SxMV7BVlM6CLXK0rP?= =?us-ascii?Q?ocmKwmdMBNJBJ+/M9Pc5Tc0eHuMeD3/UtmKUZ0J/iBCxf4Lnh4U0K4P2NHM1?= =?us-ascii?Q?Ph5ZzVppDhLKMq50PX4tikNPArYpAP91OKx04oTPyjYUnTvtR8DTNxyLlGJi?= =?us-ascii?Q?KXwlqEDRVPP0+1RJIk6NWrxAbH4tBTOjai884z4O/9xUov+I99DlVCuFbX8m?= =?us-ascii?Q?znzlD2Zrkzc4aYwXeAHAHn1O3/2f9aOaZ1CCnowwiqmVKlrRFVKOye2zp8cX?= =?us-ascii?Q?uD5D5F4wMSCSMVaZBMNiO5RciAn3oJqvGj80dr4cymeaU3D3s06lLlvUl67i?= =?us-ascii?Q?hyaVkfyRGXcNFHss3GA/+xFkYpjrdLQfQxyB3dscc8otJ/5CvU7FOTBRruPg?= =?us-ascii?Q?nIr7zu6NTSUdiJ8lPJCvz9zyDb80KeBSoAExxZu3t7KrvWcTnFDPdbJ5p0Gy?= =?us-ascii?Q?K3au7hglVMduObPed3GzHTk8LQHZkx+mT0M4t7ku09M6ffFNN8wcA78R94t0?= =?us-ascii?Q?mi2PUkDGfvVc1yEYiagA2jfoMBBquhxV9L4JBISe+u0cREZKsuYbZ/3C3fAd?= =?us-ascii?Q?j6fL81edGoSRLlYN1t4rR7PaIh/K0Hq4cJyjXeAq2KaEcDgHcHt9RtX60jDp?= =?us-ascii?Q?JvAjvhho/wnZ5sc3WW6IndI+N8ZXQiPnpP/LqlNuV4cMUEJN+Yb3y4BMzDuz?= =?us-ascii?Q?LGDy3F6KgIzBwSOBqFv2wzoqAnZfOg2rYwkMVJdaS/xzVe6WbBKNawE9XhmK?= =?us-ascii?Q?5qEj+xLkP5u8PDRPCLtg7oeUQ8WCM/npN/vBNMwdLr1uws3PqKu7azB5e01W?= =?us-ascii?Q?285w7pz/76CBAlA06ox6rN3G6BqcYOZCild+G94PF1eOk2TRTVVppKILQ1NJ?= =?us-ascii?Q?f8S/KbCHbL/yiya7YrHTXqA/SYUirojHr2EEoglx79hJYEMYS6ZsLFQGFEom?= =?us-ascii?Q?UQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB7587.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5b9bbd5-60e4-4fb1-c490-08db3b234a4b X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2023 06:58:15.8953 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JLs6iPxInlSZCSTl1eBOJPnTkGhWYggEddjkt8n3fIlpiB9nVTbHpHzM6Gvna3bNaV1Sj8ZIAcyIRLlzFawA0+DI3qnX5v8UuoEldirzYE0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8299 X-OriginatorOrg: intel.com 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_NONE,SPF_NONE,URIBL_BLOCKED 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 > -----Original Message----- > From: Maxime Chevallier > Sent: Wednesday, April 12, 2023 4:38 PM > To: Sit, Michael Wei Hong > Cc: Giuseppe Cavallaro ; Alexandre > Torgue ; Jose Abreu > ; David S . Miller ; > Eric Dumazet ; Jakub Kicinski > ; Paolo Abeni ; Maxime > Coquelin ; Ong, Boon Leong > ; netdev@vger.kernel.org; linux- > stm32@st-md-mailman.stormreply.com; linux-arm- > kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > linux@armlinux.org.uk; hkallweit1@gmail.com; andrew@lunn.ch; > Looi, Hong Aun ; Voon, Weifeng > ; Lai, Peter Jun Ann > ; alexis.lothore@bootlin.com > Subject: Re: [PATCH net v5 1/3] net: phylink: add > phylink_expects_phy() method >=20 > Hello everyone, >=20 > On Thu, 30 Mar 2023 17:14:02 +0800 > Michael Sit Wei Hong wrote: >=20 > > Provide phylink_expects_phy() to allow MAC drivers to check if it is > > expecting a PHY to attach to. Since fixed-linked setups do not need > to > > attach to a PHY. > > > > Provides a boolean value as to if the MAC should expect a PHY. > > Returns true if a PHY is expected. >=20 > I'm currently working on the TSE rework for dwmac_socfpga, and I > noticed one regression since this patch, when using an SFP, see > details below : >=20 > > Reviewed-by: Russell King (Oracle) > > Signed-off-by: Michael Sit Wei Hong > > > --- > > drivers/net/phy/phylink.c | 19 +++++++++++++++++++ > > include/linux/phylink.h | 1 + > > 2 files changed, 20 insertions(+) > > > > diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c > > index 1a2f074685fa..30c166b33468 100644 > > --- a/drivers/net/phy/phylink.c > > +++ b/drivers/net/phy/phylink.c > > @@ -1586,6 +1586,25 @@ void phylink_destroy(struct phylink > *pl) } > > EXPORT_SYMBOL_GPL(phylink_destroy); > > > > +/** > > + * phylink_expects_phy() - Determine if phylink expects a phy to > be > > attached > > + * @pl: a pointer to a &struct phylink returned from > phylink_create() > > + * > > + * When using fixed-link mode, or in-band mode with 1000base-X > or > > 2500base-X, > > + * no PHY is needed. > > + * > > + * Returns true if phylink will be expecting a PHY. > > + */ > > +bool phylink_expects_phy(struct phylink *pl) { > > + if (pl->cfg_link_an_mode =3D=3D MLO_AN_FIXED || > > + (pl->cfg_link_an_mode =3D=3D MLO_AN_INBAND && > > + phy_interface_mode_is_8023z(pl->link_config.interface))) >=20 > From the discussion, at one point Russell mentionned [1] : > "If there's a sfp bus, then we don't expect a PHY from the MAC > driver (as there can only be one PHY attached), and as > phylink_expects_phy() is for the MAC driver to use, we should be > returning false if > pl->sfp_bus !=3D NULL." >=20 > This makes sense and indeed adding the relevant check solves the > issue. >=20 > Am I correct in assuming this was an unintentional omission from > this patch, or was the pl->sfp_bus check dropped on purpose ? >=20 > > + return false; > > + return true; > > +} > > +EXPORT_SYMBOL_GPL(phylink_expects_phy); >=20 > Thanks, >=20 > Maxime >=20 Russell also did mention: " The reason for the extra "&& !pl->sfp_bus" in phylink_attach_phy() is to allow SFPs to connect to the MAC using inband mode with 1000base-X and 2500base-X interface modes. These are not for the MAC-side of things though." So I thought that the check can be dropped. I do not have any SFP hardware to test, if adding the check make sense, you can send us a patch so we can test it out. > [1] : > https://lore.kernel.org/netdev/ZCQJWcdfmualIjvX@shell.armlinux.o > rg.uk/