Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752545AbdHIHBh (ORCPT ); Wed, 9 Aug 2017 03:01:37 -0400 Received: from lucky1.263xmail.com ([211.157.147.133]:60684 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750879AbdHIHBf (ORCPT ); Wed, 9 Aug 2017 03:01:35 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: david.wu@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: david.wu@rock-chips.com X-UNIQUE-TAG: <1ce0daeef8ad396461419a971d43ee9b> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH v3 01/11] net: phy: Add rockchip phy driver support To: Andrew Lunn Cc: davem@davemloft.net, heiko@sntech.de, f.fainelli@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, olof@lixom.net, linux@armlinux.org.uk, arnd@arndb.de, peppe.cavallaro@st.com, alexandre.torgue@st.com, huangtao@rock-chips.com, hwg@rock-chips.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1501654546-17292-1-git-send-email-david.wu@rock-chips.com> <1501654546-17292-2-git-send-email-david.wu@rock-chips.com> <20170802132121.GA24708@lunn.ch> From: "David.Wu" Message-ID: <4cfa1cbc-d3a9-d27a-ecd3-2285d6e498a7@rock-chips.com> Date: Wed, 9 Aug 2017 15:01:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170802132121.GA24708@lunn.ch> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1242 Lines: 33 Hi Andrew, ?? 2017/8/2 21:21, Andrew Lunn ะด??: >> +static struct phy_driver rockchip_phy_driver[] = { >> +{ >> + .phy_id = 0x1234d400, >> + .phy_id_mask = 0xfffffff0, >> + .name = "Rockchip internal EPHY", >> + .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause >> + | SUPPORTED_Asym_Pause), > > Please take a look at Documentation/networking/phy.txt and > Fixes: 529ed1275263 ("net: phy: phy drivers should not set SUPPORTED_[Asym_]Pause") > > Pause frames / flow control > > The PHY does not participate directly in flow control/pause frames except by > making sure that the SUPPORTED_Pause and SUPPORTED_AsymPause bits are set in > MII_ADVERTISE to indicate towards the link partner that the Ethernet MAC > controller supports such a thing. Since flow control/pause frames generation > involves the Ethernet MAC driver, it is recommended that this driver takes care > of properly indicating advertisement and support for such features by setting > the SUPPORTED_Pause and SUPPORTED_AsymPause bits accordingly. This can be done > either before or after phy_connect() and/or as a result of implementing the > ethtool::set_pauseparam feature. > Thanks for the reminder, I'll remove it. > Andrew > > >