Re: net: ucc: tbi phy detection broken by 058112c7efc9ef43bb511c137293dddbe6e42908

2014-12-20 Thread Florian Fainelli
2014-12-18 19:49 GMT-08:00 Lennart Sorensen : > I have been trying to move an 8360 based system from a 3.0 kernel to a > 3.12 (on the way to 3.14 with ipipe/xenomai) kernel and encountered an > oops in the ucc_geth driver when using RTBI mode on one of the ucc > ports. I haven't managed to find an

Re: [v2 2/9] dpaa_eth: add support for DPAA Ethernet

2015-08-08 Thread Florian Fainelli
Le 08/05/15 08:41, Madalin Bucur a écrit : > This introduces the Freescale Data Path Acceleration Architecture > (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, > BMan, PAMU and FMan drivers to deliver Ethernet connectivity on > the Freescale DPAA QorIQ platforms. > > Signed-off-

Re: [PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-05 Thread Florian Fainelli
[snip] > +/* RGMII bridge supports only GMII/TBI and RGMII/RTBI PHYs */ > +static inline int rgmii_valid_mode(int phy_mode) > +{ > + return phy_mode == PHY_MODE_GMII || > + phy_mode == PHY_MODE_MII || > + phy_mode == PHY_MODE_RGMII || > + phy_mode =

Re: [PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-05 Thread Florian Fainelli
2013/11/5 Alistair Popple : > On Tue, 5 Nov 2013 10:47:22 Florian Fainelli wrote: >> [snip] >> >> > +/* RGMII bridge supports only GMII/TBI and RGMII/RTBI PHYs */ >> > +static inline int rgmii_valid_mode(int phy_mode) >> > +{ >

Re: [PATCH 3/7] IBM Akebono: Add support for a new PHY to the IBM emac driver

2013-11-05 Thread Florian Fainelli
2013/11/5 Benjamin Herrenschmidt : > On Wed, 2013-11-06 at 12:38 +1100, Alistair Popple wrote: >> > Right, rgmii_mode_name() just has informative purposes and should be >> > removed, I would suggest using standard device tree bindings >> property >> > (phy-mode) anyway such that you could use of_ge

Re: [PATCH 2/4] phylib: Add generic 10G driver

2013-11-12 Thread Florian Fainelli
Hello Shaohui, 2013/11/11 : > From: Andy Fleming > > Very incomplete, but will allow for binding an ethernet controller > to it. > > Also, Add XGMII interface type So that should be two separate patches, and drivers/of/of_net.c::of_get_phy_mode() must be updated to know about XMGII. > > Signed-

[PATCH 0/5] mv643xx_eth: use mvmdio MDIO bus driver

2013-01-29 Thread Florian Fainelli
akage. The potential for merge conflicts should be very small. You can probably safely merge patches 1 to 4 if Thomas agrees, and we will see what kind of feeback I get on patch 5. Florian Fainelli (5): net: mvmdio: unmap base register address at driver removal net: mvmdio: rename base regis

[PATCH 1/5] net: mvmdio: unmap base register address at driver removal

2013-01-29 Thread Florian Fainelli
Fix the driver remove callback to unmap the base register address and not leak this mapping after the driver has been removed. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/marvell/mvmdio.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/marvell

[PATCH 3/5] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-01-29 Thread Florian Fainelli
ned-off-by: Florian Fainelli --- .../devicetree/bindings/net/marvell-orion-mdio.txt |3 + drivers/net/ethernet/marvell/mvmdio.c | 83 +--- 2 files changed, 75 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/net/marvell-orion-m

[PATCH 2/5] net: mvmdio: rename base register cookie from smireg to regs

2013-01-29 Thread Florian Fainelli
This patch renames the base register cookie in the mvmdio drive from "smireg" to "regs" since a subsequent patch is going to use an ioremap() cookie whose size is larger than a single register of 4 bytes. No functionnal code change introduced. Signed-off-by: Florian Fainel

[PATCH 5/5] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-01-29 Thread Florian Fainelli
shared registers because it will use a subset of this shared register (shared_base + 0x4 - shared_base + 0x84). The Ethernet driver is also updated to look up for a PHY device using the Orion MDIO bus driver. Signed-off-by: Florian Fainelli --- arch/arm/plat-orion/common.c | 84

[PATCH 4/5] net: mvmdio: allow Device Tree and platform device to coexist

2013-01-29 Thread Florian Fainelli
This patch changes the Marvell MDIO driver to be registered by using both Device Tree and platform device methods. The driver voluntarily does not use devm_ioremap() to share the same error path for Device Tree and non-Device Tree cases. Signed-off-by: Florian Fainelli --- drivers/net/ethernet

Re: [PATCH 1/5] net: mvmdio: unmap base register address at driver removal

2013-01-29 Thread Florian Fainelli
On 01/29/2013 04:32 PM, Thomas Petazzoni wrote: Dear Florian Fainelli, On Tue, 29 Jan 2013 16:24:04 +0100, Florian Fainelli wrote: Fix the driver remove callback to unmap the base register address and not leak this mapping after the driver has been removed. Signed-off-by: Florian Fainelli

Re: [PATCH 5/5] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-01-29 Thread Florian Fainelli
On 01/29/2013 05:01 PM, Thomas Petazzoni wrote: Dear Florian Fainelli, On Tue, 29 Jan 2013 16:24:08 +0100, Florian Fainelli wrote: This patch converts the Marvell MV643XX ethernet driver to use the Marvell Orion MDIO driver. As a result, PowerPC and ARM platforms registering the Marvell

Re: [PATCH 5/5] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-01-29 Thread Florian Fainelli
Le mardi 29 janvier 2013 19:13:06, Jason Gunthorpe a écrit : > On Tue, Jan 29, 2013 at 04:24:08PM +0100, Florian Fainelli wrote: > > This patch converts the Marvell MV643XX ethernet driver to use the > > Marvell Orion MDIO driver. As a result, PowerPC and ARM platforms > > re

Re: [PATCH 4/5] net: mvmdio: allow Device Tree and platform device to coexist

2013-01-29 Thread Florian Fainelli
Le mardi 29 janvier 2013 18:59:12, Jason Gunthorpe a écrit : > On Tue, Jan 29, 2013 at 04:24:07PM +0100, Florian Fainelli wrote: > > - dev->err_interrupt = irq_of_parse_and_map(pdev->dev.of_node, 0); > > + if (pdev->dev.of_node) { > > + dev->reg

Re: [PATCH 0/5] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-14 Thread Florian Fainelli
Hello Jason, Le 03/14/13 18:25, Jason Cooper a écrit : Florian, Any word on version 2 of this series? I'd like to base the conversion of kirkwood to DT based ethernet init on it. Just sent them out for review, thanks for reminder, they were sitting in my tree for a couple days already. --

[PATCH 0/4] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-14 Thread Florian Fainelli
akage. The potential for merge conflicts should be very small. Florian Fainelli (4): net: mvmdio: allow platform device style registration net: mvmdio: rename base register cookie from smireg to regs net: mvmdio: enhance driver to support SMI error/done interrupts mv643xx_eth: convert

[PATCH 2/4 v2] net: mvmdio: rename base register cookie from smireg to regs

2013-03-14 Thread Florian Fainelli
This patch renames the base register cookie in the mvmdio drive from "smireg" to "regs" since a subsequent patch is going to use an ioremap() cookie whose size is larger than a single register of 4 bytes. No functionnal code change introduced. Acked-by: Thomas Petazzoni Si

[PATCH 4/4 v2] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-03-14 Thread Florian Fainelli
shared registers because it will use a subset of this shared register (shared_base + 0x4 - shared_base + 0x84). The Ethernet driver is also updated to look up for a PHY device using the Orion MDIO bus driver. Signed-off-by: Florian Fainelli --- Changes since v1: - removed one too many mdio bus

[PATCH 3/4 v2] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-03-14 Thread Florian Fainelli
ned-off-by: Florian Fainelli --- Chances since v1: - always use orion_smi_is_done() helper - make interrupt/non-interrupt code path entirely independant .../devicetree/bindings/net/marvell-orion-mdio.txt |3 + drivers/net/ethernet/marvell/mvmdio.c | 83 +--- 2 fil

[PATCH] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-03-14 Thread Florian Fainelli
shared registers because it will use a subset of this shared register (shared_base + 0x4 - shared_base + 0x84). The Ethernet driver is also updated to look up for a PHY device using the Orion MDIO bus driver. Signed-off-by: Florian Fainelli --- arch/arm/plat-orion/common.c | 97

[PATCH 1/4 v2] net: mvmdio: allow platform device style registration

2013-03-14 Thread Florian Fainelli
error and removal. This change is harmless for Device Tree platforms because they will get the driver be registered the same way as it was before. Signed-off-by: Florian Fainelli --- Changes since v1: - use device managed helpers to fix an ioremap leak in remove function - remove the use of

Re: [PATCH] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-03-14 Thread Florian Fainelli
Hello Jason, Le 14/03/2013 20:02, Jason Cooper a écrit : Florian, On Thu, Mar 14, 2013 at 07:08:32PM +0100, Florian Fainelli wrote: This patch converts the Marvell MV643XX ethernet driver to use the Marvell Orion MDIO driver. As a result, PowerPC and ARM platforms registering the Marvell

Re: [PATCH 4/4 v2] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-03-15 Thread Florian Fainelli
Le 03/14/13 19:08, Florian Fainelli a écrit : This patch converts the Marvell MV643XX ethernet driver to use the Marvell Orion MDIO driver. As a result, PowerPC and ARM platforms registering the Marvell MV643XX ethernet driver are also updated to register a Marvell Orion MDIO driver. This driver

Re: [PATCH 0/4] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-15 Thread Florian Fainelli
Le 03/15/13 13:53, David Miller a écrit : From: Florian Fainelli Date: Thu, 14 Mar 2013 19:08:31 +0100 This patch converts the mv643xx_eth driver to use the mvmdio MDIO bus driver instead of rolling its own implementation. As a result, all users of this mv643xx_eth driver are converted to

Re: [PATCH 0/4] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-15 Thread Florian Fainelli
Le 03/15/13 13:55, David Miller a écrit : From: David Miller Date: Fri, 15 Mar 2013 08:53:21 -0400 (EDT) From: Florian Fainelli Date: Thu, 14 Mar 2013 19:08:31 +0100 This patch converts the mv643xx_eth driver to use the mvmdio MDIO bus driver instead of rolling its own implementation. As a

Re: [PATCH 0/4] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-15 Thread Florian Fainelli
Le 03/15/13 14:05, David Miller a écrit : From: Florian Fainelli Date: Fri, 15 Mar 2013 13:53:10 +0100 Le 03/15/13 13:55, David Miller a écrit : From: David Miller Date: Fri, 15 Mar 2013 08:53:21 -0400 (EDT) From: Florian Fainelli Date: Thu, 14 Mar 2013 19:08:31 +0100 This patch

[PATCH 0/4 v3] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-22 Thread Florian Fainelli
akage. The potential for merge conflicts should be very small. Florian Fainelli (4): net: mvmdio: allow platform device style registration net: mvmdio: rename base register cookie from smireg to regs net: mvmdio: enhance driver to support SMI error/done interrupts mv643xx_eth: convert

[PATCH 1/4 v3] net: mvmdio: allow platform device style registration

2013-03-22 Thread Florian Fainelli
error and removal. This change is harmless for Device Tree platforms because they will get the driver be registered the same way as it was before. Signed-off-by: Florian Fainelli --- Changes since v2: - use of_mdiobus_register if device tree node is available to ensure that all child PHY nodes

[PATCH 3/4 v3] net: mvmdio: enhance driver to support SMI error/done interrupts

2013-03-22 Thread Florian Fainelli
ned-off-by: Florian Fainelli --- Changes since v2: - remove NO_IRQ usage which is not portable, check for irq >= 0 instead - factor out mdiobus cleaning under the out_mdio label in probe() Chances since v1: - always use orion_smi_is_done() helper - make interrupt/non-interrupt code path entirel

[PATCH 2/4 v3] net: mvmdio: rename base register cookie from smireg to regs

2013-03-22 Thread Florian Fainelli
This patch renames the base register cookie in the mvmdio drive from "smireg" to "regs" since a subsequent patch is going to use an ioremap() cookie whose size is larger than a single register of 4 bytes. No functionnal code change introduced. Acked-by: Thomas Petazzoni Si

[PATCH 4/4 v3] mv643xx_eth: convert to use the Marvell Orion MDIO driver

2013-03-22 Thread Florian Fainelli
ered by consumers of arch/arm/plat-orion/common.c and other instances (ge01, ge10 and ge11) were all pointing their shared_smi to ge00. For PowerPC the in-tree Device Tree Source files mention only one MV643XX ethernet MAC instance so the MDIO bus driver is registered only when id == 0. Signed-off-by

Re: [PATCH 0/4 v3] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-22 Thread Florian Fainelli
Le 03/22/13 15:14, Jason Cooper a écrit : On Fri, Mar 22, 2013 at 02:39:24PM +0100, Florian Fainelli wrote: Hi all, This patch converts the mv643xx_eth driver to use the mvmdio MDIO bus driver instead of rolling its own implementation. As a result, all users of this mv643xx_eth driver are

Re: [PATCH 0/4 v3] mv643xx_eth: use mvmdio MDIO bus driver

2013-03-22 Thread Florian Fainelli
Le 03/22/13 15:29, Jason Cooper a écrit : Ok, thanks! Does that mean that you want these changes to go via your tree? David initially applied my v2 of this patchset, and since it thouches mostly ethernet driver stuff, I would rather make it go via his tree if both of you agree. Yeah, I thought

Re: [PATCH 0/2] Fix for mv643xx_eth built as module

2013-03-24 Thread Florian Fainelli
omas Petazzoni when the driver > can't find its PHY. > > These patches apply on top of Florian Fainelli's patchset. They have > been tested on Marvel Kirkwood non-DT. Both fixes look good to me, thanks for fixing this! Acked-by: Florian Fainelli -- Florian _

Re: [PATCH 0/2] net: mv643xx_eth: use managed clk and allocation

2013-04-11 Thread Florian Fainelli
tches before. To get the order required to apply them right, this patch set combines both patches into one set. Sebastian Hesselbarth (2): net: mv643xx_eth: add shared clk and cleanup existing clk handling net: mv643xx_eth: use managed devm_kzalloc Looks good, thanks Sebastian! Acked-by: Fl

[PATCH 0/9 net-next] net: of_phy_connect_fixed_link removal

2014-05-19 Thread Florian Fainelli
s to be merged after the first 8 patches in order to avoid breakage. Florian Fainelli (9): Documentation: devicetree: add old and deprecated 'fixed-link' Documentation: devicetree: net: refer to fixed-link.txt net: bcmgenet: use the new fixed PHY helpers net: systemport: use the n

[PATCH net-next 1/9] Documentation: devicetree: add old and deprecated 'fixed-link'

2014-05-19 Thread Florian Fainelli
Update the fixed-link Device Tree binding documentation to contain information about the old and deprecated 5-digit 'fixed-link' property. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/fixed-link.txt | 12 1 file changed, 12 insertions(+) di

[PATCH net-next 2/9] Documentation: devicetree: net: refer to fixed-link.txt

2014-05-19 Thread Florian Fainelli
Update the Freescale TSEC PHY, Broadcom GENET & SYSTEMPORT Device Tree binding documentation to refer to the fixed-link Device Tree binding in fixed-link.txt. Reviewed-by: Thomas Petazzoni Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/broadcom-bcmgenet.txt

[PATCH net-next 3/9] net: bcmgenet: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/genet/bcmmii.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c b/drivers/net/ethernet/broadcom/genet/bcmmii.c index 4608673beaff..add8d8596084 100644

[PATCH net-next 4/9] net: systemport: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/bcmsysport.c | 17 +++-- drivers/net/ethernet/broadcom/bcmsysport.h | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom

[PATCH net-next 5/9] fs_enet: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c index dc80db41d6b3

[PATCH net-next 7/9] ucc_geth: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/ucc_geth.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index c8299c31b21f..fab39e295441 100644 --- a/drivers

[PATCH net-next 6/9] gianfar: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/gianfar.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index e2d42475b006..282674027c92 100644 --- a/drivers/net

[PATCH net-next 8/9] of: mdio: remove of_phy_connect_fixed_link

2014-05-19 Thread Florian Fainelli
All in-tree drivers have been converted to use the new pair of functions: of_is_fixed_phy_link() plus of_phy_register_fixed_link(), we can now safely remove of_phy_connect_fixed_link. Signed-off-by: Florian Fainelli --- drivers/of/of_mdio.c| 38

[PATCH net-next 9/9] powerpc/fsl: fsl_soc: remove 'fixed-link' parsing code

2014-05-19 Thread Florian Fainelli
as needed because we could not issue a fixed MDIO bus re-scan within network drivers. The fixed PHYs had to be registered before the network drivers would call of_phy_connect_fixed_link(). All of these caveats are solved now, such that we can safely remove of_add_fixed_phys() now. Signed-off-

Re: [PATCH 0/9 net-next] net: of_phy_connect_fixed_link removal

2014-05-20 Thread Florian Fainelli
2014-05-19 17:56 GMT-07:00 Florian Fainelli : > Hi all, > > This patch set removes of_phy_connect_fixed_link() from the tree now that > we have a better solution for dealing with fixed PHY (emulated PHY) devices > for drivers that require them. > > First two patches update th

[PATCH RESEND 0/9 net-next] net: of_phy_connect_fixed_link removal

2014-05-21 Thread Florian Fainelli
s to be merged after the first 8 patches in order to avoid breakage. Florian Fainelli (9): Documentation: devicetree: add old and deprecated 'fixed-link' Documentation: devicetree: net: refer to fixed-link.txt net: bcmgenet: use the new fixed PHY helpers net: systemport: use the n

[PATCH RESEND net-next 1/9] Documentation: devicetree: add old and deprecated 'fixed-link'

2014-05-21 Thread Florian Fainelli
Update the fixed-link Device Tree binding documentation to contain information about the old and deprecated 5-digit 'fixed-link' property. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/fixed-link.txt | 12 1 file changed, 12 insertions(+) di

[PATCH RESEND net-next 2/9] Documentation: devicetree: net: refer to fixed-link.txt

2014-05-21 Thread Florian Fainelli
Update the Freescale TSEC PHY, Broadcom GENET & SYSTEMPORT Device Tree binding documentation to refer to the fixed-link Device Tree binding in fixed-link.txt. Reviewed-by: Thomas Petazzoni Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/broadcom-bcmgenet.txt

[PATCH RESEND net-next 3/9] net: bcmgenet: use the new fixed PHY helpers

2014-05-21 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/genet/bcmmii.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c b/drivers/net/ethernet/broadcom/genet/bcmmii.c index 4608673beaff..add8d8596084 100644

[PATCH RESEND net-next 4/9] net: systemport: use the new fixed PHY helpers

2014-05-21 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/bcmsysport.c | 17 +++-- drivers/net/ethernet/broadcom/bcmsysport.h | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom

[PATCH RESEND net-next 5/9] fs_enet: use the new fixed PHY helpers

2014-05-21 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c index dc80db41d6b3

[PATCH RESEND net-next 6/9] gianfar: use the new fixed PHY helpers

2014-05-21 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/gianfar.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index e2d42475b006..282674027c92 100644 --- a/drivers/net

[PATCH RESEND net-next 7/9] ucc_geth: use the new fixed PHY helpers

2014-05-21 Thread Florian Fainelli
-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/ucc_geth.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index c8299c31b21f..fab39e295441 100644 --- a/drivers

[PATCH RESEND net-next 8/9] of: mdio: remove of_phy_connect_fixed_link

2014-05-21 Thread Florian Fainelli
All in-tree drivers have been converted to use the new pair of functions: of_is_fixed_phy_link() plus of_phy_register_fixed_link(), we can now safely remove of_phy_connect_fixed_link. Signed-off-by: Florian Fainelli --- drivers/of/of_mdio.c| 38

[PATCH RESEND net-next 9/9] powerpc/fsl: fsl_soc: remove 'fixed-link' parsing code

2014-05-21 Thread Florian Fainelli
as needed because we could not issue a fixed MDIO bus re-scan within network drivers. The fixed PHYs had to be registered before the network drivers would call of_phy_connect_fixed_link(). All of these caveats are solved now, such that we can safely remove of_add_fixed_phys() now. Signed-off-

Re: [PATCH RESEND net-next 4/9] net: systemport: use the new fixed PHY helpers

2014-05-21 Thread Florian Fainelli
2014-05-21 14:55 GMT-07:00 Sergei Shtylyov : > On 05/22/2014 01:38 AM, Florian Fainelli wrote: > >> of_phy_connect_fixed_link() is becoming obsolete, and also required >> platform code to register the fixed PHYs at the specified addresses for >> those to be usable. Get r

[PATCH net-next v2 0/9] net: of_phy_connect_fixed_link removal

2014-05-22 Thread Florian Fainelli
s to be merged after the first 8 patches in order to avoid breakage. Florian Fainelli (9): Documentation: devicetree: add old and deprecated 'fixed-link' Documentation: devicetree: net: refer to fixed-link.txt net: bcmgenet: use the new fixed PHY helpers net: systemport: use the n

[PATCH net-next v2 1/9] Documentation: devicetree: add old and deprecated 'fixed-link'

2014-05-22 Thread Florian Fainelli
Update the fixed-link Device Tree binding documentation to contain information about the old and deprecated 5-digit 'fixed-link' property. Signed-off-by: Florian Fainelli --- Changes in v2: - fixed typos and spelling mistakes as spotted by Sergei Documentation/devicetree/bindings

[PATCH net-next v2 2/9] Documentation: devicetree: net: refer to fixed-link.txt

2014-05-22 Thread Florian Fainelli
Update the Freescale TSEC PHY, Broadcom GENET & SYSTEMPORT Device Tree binding documentation to refer to the fixed-link Device Tree binding in fixed-link.txt. Reviewed-by: Thomas Petazzoni Signed-off-by: Florian Fainelli --- No changes in v2 Documentation/devicetree/bindings/net/broa

[PATCH net-next v2 3/9] net: bcmgenet: use the new fixed PHY helpers

2014-05-22 Thread Florian Fainelli
-off-by: Florian Fainelli --- No changes in v2 drivers/net/ethernet/broadcom/genet/bcmmii.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c b/drivers/net/ethernet/broadcom/genet/bcmmii.c index 4608673beaff

[PATCH net-next v2 4/9] net: systemport: use the new fixed PHY helpers

2014-05-22 Thread Florian Fainelli
-off-by: Florian Fainelli --- No changes in v2 drivers/net/ethernet/broadcom/bcmsysport.c | 17 +++-- drivers/net/ethernet/broadcom/bcmsysport.h | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet

[PATCH net-next v2 5/9] fs_enet: use the new fixed PHY helpers

2014-05-22 Thread Florian Fainelli
-off-by: Florian Fainelli --- - merge if conditions on the same line as suggested by Sergei - add comment explaining the device_node pointer assignment drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a

[PATCH net-next v2 6/9] gianfar: use the new fixed PHY helpers

2014-05-22 Thread Florian Fainelli
-off-by: Florian Fainelli --- No changes in v2 drivers/net/ethernet/freescale/gianfar.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index e2d42475b006..282674027c92 100644

[PATCH net-next v2 7/9] ucc_geth: use the new fixed PHY helpers

2014-05-22 Thread Florian Fainelli
-off-by: Florian Fainelli --- No changes in v2 drivers/net/ethernet/freescale/ucc_geth.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index c8299c31b21f..fab39e295441

[PATCH net-next v2 8/9] of: mdio: remove of_phy_connect_fixed_link

2014-05-22 Thread Florian Fainelli
All in-tree drivers have been converted to use the new pair of functions: of_is_fixed_phy_link() plus of_phy_register_fixed_link(), we can now safely remove of_phy_connect_fixed_link. Signed-off-by: Florian Fainelli --- No changes in v2 drivers/of/of_mdio.c| 38

[PATCH net-next v2 9/9] powerpc/fsl: fsl_soc: remove 'fixed-link' parsing code

2014-05-22 Thread Florian Fainelli
as needed because we could not issue a fixed MDIO bus re-scan within network drivers. The fixed PHYs had to be registered before the network drivers would call of_phy_connect_fixed_link(). All of these caveats are solved now, such that we can safely remove of_add_fixed_phys() now. Signed-off-by: Flor

Re: [PATCH 0/7] Phy and mdiobus fixes

2015-09-19 Thread Florian Fainelli
erface using the fixed-phy infrastructure is configured according to > the other interface using the in-band-status - which is caused by the > fixed-phy code not verifying that the phy_device passed in is actually > a fixed-phy device, rather than a real MDIO phy. > > Lastly, having

Re: [PATCH v3 0/9] Phy, mdiobus, and netdev struct device fixes

2015-09-24 Thread Florian Fainelli
that patch to some degree now, though several of them needed the > Kconfig hacked to allow it (not all had || COMPILE_TEST clause on > their dependencies.) Tested-by: Florian Fainelli Reviewed-by: Florian Fainelli Thanks for fixing that. > > Previous cover letters below: > > Th

Re: [PATCH 1/3][v2] net: phy: introduce 1000BASE-KX and 10GBASE-KR

2016-01-15 Thread Florian Fainelli
Le 15/01/2016 14:57, Sebastian Hesselbarth a écrit : > On 15.01.2016 05:01, Shaohui Xie wrote: >>> -Original Message- >>> From: Andrew Lunn [mailto:and...@lunn.ch] >>> Sent: Friday, January 15, 2016 12:44 AM >>> To: shh@gmail.com >>> Cc: devicet...@vger.kernel.org; net...@vger.kernel.or

Re: [PATCH] dma-mapping: treat dev->bus_dma_mask as a DMA limit

2019-11-13 Thread Florian Fainelli
On 11/13/19 12:34 PM, Robin Murphy wrote: > On 13/11/2019 4:13 pm, Nicolas Saenz Julienne wrote: >> Using a mask to represent bus DMA constraints has a set of limitations. >> The biggest one being it can only hold a power of two (minus one). The >> DMA mapping code is already aware of this and trea

Re: [RFC PATCH dpss_eth] Don't initialise ports with no PHY

2020-04-24 Thread Florian Fainelli
On 4/24/2020 3:29 PM, Darren Stevens wrote: > Since cbb961ca271e ("Use random MAC address when none is given") > Varisys Cyrus P5020 boards have been listing 5 ethernet ports instead of > the 2 the board has.This is because we were preventing the adding of the > unused ports by not suppling them

Re: [PATCH v2 7/7] net: stmmac: dwmac-meson8b: use xxxsetbits32

2018-09-24 Thread Florian Fainelli
On 09/24/2018 12:04 PM, Corentin Labbe wrote: > This patch convert meson stmmac glue driver to use all xxxsetbits32 functions. > > Signed-off-by: Corentin Labbe > --- > .../net/ethernet/stmicro/stmmac/dwmac-meson8b.c| 56 > +- > 1 file changed, 22 insertions(+), 34 delet

Re: ethernet "bus" number in DTS ?

2018-10-23 Thread Florian Fainelli
On 10/23/18 9:49 AM, Joakim Tjernlund wrote: > SPI (and others) has a way to define bus number in a aliases: > aliases { > ethernet4 = &enet4; > ethernet0 = &enet0; > ethernet1 = &enet1; > ethernet2 = &enet2; > ethernet3 =

Re: ethernet "bus" number in DTS ?

2018-10-23 Thread Florian Fainelli
On 10/23/18 11:02 AM, Joakim Tjernlund wrote: > On Tue, 2018-10-23 at 10:03 -0700, Florian Fainelli wrote: >> CAUTION: This email originated from outside of the organization. Do not >> click links or open attachments unless you recognize the sender and know the >> content is

Re: ethernet "bus" number in DTS ?

2018-10-23 Thread Florian Fainelli
On 10/23/18 1:02 PM, Joakim Tjernlund wrote: > On Tue, 2018-10-23 at 11:20 -0700, Florian Fainelli wrote: >> >> On 10/23/18 11:02 AM, Joakim Tjernlund wrote: >>> On Tue, 2018-10-23 at 10:03 -0700, Florian Fainelli wrote: >>>> >>>> >>>>

[PATCH 0/2] arm64: Cut rebuild time when changing CONFIG_BLK_DEV_INITRD

2018-10-24 Thread Florian Fainelli
objects rebuilds from 1920 down to 26, so a factor 73 approximately. Apologies for the long CC list, please let me know how you would go about merging that and if another approach would be preferable, e.g: introducing a CONFIG_ARCH_INITRD_BELOW_START_OK Kconfig option or something like that. Florian

[PATCH 1/2] arch: Add asm-generic/initrd.h and make use of it for most architectures

2018-10-24 Thread Florian Fainelli
. Signed-off-by: Florian Fainelli --- arch/alpha/include/asm/Kbuild | 1 + arch/arc/include/asm/Kbuild| 1 + arch/arm/include/asm/Kbuild| 1 + arch/c6x/include/asm/Kbuild| 1 + arch/h8300/include/asm/Kbuild | 1 + arch/hexagon/include/asm/Kbuild| 1 + arch/ia64

[PATCH 2/2] arm64: Create asm/initrd.h

2018-10-24 Thread Florian Fainelli
used. This significantly cuts the number of objects that need to be rebuilt on ARM64 due to the repercusions of including asm/memory.h in several places. Signed-off-by: Florian Fainelli --- arch/arm64/include/asm/initrd.h | 13 + arch/arm64/include/asm/memory.h | 8 drivers

[PATCH v2 0/2] arm64: Cut rebuild time when changing CONFIG_BLK_DEV_INITRD

2018-10-24 Thread Florian Fainelli
file - trim down the CC list to maximize the chances of people receiving this Florian Fainelli (2): arch: Add asm-generic/initrd.h and make use of it for most architectures arm64: Create asm/initrd.h arch/alpha/include/asm/Kbuild | 1 + arch/arc/include/asm/Kbuild| 1 + arch

[PATCH v2 1/2] arch: Add asm-generic/initrd.h and make use of it for most architectures

2018-10-24 Thread Florian Fainelli
. Signed-off-by: Florian Fainelli --- arch/alpha/include/asm/Kbuild | 1 + arch/arc/include/asm/Kbuild| 1 + arch/arm/include/asm/Kbuild| 1 + arch/c6x/include/asm/Kbuild| 1 + arch/h8300/include/asm/Kbuild | 1 + arch/hexagon/include/asm/Kbuild| 1 + arch/ia64

[PATCH v2 2/2] arm64: Create asm/initrd.h

2018-10-24 Thread Florian Fainelli
used. This significantly cuts the number of objects that need to be rebuilt on ARM64 due to the repercusions of including asm/memory.h in several places. Signed-off-by: Florian Fainelli --- arch/arm64/include/asm/initrd.h | 13 + arch/arm64/include/asm/memory.h | 8 drivers

Re: [PATCH v2 0/2] arm64: Cut rebuild time when changing CONFIG_BLK_DEV_INITRD

2018-10-24 Thread Florian Fainelli
On 10/24/18 12:55 PM, Rob Herring wrote: > On Wed, Oct 24, 2018 at 2:33 PM Florian Fainelli wrote: >> >> Hi all, >> >> While investigating why ARM64 required a ton of objects to be rebuilt >> when toggling CONFIG_DEV_BLK_INITRD, it became clear t

Re: [PATCH v2 0/2] arm64: Cut rebuild time when changing CONFIG_BLK_DEV_INITRD

2018-10-25 Thread Florian Fainelli
>>> On Wed, Oct 24, 2018 at 02:55:17PM -0500, Rob Herring wrote: >>>>> On Wed, Oct 24, 2018 at 2:33 PM Florian Fainelli >>>>> wrote: >>>>>> >>>>>> Hi all, >>>>>> >>>>>>

Re: [PATCH v2 0/2] arm64: Cut rebuild time when changing CONFIG_BLK_DEV_INITRD

2018-10-26 Thread Florian Fainelli
On 10/26/18 4:07 AM, Mike Rapoport wrote: > On Thu, Oct 25, 2018 at 04:07:13PM -0700, Florian Fainelli wrote: >> On 10/25/18 2:13 PM, Rob Herring wrote: >>> On Thu, Oct 25, 2018 at 12:30 PM Mike Rapoport wrote: >>>> >>>> On Thu, Oct 25, 2018 at 08:15

Re: ethernet "bus" number in DTS ?

2018-10-26 Thread Florian Fainelli
On 10/23/18 11:22 PM, Michal Suchánek wrote: > On Tue, 23 Oct 2018 11:20:36 -0700 > Florian Fainelli wrote: > >> On 10/23/18 11:02 AM, Joakim Tjernlund wrote: >>> On Tue, 2018-10-23 at 10:03 -0700, Florian Fainelli wrote: > >>> >>> I also not

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-11-26 Thread Florian Fainelli
+PPC folks On 11/23/18 10:20 AM, Guenter Roeck wrote: > On Mon, Nov 19, 2018 at 12:50:50PM -0800, Guenter Roeck wrote: >> On Mon, Nov 19, 2018 at 10:44:30AM -0800, Florian Fainelli wrote: >>> On 11/15/18 5:16 PM, Guenter Roeck wrote: >>>> On Thu, Nov 15, 2018 at 11:4

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-12-05 Thread Florian Fainelli
On 12/4/18 9:47 PM, Michael Ellerman wrote: > Hi Florian, > > Florian Fainelli writes: >> +PPC folks >> >> On 11/23/18 10:20 AM, Guenter Roeck wrote: >>> On Mon, Nov 19, 2018 at 12:50:50PM -0800, Guenter Roeck wrote: >>>> On Mon, Nov 19, 2018 at 10

[PATCH] Revert "serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250"

2018-12-20 Thread Florian Fainelli
sis Fixes: 6d11023c345e ("serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250") Signed-off-by: Florian Fainelli --- drivers/tty/serial/8250/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/8250/Kconfig b/drivers/tty/serial/8250/Kconfig index d7737dca0e48..15c2c

Re: [PATCH] serial: 8250: Default SERIAL_OF_PLATFORM to SERIAL_8250

2018-12-20 Thread Florian Fainelli
Le 12/20/18 à 9:38 AM, Guenter Roeck a écrit : > On Thu, Dec 20, 2018 at 04:21:11PM +0100, Greg Kroah-Hartman wrote: >> On Wed, Nov 14, 2018 at 05:11:25PM -0800, Guenter Roeck wrote: >>> On Thu, Nov 01, 2018 at 11:26:06AM -0700, Florian Fainelli wrote: >>>> It is

Re: [PATCH v2 net-next] net: convert suitable drivers to use phy_do_ioctl_running

2020-01-21 Thread Florian Fainelli
eset. For bgmac.c, bcmgenet.c and cpmac.c: Acked-by: Florian Fainelli Whether you decide to spin another version or not. -- Florian

Re: [PATCH] of/mdio: fix fixed link bus name

2012-02-27 Thread Florian Fainelli
Le 02/27/12 13:48, Baruch Siach a écrit : Since 9e6c643b (phy/fixed: use an unique MDIO bus name) the name of the fixed PHY bus is "fixed-0". Teach of_phy_connect_fixed_link() the new name. Tested on a P1020RDB PowerPC system. Signed-off-by: Baruch Siach Acked-by: Floria

[PATCH] perf: fix build for PowerPC with uclibc toolchains

2011-08-23 Thread Florian Fainelli
libio.h is not provided by uClibc, in order to be able to test the definition of __UCLIBC__ we need to include stdlib.h, which also includes stddef.h, providing the definition of 'NULL'. Signed-off-by: Florian Fainelli --- FYI, I submitted the exact same patch for

Re: [PATCH -next 02/13] hwrng: bcm2835 - use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Florian Fainelli
On 10/16/19 3:46 AM, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing Acked-by: Florian Fainelli -- Florian

Re: [PATCH -next 00/13] hwrng: use devm_platform_ioremap_resource() to simplify code

2019-10-16 Thread Florian Fainelli
On 10/16/19 3:46 AM, YueHaibing wrote: > devm_platform_ioremap_resource() internally have platform_get_resource() > and devm_ioremap_resource() in it. So instead of calling them separately > use devm_platform_ioremap_resource() directly. Did your coccinelle script not cover drivers/char/hw_random/

Re: [PATCH 1/4] arm: ptdump: Rename CONFIG_DEBUG_WX to CONFIG_ARM_DEBUG_WX

2024-01-09 Thread Florian Fainelli
On 1/9/24 04:14, Christophe Leroy wrote: CONFIG_DEBUG_WX is a core option defined in mm/Kconfig.debug To avoid any future conflict, rename ARM version into CONFIG_ARM_DEBUG_WX. Signed-off-by: Christophe Leroy Looks fine, you might also want to s/CONFIG_DEBUG_WX/CONFIG_ARM_DEBUG_WX/ in arch

Re: [PATCH 09/22] mips/cpu: Expose play_dead()'s prototype definition

2023-02-06 Thread Florian Fainelli
On 2/3/23 14:05, Josh Poimboeuf wrote: Include to make sure play_dead() matches its prototype going forward. Signed-off-by: Josh Poimboeuf Acked-by: Florian Fainelli -- Florian

Re: [PATCH 10/22] mips/cpu: Make sure play_dead() doesn't return

2023-02-06 Thread Florian Fainelli
to be next. Signed-off-by: Josh Poimboeuf Acked-by: Florian Fainelli -- Florian

  1   2   >