Re: [PATCH v4 05/12] Documentation: net: phy: Add phy-is-internal binding

2017-08-10 Thread David.Wu
Hi Andrew, Florian 在 2017/8/10 8:20, Andrew Lunn 写道: Hi Florian, David. I'm happy with the property name. But i think the text needs more description. We deal with Ethernet switches with integrated PHYs. Yet for us, this property is unneeded. Seeing this property means some bit of software

Re: [PATCH v3 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-08-10 Thread David.Wu
Hi Chen-Yu, 在 2017/8/10 10:40, Chen-Yu Tsai 写道: Hi David, On Wed, Aug 9, 2017 at 5:38 PM, David.Wu <david...@rock-chips.com> wrote: Hello Corentin, Chen-Yu 在 2017/8/9 16:45, Corentin Labbe 写道: On Thu, Aug 03, 2017 at 07:06:33PM +0800, Chen-Yu Tsai wrote: On Thu, Aug 3, 2017 at 1

Re: [PATCH v3 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-08-09 Thread David.Wu
Hello Corentin, Chen-Yu 在 2017/8/9 16:45, Corentin Labbe 写道: On Thu, Aug 03, 2017 at 07:06:33PM +0800, Chen-Yu Tsai wrote: On Thu, Aug 3, 2017 at 1:38 AM, Florian Fainelli wrote: On 08/01/2017 11:21 PM, David Wu wrote: To make internal phy work, need to configure the

Re: [PATCH v3 01/11] net: phy: Add rockchip phy driver support

2017-08-09 Thread David.Wu
Hi Andrew, 在 2017/8/2 21:21, Andrew Lunn 写道: +static struct phy_driver rockchip_phy_driver[] = { +{ + .phy_id = 0x1234d400, + .phy_id_mask= 0xfff0, + .name = "Rockchip internal EPHY", + .features =

Re: [PATCH v3 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-08-03 Thread David.Wu
Hi Florian & ChenYu 在 2017/8/3 1:38, Florian Fainelli 写道: This is incorrect in two ways: - this is a property of the PHY, so it should be documented as such in Documentation/devicetree/bindings/net/phy.txt so other bindings can re-use it - if it was specific to your MAC you would expect a

Re: [PATCH v2 01/11] net: phy: Add rockchip phy driver support

2017-07-28 Thread David.Wu
Hi Florian, 在 2017/7/28 0:51, Florian Fainelli 写道: +} + +static int rockchip_internal_phy_config_init(struct phy_device *phydev) +{ + int val; + + /* +* The auto MIDX has linked problem on some board, +* workround to disable auto MDIX. +*/ If this a

Re: [PATCH v2 01/11] net: phy: Add rockchip phy driver support

2017-07-28 Thread David.Wu
Hi Andrew, 在 2017/7/27 21:38, Andrew Lunn 写道: + /* +* If mode switch happens from 10BT to 100BT, all DSP/AFE +* registers are set to default values. So any AFE/DSP +* registers have to be re-initialized in this case. +*/ Hi David Are they also lost on

Re: [PATCH v2 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-07-28 Thread David.Wu
Hi Florian, 在 2017/7/28 0:54, Florian Fainelli 写道: - if you need knowledge about this PHY connection type prior to binding the PHY device and its driver (that is, before of_phy_connect()) we could add a boolean property e.g: "phy-is-internal" that allows us to know that, or we can have a new

Re: [PATCH v2 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-07-28 Thread David.Wu
Hi Andrew, 在 2017/7/27 21:48, Andrew Lunn 写道: I think we need to discuss this. This PHY appears to be on an MDIO bus, it uses a standard PHY driver, and it appears to be using an RMII interface. So it is just an ordinary PHY. Internal is supposed to be something which is not ordinary, does not

Re: [PATCH 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-07-27 Thread David.Wu
Hi Andrew, 在 2017/6/24 10:29, Andrew Lunn 写道: If this is the PHY clock, should it actually be specified in the PHY binding? Can you read the PHY ID registers with this clock off? If the phy clock is closed, we can not read the PHYID.

Re: [PATCH 01/11] net: phy: Add rockchip phy driver support

2017-06-27 Thread David.Wu
Hi Andrew, 在 2017/6/27 22:46, Andrew Lunn 写道: it has been licensed from somebody. And does that somebody already have a driver for it? There is no point adding a driver, if all you need to do is add the ID to another driver. I didn't find it. Maybe use the same, but the configuration is

Re: [PATCH 01/11] net: phy: Add rockchip phy driver support

2017-06-27 Thread David.Wu
Hi Andrew, 在 2017/6/24 10:19, Andrew Lunn 写道: On Fri, Jun 23, 2017 at 12:41:59PM +0800, David Wu wrote: Support internal ephy currently. Signed-off-by: David Wu --- drivers/net/phy/Kconfig| 4 ++ drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c

Re: [PATCH 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-06-27 Thread David.Wu
Hi Heiko, 在 2017/6/24 1:19, Heiko Stuebner 写道: Hi David, Am Freitag, 23. Juni 2017, 12:59:07 CEST schrieb David Wu: To make internal phy worked, need to configure the phy_clock, phy cru_reset and related registers. Change-Id: I6971c0a769754b824b1b908b56080cbaf7867d13 please remove all

Re: [PATCH 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-06-27 Thread David.Wu
Hi Florian, Sorry for reply late. 在 2017/6/24 0:22, Florian Fainelli 写道: On 06/22/2017 09:59 PM, David Wu wrote: To make internal phy worked, need to configure the phy_clock, phy cru_reset and related registers. Change-Id: I6971c0a769754b824b1b908b56080cbaf7867d13 Signed-off-by: David Wu