Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1230392pxb; Wed, 10 Feb 2021 03:30:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwY6McSzqIeWVnBkxKUizY8YQy4hR4gHAjcorrn96FkYVAB1VMYA05hiATXiVdSWmU2CJHp X-Received: by 2002:a05:6402:4389:: with SMTP id o9mr2720566edc.164.1612956643690; Wed, 10 Feb 2021 03:30:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612956643; cv=none; d=google.com; s=arc-20160816; b=UxHBUXtbVvLIkT+as79vOrNmKKCF7HzyKqbkkqvK17UUZAHJRJNRWQyRx5uIV2Eeu/ Q+/q3P6xuHyuRHiH/qlSNOf6rFdPozvbWNkKXTNakcv8BYVMM489MtAxe7fIQ78aqkDO ZL30dAINmzrFc/D+D94W8DZjVMRjFxU1X4x9I+bC6p9NfOA9ShJ+PLqU1jdquAVFWoUY ugps8CPhTNH0DXdzbFG8OQZyhGgb81oap7Yf6m4KY4bJC8nIVIEzZHOqG8bWO640Anua +G90+rAmC6s/HJpNrbA3Z0MTcTjMTjgR8IbNrHjmMcdTIh4nWsBd3ZHv49cHd3obAPSq 91sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=V6CwUcBwGPFlThpPsNrtEei8sIEYx8VuG2BgHpu4Rnw=; b=ZPuT+2V8Ujgl/sEHLB8KCWv2N2yl5AHHCmzN8sbC2+CmgMTXOXqEScM+HhLaXvfhUV YxRoJhqI03JS/FxAq0Dl9oblr91TmZjwx1HCCsVIvTWUhRi2CSYTT1glSrnamTm8a6Fz ZR5FGObc3nWSNfuvOLMt2pJAXzNQ13aBPGJwn9jjrYDyCdY2JXiFJkLHC3qNUTDWJluA 47H1TMGs09vetm0QJN5cSQGV9bQW3L/l1HWIVEQ9MbkeLVbc9cYuOgnCFD/O3ik/+AbU S3KIIVOgQHR1tSu+mYr6HDeofTcYYxtlLx3t5YWbOx2LNpUcJbC9Pp5Xq6iINya95gFS w+iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=psbwXUoo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si1109027ejr.273.2021.02.10.03.30.19; Wed, 10 Feb 2021 03:30:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=psbwXUoo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230384AbhBJL33 (ORCPT + 99 others); Wed, 10 Feb 2021 06:29:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbhBJLUp (ORCPT ); Wed, 10 Feb 2021 06:20:45 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 778CBC06174A; Wed, 10 Feb 2021 03:20:05 -0800 (PST) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 0C0D622EE4; Wed, 10 Feb 2021 12:20:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1612956003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V6CwUcBwGPFlThpPsNrtEei8sIEYx8VuG2BgHpu4Rnw=; b=psbwXUooa5w+6JKzyPYod12/c6exLd/Znu+gWFgD1opMBrPFYxYCh/TPkbyVKkOJ0mzXDl uP9jgdvbbs8CSjovScHpWKxMCZcnvtTg3AstyUNV+bIuMl32MEp29QPzZyXl1SaWzyoSAZ GbLqJtGEGAxIG0S1hXbBwxlxUQ+xhtI= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 10 Feb 2021 12:20:02 +0100 From: Michael Walle To: bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King Cc: Florian Fainelli , Andrew Lunn , Heiner Kallweit , "David S . Miller" , Jakub Kicinski Subject: Re: [PATCH net-next] net: phy: introduce phydev->port In-Reply-To: <20210209163852.17037-1-michael@walle.cc> References: <20210209163852.17037-1-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.10 Message-ID: <41e4f35c87607e69cb87c4ef421d4a77@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-02-09 17:38, schrieb Michael Walle: > --- a/drivers/net/phy/phy.c > +++ b/drivers/net/phy/phy.c > @@ -308,7 +308,7 @@ void phy_ethtool_ksettings_get(struct phy_device > *phydev, > if (phydev->interface == PHY_INTERFACE_MODE_MOCA) > cmd->base.port = PORT_BNC; > else > - cmd->base.port = PORT_MII; > + cmd->base.port = phydev->port; > cmd->base.transceiver = phy_is_internal(phydev) ? > XCVR_INTERNAL : XCVR_EXTERNAL; > cmd->base.phy_address = phydev->mdio.addr; Russell, the phylink has a similiar place where PORT_MII is set. I don't know if we'd have to change that, too. Also, I wanted to look into the PHY_INTERFACE_MODE_MOCA thing and if we can get rid of the special case here and just set phydev->port to PORT_BNC in the driver. Florian, maybe you have a comment on this? -michael