Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1718942
| From | icenowy@aosc.io |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 3/4] net: phy: realtek: add disable RX internal delay mode |
| Date | 2017-08-24 10:10 +0200 |
| Message-ID | <uhVnc-3SH-3@gated-at.bofh.it> (permalink) |
| References | <uh8FP-5u6-1@gated-at.bofh.it> <uh8Pv-5yo-7@gated-at.bofh.it> <uhhJ8-35i-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
在 2017-08-22 21:39,Andrew Lunn 写道:
> On Tue, Aug 22, 2017 at 12:03:59PM +0800, Icenowy Zheng wrote:
>> From: Icenowy Zheng <icenowy@aosc.xyz>
>>
>> Some RTL8211E chips have broken GbE function, which needs a hack to
>> fix. It's said that this fix will affect the performance on not-buggy
>> PHYs, so it should only be enabled on boards with the broken PHY.
>
> I would not call this a broken PHY. It is a question of board
> design. If you have shorter tracks, you need a delay. If you have long
> tracks, you don't. Hence the four RGMII modes, so you can select if
> the delay is needed or not, depending on your board design.
>
>> Currently only some Pine64+ boards are known to have this issue.
>
> Design feature.
>
> Please remove all reference to bug.
>
>> This hack is said to disable RX relay for RTL8211E according to
>> Realtek.
>> So implement it as RGMII-TXID mode.
>
> Do we know that the TX lines do have a delay after making this change?
> We need to be careful here. We will get into a mess if this is
> actually RGMII not RGMII_TXID, and somebody designs a board which
> needs RGMII-TXID.
In fact I'm not sure -- I'm even not sure that after making this change
there's no TX delay. The change is totally not documented, so I choose
to use a custom property in v1.
But Florian required me to use RGMII-TXID instead.
>
>> +#include <linux/of.h>
>> #include <linux/phy.h>
>> #include <linux/module.h>
>
>> +static int rtl8211e_config_init(struct phy_device *phydev)
>> +{
>> + struct device *dev = &phydev->mdio.dev;
>> + struct device_node *of_node = dev->of_node;
>
> You don't appear to use of_node, nor dev. Please remove, along with
> the header file.
>
> Andrew
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/4] Workaround broken RTL8211E on some Pine64+ boards Icenowy Zheng <icenowy@aosc.io> - 2017-08-22 06:10 +0200
[PATCH v2 4/4] arm64: allwinner: a64: disable the RTL8211E internal RX delay on Pine64+ Icenowy Zheng <icenowy@aosc.io> - 2017-08-22 06:10 +0200
[PATCH v2 2/4] net: phy: realtek: change macro name for page select register Icenowy Zheng <icenowy@aosc.io> - 2017-08-22 06:10 +0200
[PATCH v2 1/4] net: stmmac: dwmac-sun8i: support RGMII modes with PHY internal delay Icenowy Zheng <icenowy@aosc.io> - 2017-08-22 06:10 +0200
[PATCH v2 3/4] net: phy: realtek: add disable RX internal delay mode Icenowy Zheng <icenowy@aosc.io> - 2017-08-22 06:20 +0200
Re: [PATCH v2 3/4] net: phy: realtek: add disable RX internal delay mode Andrew Lunn <andrew@lunn.ch> - 2017-08-22 15:50 +0200
Re: [PATCH v2 3/4] net: phy: realtek: add disable RX internal delay mode icenowy@aosc.io - 2017-08-24 10:10 +0200
Re: [PATCH v2 3/4] net: phy: realtek: add disable RX internal delay mode Andrew Lunn <andrew@lunn.ch> - 2017-08-24 15:20 +0200
csiph-web