[PATCH v2 2/3] net: phy: realtek: Use the dummy stubs for MMD register access for rtl8211b

2018-03-19 Thread Kevin Hao
lt") Signed-off-by: Kevin Hao <haoke...@gmail.com> --- drivers/net/phy/realtek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index ee3ca4a2f12b..9f48ecf9c627 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c

[PATCH v2 3/3] net: phy: micrel: Use the general dummy stubs for MMD register access

2018-03-19 Thread Kevin Hao
The new general dummy stubs for MMD register access were introduced. Use that for the codes reuse. Signed-off-by: Kevin Hao <haoke...@gmail.com> --- drivers/net/phy/micrel.c | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/drivers/net/phy/micr

[PATCH v2 1/3] net: phy: Add general dummy stubs for MMD register access

2018-03-19 Thread Kevin Hao
. Fixes: b6b5e8a69118 ("gianfar: Disable EEE autoneg by default") Signed-off-by: Kevin Hao <haoke...@gmail.com> --- drivers/net/phy/phy_device.c | 17 + include/linux/phy.h | 4 2 files changed, 21 insertions(+) diff --git a/drivers/net/phy/phy_device

[PATCH v2 0/3] net: phy: Add general dummy stubs for MMD register access

2018-03-19 Thread Kevin Hao
v2: As suggested by Andrew: - Add general dummy stubs - Also use that for the micrel phy This patch series fix the Ethernet broken on the mpc8315erdb board introduced by commit b6b5e8a69118 ("gianfar: Disable EEE autoneg by default"). Kevin Hao (3): net: phy: Add general d

Re: [PATCH] net: phy: realtek: Add dummy stubs for MMD register access for rtl8211b

2018-03-19 Thread Kevin Hao
On Mon, Mar 19, 2018 at 01:39:39PM +0100, Andrew Lunn wrote: > On Mon, Mar 19, 2018 at 08:05:47PM +0800, Kevin Hao wrote: > > The Ethernet on mpc8315erdb is broken since commit b6b5e8a69118 > > ("gianfar: Disable EEE autoneg by default"). The reason is that > > e

[PATCH] net: phy: realtek: Add dummy stubs for MMD register access for rtl8211b

2018-03-19 Thread Kevin Hao
ect method. This makes it seem that the EEE is supported by this phy device. And the subsequent writing to the MMD registers does cause the phy malfunction. So add dummy stubs for the MMD register access to fix this issue. Fixes: b6b5e8a69118 ("gianfar: Disable EEE autoneg by default")

Re: [PATCH] Revert "net/phy: Add Vitesse 8641 phy ID"

2015-09-19 Thread Kevin Hao
On Fri, Sep 18, 2015 at 09:36:42AM +, Shaohui Xie wrote: > > -Original Message- > > From: Kevin Hao [mailto:haoke...@gmail.com] > > Sent: Friday, September 18, 2015 3:43 PM > > To: netdev@vger.kernel.org > > Cc: Florian Fainelli; Xie Shaohui-B21989 > &

[PATCH] Revert "net/phy: Add Vitesse 8641 phy ID"

2015-09-18 Thread Kevin Hao
of the Ethernet on p1010rdb-pa board. So we definitely need a rework in order to support the 8641 phy in this driver. Signed-off-by: Kevin Hao <haoke...@gmail.com> --- drivers/net/phy/vitesse.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/net/phy/vitesse.c b/drivers/n

[PATCH net-next] net: fec: fix the race between xmit and bdp reclaiming path

2015-08-06 Thread Kevin Hao
to guarantee that the update to the bdps, dirty_tx and cur_tx performed in the proper order. Signed-off-by: Kevin Hao haoke...@gmail.com --- I have run into a kernel hang due to this race on a custom rt kernel. Even I can't reproduce it on the vanilla kernel, it seems that the same race window does