[PATCH 2/2] net: phy: Fix race conditions in the driver

2016-08-19 Thread Kedareswara rao Appana
> Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- drivers/net/phy/xilinx_gmii2rgmii.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c index 7336fd0..cdd9d95 100

[PATCH 1/2] net: phy: Add error checks in the driver

2016-08-19 Thread Kedareswara rao Appana
This patch adds the necessary error checks in the driver. Reported-by: Andrew Lunn <and...@lunn.ch> Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- drivers/net/phy/xilinx_gmii2rgmii.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a

[PATCH] net: phy: Update copyright info

2016-08-16 Thread Kedareswara rao Appana
For implementing this driver most of the inputs is provided by Andrew Lunn. Updating the driver with Andrew Copy right. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- drivers/net/phy/xilinx_gmii2rgmii.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/n

[PATCH] net: macb: add phy-handle support for the macb

2016-08-13 Thread Kedareswara rao Appana
This patch adds support for the 'phy-handle' binding which allows for a system to specifically select a phy which can be attached via any MDIO bus available in the system. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Documentation/devicetree/bindings/net/macb.tx

[PATCH v6 3/3] net: phy: Add gmiitorgmii converter support

2016-08-10 Thread Kedareswara rao Appana
of Operation by configuring the converter register through mdio write. MDIO interface is used to set operating speed of Ethernet MAC. This converter sits between the MAC and the external phy MAC <==> GMII2RGMII <==> RGMII_PHY Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com>

[PATCH v6 2/3] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-08-10 Thread Kedareswara rao Appana
Device-tree binding documentation for xilinx gmiitorgmii converter. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v6: ---> Removed mdio description as suggested by Florian. Changes for v5: ---> Fixed Indentation in the example as suggested by Michal. Ch

[PATCH v6 0/3] net: phy: Add xilinx gmiitorgmii converter support

2016-08-10 Thread Kedareswara rao Appana
external phy negotiated speed. This patch series does the below ---> Add mask for Control register 10Mbps speed. ---> Add support for xilinx gmiitorgmii converter. Kedareswara rao Appana (3): net: Add mask for Control register 10Mbps speed Documentation: DT: net: Add Xilinx gmiitorgm

[PATCH v6 1/3] net: Add mask for Control register 10Mbps speed

2016-08-10 Thread Kedareswara rao Appana
This patch adds mask for the Control register 10Mbps speed. Reviewed-by: Florian Fainelli <f.faine...@gmail.com> Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v6: - None. Changes for v5: - New patch. include/uapi/linux/mii.h | 1 + 1 file changed,

[RFC PATCH v5 3/3] net: phy: Add gmiitorgmii converter support

2016-08-09 Thread Kedareswara rao Appana
of Operation by configuring the converter register through mdio write. MDIO interface is used to set operating speed of Ethernet MAC. This converter sits between the MAC and the external phy MAC <==> GMII2RGMII <==> RGMII_PHY Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com>

[RFC PATCH v5 0/3] net: phy: Add xilinx gmiitorgmii converter support

2016-08-09 Thread Kedareswara rao Appana
external phy negotiated speed. This patch series does the below ---> Add mask for Control register 10Mbps speed. ---> Add support for xilinx gmiitorgmii converter. Kedareswara rao Appana (3): net: Add mask for Control register 10Mbps speed Documentation: DT: net: Add Xilinx gmiitorgm

[RFC PATCH v5 1/3] net: Add mask for Control register 10Mbps speed

2016-08-09 Thread Kedareswara rao Appana
This patch adds mask for the Control register 10Mbps speed. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v5: ---> New patch as suggested by Punnaiah. include/uapi/linux/mii.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/mii.h

[RFC PATCH v5 2/3] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-08-09 Thread Kedareswara rao Appana
Device-tree binding documentation for xilinx gmiitorgmii converter. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v5: ---> Fixed Indentation in the example as suggested by Michal. Changes for v4: --> Modified compatible as suggested by Rob. --> Remo

[RFC PATCH v4 1/2] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-08-08 Thread Kedareswara rao Appana
Device-tree binding documentation for xilinx gmiitorgmii converter. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v4: --> Modified compatible as suggested by Rob. --> Removed underscores from the converter node name as suggested by Rob. Changes for

[RFC PATCH v4 2/2] net: phy: Add gmiitorgmii converter support

2016-08-08 Thread Kedareswara rao Appana
of Operation by configuring the converter register through mdio write. MDIO interface is used to set operating speed of Ethernet MAC. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Thanks a lot Andrew for your inputs. Changes for v4: --> Updated phydev speed for all

[RFC PATCH v3 2/2] net: phy: Add gmiitorgmii converter support

2016-08-04 Thread Kedareswara rao Appana
of Operation by configuring the converter register through mdio write. MDIO interface is used to set operating speed of Ethernet MAC. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Thanks a lot Andrew for your inputs. Changes for v3: --> Updated the driver as suggested

[RFC PATCH v3 1/2] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-08-04 Thread Kedareswara rao Appana
Device-tree binding documentation for xilinx gmiitorgmii converter. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v3: --> None. Changes for v2: --> New patch. .../devicetree/bindings/net/xilinx_gmii2rgmii.txt | 32 ++ 1 file

[RFC PATCH v2 0/4] net: ethernet: Add support for gmii2rgmii converter

2016-07-04 Thread Kedareswara rao Appana
sing MAC MDIO bus we can access both the converter and the external PHY. We need to program the line speed of the converter during run time based On the external phy negotiated speed. Kedareswara rao Appana (4): Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding docume

[RFC PATCH v2 1/4] Documentation: DT: net: Add Xilinx gmiitorgmii converter device tree binding documentation

2016-07-04 Thread Kedareswara rao Appana
Device-tree binding documentation for xilinx gmiitorgmii converter. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v2: --> New patch. .../devicetree/bindings/net/xilinx_gmii2rgmii.txt | 31 ++ 1 file changed, 31 insertions(+) create mo

[RFC PATCH v2 4/4] net: macb: Add gmii2rgmii phy converter support

2016-07-04 Thread Kedareswara rao Appana
different speed modes of Operation by configuring the converter register through mdio write. MDIO interface is used to set operating speed of Ethernet MAC. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v2: ---> Moved header file define xilinx_gmii2rgmii.h to ma

[RFC PATCH v2 3/4] Documentation: DT: net: Update binding doc for gmiitorgmii conveter

2016-07-04 Thread Kedareswara rao Appana
This patch updates the macb device-tree binding doc for adding Support for gmiitorgmii converter support. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v2: --> New patch. Documentation/devicetree/bindings/net/macb.txt | 4 1 file changed, 4 insertions

[RFC PATCH v2 2/4] net: ethernet: xilinx: Add gmii2rgmii converter support

2016-07-04 Thread Kedareswara rao Appana
of Operation by configuring the converter register through mdio write. MDIO interface is used to set operating speed of Ethernet MAC. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- Changes for v2: --> Passed struct xphy pointer directly to the fix_mac_speed API as

[RFC PATCH 2/2] net: macb: Add gmii2rgmii phy converter support

2016-07-01 Thread Kedareswara rao Appana
This patch adds support for gmii2rgmii phy converter in the macb driver. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- drivers/net/ethernet/cadence/macb.c | 21 - drivers/net/ethernet/cadence/macb.h |3 +++ 2 files changed, 23 insertions(+), 1 del

[RFC PATCH 1/2] net: ethernet: xilinx: Add gmii2rgmii converter support

2016-07-01 Thread Kedareswara rao Appana
of Operation. MDIO interface is used to set operating speed of Ethernet MAC Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- drivers/net/ethernet/xilinx/Kconfig |7 ++ drivers/net/ethernet/xilinx/Makefile|1 + drivers/net/ethernet/xilinx/xilinx_gmii2r

[RFC PATCH 0/2] net: ethernet: Add support for gmii2rgmii converter

2016-07-01 Thread Kedareswara rao Appana
fixes this issue. Kedareswara rao Appana (2): net: ethernet: xilinx: Add gmii2rgmii converter support net: macb: Add gmii2rgmii phy converter support drivers/net/ethernet/cadence/macb.c | 21 ++- drivers/net/ethernet/cadence/macb.h |3 + drivers/net/et

[RFC PATCH] net: macb: Add gmii2rgmii converter support

2016-06-20 Thread Kedareswara rao Appana
speed modes of operation (10/100/1000 Mb/s). MDIO interface is used to set operating speed of Ethernet MAC. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- --> Tried to include this Coverter support in the PHY layer but it won't fit into the PHY framework as the coverter w

[PATCH v8] can: xilinx: Convert to runtime_pm

2015-10-26 Thread Kedareswara rao Appana
Instead of enabling/disabling clocks at several locations in the driver, Use the runtime_pm framework. This consolidates the actions for runtime PM In the appropriate callbacks and makes the driver more readable and mantainable. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.

[PATCH v7] can: xilinx: Convert to runtime_pm

2015-10-22 Thread Kedareswara rao Appana
Instead of enabling/disabling clocks at several locations in the driver, Use the runtime_pm framework. This consolidates the actions for runtime PM In the appropriate callbacks and makes the driver more readable and mantainable. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.

[PATCH 1/2] can: xilinx: use readl/writel instead of ioread/iowrite

2015-10-21 Thread Kedareswara rao Appana
register write fixes this issue Instead of barriers using writel also fixed this issue. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- drivers/net/can/xilinx_can.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/xilinx_can.c b/drivers/n

[PATCH v6] can: xilinx: Convert to runtime_pm

2015-10-21 Thread Kedareswara rao Appana
Instead of enabling/disabling clocks at several locations in the driver, Use the runtime_pm framework. This consolidates the actions for runtime PM In the appropriate callbacks and makes the driver more readable and mantainable. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> ---

[PATCH 2/2] can: xilinx: fix bug in bus error handling

2015-10-21 Thread Kedareswara rao Appana
Simply resetting the peripheral on bus off condition is not enough, Because we also need to re-initialize the whole device. This patch fixes this issue. Signed-off-by: Kedareswara rao Appana <appa...@xilinx.com> --- drivers/net/can/xilinx_can.c | 7 +-- 1 file changed, 5 insertions