[PATCH] Revert "net: ethernet: bcmgenet: use phydev from struct net_device"

2016-09-23 Thread Jaedon Shin
cmgenet_close(), unfortunately, there has been MAC activity, so the PHY gets in a bad state Signed-off-by: Jaedon Shin <jaedon.s...@gmail.com> --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 45 ++ drivers/net/ethernet/broadcom/genet/bcmgenet.h | 1 + drivers/ne

Re: [PATCH] net: bcmgenet: Fix EPHY reset in power up

2016-09-23 Thread Jaedon Shin
Hi Florian, > On 24 Sep 2016, at 1:54 AM, Florian Fainelli <f.faine...@gmail.com> wrote: > > On 09/23/2016 08:04 AM, Jaedon Shin wrote: >> Hi Andrew, >> >> On 23 Sep 2016, at 11:06 PM, Andrew Lunn <and...@lunn.ch> wrote: >>> >>> On

Re: [PATCH] net: bcmgenet: Fix EPHY reset in power up

2016-09-23 Thread Jaedon Shin
Hi Andrew, On 23 Sep 2016, at 11:06 PM, Andrew Lunn <and...@lunn.ch> wrote: > > On Fri, Sep 23, 2016 at 10:20:04PM +0900, Jaedon Shin wrote: >> The bcmgenet_mii_reset() is always not running in power up sequence >> after 'commit 62469c76007e ("net: ethernet: bcmgen

[PATCH] net: bcmgenet: Fix EPHY reset in power up

2016-09-23 Thread Jaedon Shin
ate phydev for mii reset when runs power up to open interface. Signed-off-by: Jaedon Shin <jaedon.s...@gmail.com> --- drivers/net/ethernet/broadcom/genet/bcmgenet.h | 1 + drivers/net/ethernet/broadcom/genet/bcmmii.c | 9 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --g

[PATCH] net: phy: bcm7xxx: Add entries for Broadcom BCM7346 and BCM7362

2016-03-24 Thread Jaedon Shin
Add PHY entries for the Broadcom BCM7346 and BCM7362 chips, these are 40nm generation Ethernet PHY. Fixes: 815717d1473e ("net: phy: bcm7xxx: Remove wildcard entries") Signed-off-by: Jaedon Shin <jaedon.s...@gmail.com> --- drivers/net/phy/bcm7xxx.c | 4 include/linux/brcmp

[PATCH] net: bcmgenet: Fix internal PHY link state

2016-02-18 Thread Jaedon Shin
statement for phy_mac_interrupt() has two conditions. The first condition to check GENET_HAS_MDIO_INTR is not related PHY link state, so this patch removes it. Fixes: 49f7a471e4d1 ("net: bcmgenet: Properly configure PHY to ignore interrupt") Signed-off-by: Jaedon Shin <jaedon.s...@gmai

Re: [PATCH] net: bcmgenet: Add MDIO_INTR in GENETv2

2016-02-15 Thread Jaedon Shin
Hi Florian, > On Feb 16, 2016, at 3:18 AM, Florian Fainelli <f.faine...@gmail.com> wrote: > > Hi Jaedon, > > On 15/02/2016 00:42, Jaedon Shin wrote: >> The GENETv2 chipsets has MDIO interrupt like the GENETv3+ chipsets. >> >> The previous commit d5c

[PATCH] net: bcmgenet: Add MDIO_INTR in GENETv2

2016-02-15 Thread Jaedon Shin
some 40nm generation chipsets. Signed-off-by: Jaedon Shin <jaedon.s...@gmail.com> --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 ++-- drivers/net/ethernet/broadcom/genet/bcmgenet.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/broadcom/g

Re: [PATCH] net: bcmgenet: fix uncleaned dma flags

2015-08-20 Thread Jaedon Shin
2015. 8. 21., 오전 7:04, Florian Fainelli f.faine...@gmail.com 작성: On 19/08/15 20:17, Jaedon Shin wrote: Clean the dma flags of multiq ring buffer int the interface stop process. This patch fixes that the genet is not running while the interface is re-enabled. $ ifup eth0 - running after

[PATCH v2] net: bcmgenet: fix uncleaned dma flags

2015-08-20 Thread Jaedon Shin
() do clean ring16 dma flag only. If the genet has multiq, the dma register is not cleaned. and bcmgenet_init_dma() is not done correctly. in case GENET_V2(tx_queues=4), tdma_ctrl has 0x1e after running bcmgenet_dma_disable(). Signed-off-by: Jaedon Shin jaedon.s...@gmail.com --- drivers/net

[PATCH] net: bcmgenet: fix uncleaned dma flags

2015-08-19 Thread Jaedon Shin
() do clean ring16 dma flag only. If the genet has multiq, the dma register is not cleaned. and bcmgenet_init_dma() is not done correctly. in case GENET_V2(tx_queues=4), tdma_ctrl has 0x1e after running bcmgenet_dma_disable(). Signed-off-by: Jaedon Shin jaedon.s...@gmail.com --- drivers/net

Re: [PATCH net-next 0/6] net: bcmgenet: PHY initialization rework

2015-07-17 Thread Jaedon Shin
On Jul 17, 2015, at 7:51 AM, Florian Fainelli f.faine...@gmail.com wrote: Hi David, Petri, Jaedon, This patch series reworks how we perform PHY initialization and resets in the GENET driver. Although this contains mostly fixes, some of the changes are a bit too intrusive to be backported