[PATCH] pinctrl: st: Fix error check for of_irq_to_resource usage

2014-03-12 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch fixes an error check while using of_irq_to_resource. of_irq_to_resource returns non-zero interrupt number on success and zero on error. The driver was using error check is wrong way. Without this patch the driver will configure interrupt zero if there is no

[PATCH] pinctrl: st: Fix error check for of_irq_to_resource usage

2014-03-12 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch fixes an error check while using of_irq_to_resource. of_irq_to_resource returns non-zero interrupt number on success and zero on error. The driver was using error check is wrong way. Without this patch the driver will configure

[PATCH] MAINTAINERS: Update ARM STi maintainers

2014-03-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds Maxime and Patrice to ARM/STi maintainers list. As Stuart Menefy opted to be removed from the list, this patch removes his email from maintainers. Updated my email with private email address. This patch also adds few more drivers to the list so that

[PATCH] MAINTAINERS: Update ARM STi maintainers

2014-03-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds Maxime and Patrice to ARM/STi maintainers list. As Stuart Menefy opted to be removed from the list, this patch removes his email from maintainers. Updated my email with private email address. This patch also adds few more

[PATCH v3 1/3] net: stmmac:sti: Add STi SOC glue driver.

2014-02-11 Thread srinivas.kandagatla
From: Srinivas Kandagatla STi series SOCs have a glue layer on top of the synopsis gmac IP, this glue layer needs to be configured before the gmac driver starts using the IP. This patch adds a support to this glue layer which is configured via stmmac setup, init, exit callbacks. Signed-off-by:

[PATCH v3 3/3] ARM: STi: Add STiH416 ethernet support.

2014-02-11 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to STiH416 SOC, which has two ethernet snps,dwmac controllers version 3.710. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas Kandagatla ---

[PATCH v3 2/3] ARM: STi: Add STiH415 ethernet support.

2014-02-11 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to STiH415 SOC, which has two ethernet snps,dwmac controllers version 3.610. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas Kandagatla ---

[PATCH v3 0/3] net: stmmac: Add STi GMAC ethernet

2014-02-11 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi All, This patch series adds Ethernet support to STi series SOCs STiH415 and STiH416. STi SOC series integrates dwmac IP from synopsis, however there is a hardware glue on top of this standard IP, this glue needs to configured before the actual dwmac can be used.

[PATCH v3 2/3] ARM: STi: Add STiH415 ethernet support.

2014-02-11 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds support to STiH415 SOC, which has two ethernet snps,dwmac controllers version 3.610. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas

[PATCH v3 0/3] net: stmmac: Add STi GMAC ethernet

2014-02-11 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Hi All, This patch series adds Ethernet support to STi series SOCs STiH415 and STiH416. STi SOC series integrates dwmac IP from synopsis, however there is a hardware glue on top of this standard IP, this glue needs to configured before the

[PATCH v3 3/3] ARM: STi: Add STiH416 ethernet support.

2014-02-11 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds support to STiH416 SOC, which has two ethernet snps,dwmac controllers version 3.710. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas

[PATCH v3 1/3] net: stmmac:sti: Add STi SOC glue driver.

2014-02-11 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com STi series SOCs have a glue layer on top of the synopsis gmac IP, this glue layer needs to be configured before the gmac driver starts using the IP. This patch adds a support to this glue layer which is configured via stmmac setup, init, exit

[PATCH v2 0/3] net: stmmac: Add STi GMAC ethernet

2014-02-07 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi All, This patch series adds Ethernet support to STi series SOCs STiH415 and STiH416. STi SOC series integrates dwmac IP from synopsis, however there is a hardware glue on top of this standard IP, this glue needs to configured before the actual dwmac can be used.

[PATCH v2 3/3] ARM: STi: Add STiH416 ethernet support.

2014-02-07 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to STiH416 SOC, which has two ethernet snps,dwmac controllers version 3.710. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas Kandagatla ---

[PATCH v2 2/3] ARM: STi: Add STiH415 ethernet support.

2014-02-07 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to STiH415 SOC, which has two ethernet snps,dwmac controllers version 3.610. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas Kandagatla ---

[PATCH v2 1/3] net: stmmac:sti: Add STi SOC glue driver.

2014-02-07 Thread srinivas.kandagatla
From: Srinivas Kandagatla STi series SOCs have a glue layer on top of the synopsis gmac IP, this glue layer needs to be configured before the gmac driver starts using the IP. This patch adds a support to this glue layer which is configured via stmmac setup, init, exit callbacks. Signed-off-by:

[PATCH v2 1/3] net: stmmac:sti: Add STi SOC glue driver.

2014-02-07 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com STi series SOCs have a glue layer on top of the synopsis gmac IP, this glue layer needs to be configured before the gmac driver starts using the IP. This patch adds a support to this glue layer which is configured via stmmac setup, init, exit

[PATCH v2 2/3] ARM: STi: Add STiH415 ethernet support.

2014-02-07 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds support to STiH415 SOC, which has two ethernet snps,dwmac controllers version 3.610. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas

[PATCH v2 3/3] ARM: STi: Add STiH416 ethernet support.

2014-02-07 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds support to STiH416 SOC, which has two ethernet snps,dwmac controllers version 3.710. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas

[PATCH v2 0/3] net: stmmac: Add STi GMAC ethernet

2014-02-07 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Hi All, This patch series adds Ethernet support to STi series SOCs STiH415 and STiH416. STi SOC series integrates dwmac IP from synopsis, however there is a hardware glue on top of this standard IP, this glue needs to configured before the

[PATCH v2 3/6] drivers: reset: Reset controller driver for STiH416

2014-02-03 Thread srinivas.kandagatla
From: Stephen Gallimore This patch adds a reset controller platform driver for the STiH416 SoC. This initial version provides a compatible driver for the "st,stih416-powerdown" device, which registers a system configuration register based reset controller that controls the powerdown state of

[PATCH v2 1/6] drivers: reset: STi SoC system configuration reset controller support

2014-02-03 Thread srinivas.kandagatla
From: Stephen Gallimore This patch adds a reset controller implementation for STMicroelectronics STi family SoCs; it allows a group of related reset like controls found in multiple system configuration registers to be represented by a single controller device. System configuration registers are

[PATCH v2 6/6] ARM: STi: Add reset controller support to mach-sti Kconfig

2014-02-03 Thread srinivas.kandagatla
From: Stephen Gallimore This patch selects reset controller support for ARCH_STI and selects the reset controllers for STiH415 and STiH416 SoCs. Signed-off-by: Stephen Gallimore Signed-off-by: Srinivas Kandagatla --- arch/arm/mach-sti/Kconfig |3 +++ 1 file changed, 3 insertions(+) diff

[PATCH v2 5/6] drivers: reset: stih416: add softreset controller

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds softreset controller for STiH416 SOC, soft reset controller is based on system configuration registers which are mapped via regmap. This reset controller does not have any feedback or acknowledgement. With this patch a new device "st,stih416-softreset"

[PATCH v2 4/6] drivers: reset: stih415: add softreset controller

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds softreset controller for STiH415 SOC, soft reset controller is based on system configuration registers which are mapped via regmap. This reset controller does not have any feedback or acknowledgement. With this patch a new device "st,stih415-softreset"

[PATCH v2 2/6] drivers: reset: Reset controller driver for STiH415

2014-02-03 Thread srinivas.kandagatla
From: Stephen Gallimore This patch adds a reset controller platform driver for the STiH415 SoC. This initial version provides a compatible driver for the "st,stih415-powerdown" device, which registers a system configuration register based reset controller that controls the powerdown state of

[PATCH v2 0/6] ARM: STi reset controller support

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi All, This patch series adds reset controller support for STi SOC series STiH415 and STiH416. It adds support for both power down reset and soft reset controllers. On STi series SOCs reset lines are wired up to system configuration registers. Most of the IPs on STi

[PATCH v1 3/3] ARM: STi: Add STiH416 ethernet support.

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to STiH416 SOC, which has two ethernet snps,dwmac controllers version 3.710. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas Kandagatla ---

[PATCH v1 2/3] ARM: STi: Add STiH415 ethernet support.

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to STiH415 SOC, which has two ethernet snps,dwmac controllers version 3.610. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas Kandagatla ---

[PATCH v1 1/3] net: stmmac:sti: Add STi SOC glue driver.

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla STi series SOCs have a glue layer on top of the synopsis gmac IP, this glue layer needs to be configured before the gmac driver starts using the IP. This patch adds a support to this glue layer which is configured via stmmac setup, init, exit callbacks. Signed-off-by:

[PATCH v1 0/3] net: stmmac: Add STi GMAC ethernet

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi All, This patch series adds Ethernet support to STi series SOCs STiH415 and STiH416. STi SOC series integrates dwmac IP from synopsis, however there is a hardware glue on top of this standard IP, this glue needs to configured before the actual dwmac can be used.

[PATCH v1 0/3] net: stmmac: Add STi GMAC ethernet

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Hi All, This patch series adds Ethernet support to STi series SOCs STiH415 and STiH416. STi SOC series integrates dwmac IP from synopsis, however there is a hardware glue on top of this standard IP, this glue needs to configured before the

[PATCH v1 3/3] ARM: STi: Add STiH416 ethernet support.

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds support to STiH416 SOC, which has two ethernet snps,dwmac controllers version 3.710. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas

[PATCH v1 2/3] ARM: STi: Add STiH415 ethernet support.

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds support to STiH415 SOC, which has two ethernet snps,dwmac controllers version 3.610. With this patch B2000 and B2020 boards can boot with ethernet in MII and RGMII modes. Tested on both B2020 and B2000. Signed-off-by: Srinivas

[PATCH v1 1/3] net: stmmac:sti: Add STi SOC glue driver.

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com STi series SOCs have a glue layer on top of the synopsis gmac IP, this glue layer needs to be configured before the gmac driver starts using the IP. This patch adds a support to this glue layer which is configured via stmmac setup, init, exit

[PATCH v2 0/6] ARM: STi reset controller support

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Hi All, This patch series adds reset controller support for STi SOC series STiH415 and STiH416. It adds support for both power down reset and soft reset controllers. On STi series SOCs reset lines are wired up to system configuration

[PATCH v2 2/6] drivers: reset: Reset controller driver for STiH415

2014-02-03 Thread srinivas.kandagatla
From: Stephen Gallimore stephen.gallim...@st.com This patch adds a reset controller platform driver for the STiH415 SoC. This initial version provides a compatible driver for the st,stih415-powerdown device, which registers a system configuration register based reset controller that controls the

[PATCH v2 5/6] drivers: reset: stih416: add softreset controller

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds softreset controller for STiH416 SOC, soft reset controller is based on system configuration registers which are mapped via regmap. This reset controller does not have any feedback or acknowledgement. With this patch a new

[PATCH v2 4/6] drivers: reset: stih415: add softreset controller

2014-02-03 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds softreset controller for STiH415 SOC, soft reset controller is based on system configuration registers which are mapped via regmap. This reset controller does not have any feedback or acknowledgement. With this patch a new

[PATCH v2 6/6] ARM: STi: Add reset controller support to mach-sti Kconfig

2014-02-03 Thread srinivas.kandagatla
From: Stephen Gallimore stephen.gallim...@st.com This patch selects reset controller support for ARCH_STI and selects the reset controllers for STiH415 and STiH416 SoCs. Signed-off-by: Stephen Gallimore stephen.gallim...@st.com Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@st.com ---

[PATCH v2 1/6] drivers: reset: STi SoC system configuration reset controller support

2014-02-03 Thread srinivas.kandagatla
From: Stephen Gallimore stephen.gallim...@st.com This patch adds a reset controller implementation for STMicroelectronics STi family SoCs; it allows a group of related reset like controls found in multiple system configuration registers to be represented by a single controller device. System

[PATCH v2 3/6] drivers: reset: Reset controller driver for STiH416

2014-02-03 Thread srinivas.kandagatla
From: Stephen Gallimore stephen.gallim...@st.com This patch adds a reset controller platform driver for the STiH416 SoC. This initial version provides a compatible driver for the st,stih416-powerdown device, which registers a system configuration register based reset controller that controls the

[PATCH v2 4/4] ARM:STi: STiH415: Add interrupt support for pin controller

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds interrupt support for STiH415 pin controllers. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/stih415-pinctrl.dtsi | 75 1 files changed, 75 insertions(+), 0 deletions(-) diff --git

[PATCH v2 2/4] pinctrl: st: Add software edge trigger interrupt support.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla ST pin controller does not have hardware support for detecting edge triggered interrupts, It only has level triggering support. This patch attempts to fake up edge triggers from hw level trigger support in software. With this facility now the gpios can be easily used

[PATCH v2 1/4] pinctrl: st: Add Interrupt support.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch add interrupt support to the pincontroller driver. ST Pincontroller GPIO bank can have one of the two possible types of interrupt-wirings. First type is via irqmux, single interrupt is used by multiple gpio banks. This reduces number of overall interrupts

[PATCH v2 3/4] ARM:STi: STiH416: Add interrupt support for pin controller

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds interrupt support for STiH416 pin controllers. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/stih416-pinctrl.dtsi | 81 1 files changed, 81 insertions(+), 0 deletions(-) diff --git

[PATCH v2 0/4] pinctrl: st: Add interrupt controller support.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi Linus W, Thankyou for reviewing v1 of the patch-set the comments were very useful. This series of v2 patches add interrupt controller support to ST pinctrl driver incorporating all the review comments. ST pin controller GPIO bank can have one of the two possible

[PATCH v2 9/9] net: stmmac: notify the PM core of a wakeup event.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla In PM_SUSPEND_FREEZE and WOL(Wakeup On Lan) case, when the driver gets a wakeup event, either the driver or platform specific PM code should notify the pm core about it, so that the system can wakeup from low power. In cases where there is no involvement of platform

[PATCH v2 3/9] net: stmmac: move dma allocation to new function

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch moves dma resource allocation to a new function alloc_dma_desc_resources, the reason for moving this to a new function is to keep the memory allocations in a separate function. One more reason it to get suspend and hibernation cases working without releasing

[PATCH v2 8/9] net: stmmac: restore pinstate in pm resume.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds code to restore default pinstate of the pins when it comes back from low power state. Without this patch the state of the pins would be unknown and the driver would not work. This patch also adds code to put the pins in to sleep state when the driver

[PATCH v2 4/9] net: stmmac: move hardware setup for stmmac_open to new function

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch moves hardware setup part of the code in stmmac_open to a new function stmmac_hw_setup, the reason for doing this is to make hw initialization independent function so that PM functions can re-use it to re-initialize the IP after returning from low power

[PATCH v2 7/9] net: stmmac: use suspend functions for hibernation

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla In hibernation freeze case the driver just releases the resources like dma buffers, irqs, unregisters the drivers and during restore it does register, request the resources. This is not really necessary, as part of power management all the data structures are intact,

[PATCH v2 2/9] net: stmmac: mdio: remove reset gpio free

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch removes gpio_free for reset line of the phy, driver stores the gpio number in its private data-structure to use in future. As the driver uses this pin in future this pin should not be freed. Signed-off-by: Srinivas Kandagatla Acked-by: Giuseppe Cavallaro

[PATCH v2 5/9] net: stmmac: make stmmac_mdio_reset non-static

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch promotes stmmac_mdio_reset function from static to non-static, so that power management functions can decide to reset if the IP comes out from lowe power state specially hibernation cases. Signed-off-by: Srinivas Kandagatla Acked-by: Giuseppe Cavallaro ---

[PATCH v2 6/9] net: stmmac: fix power management suspend-resume case

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla The driver PM resume assumes that the IP is still powered up and the all the register contents are not disturbed when it comes out of low power suspend case. This assumption is wrong, basically the driver should not consider any state of registers after it comes out of

[PATCH v2 1/9] net: stmmac: support max-speed device tree property

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to "max-speed" property which is a standard Ethernet device tree property. max-speed specifies maximum speed (specified in megabits per second) supported the device. Depending on the clocking schemes some of the boards can only support few link

[PATCH v2 0/9] net: stmmac PM related fixes.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi Peppe/Dave, During PM_SUSPEND_FREEZE testing, I have noticed that PM support in STMMAC is partly broken. I had to re-arrange the code to do PM correctly. There were lot of things I did not like personally and some bits did not work in the first place. I thought this

[PATCH v2 0/9] net: stmmac PM related fixes.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi Peppe/Dave, During PM_SUSPEND_FREEZE testing, I have noticed that PM support in STMMAC is partly broken. I had to re-arrange the code to do PM correctly. There were lot of things I did not like personally and some bits did not work in the first place. I thought this

[PATCH v2 0/9] net: stmmac PM related fixes.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Hi Peppe/Dave, During PM_SUSPEND_FREEZE testing, I have noticed that PM support in STMMAC is partly broken. I had to re-arrange the code to do PM correctly. There were lot of things I did not like personally and some bits did not work in the

[PATCH v2 0/9] net: stmmac PM related fixes.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Hi Peppe/Dave, During PM_SUSPEND_FREEZE testing, I have noticed that PM support in STMMAC is partly broken. I had to re-arrange the code to do PM correctly. There were lot of things I did not like personally and some bits did not work in the

[PATCH v2 1/9] net: stmmac: support max-speed device tree property

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds support to max-speed property which is a standard Ethernet device tree property. max-speed specifies maximum speed (specified in megabits per second) supported the device. Depending on the clocking schemes some of the boards

[PATCH v2 6/9] net: stmmac: fix power management suspend-resume case

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com The driver PM resume assumes that the IP is still powered up and the all the register contents are not disturbed when it comes out of low power suspend case. This assumption is wrong, basically the driver should not consider any state of

[PATCH v2 4/9] net: stmmac: move hardware setup for stmmac_open to new function

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch moves hardware setup part of the code in stmmac_open to a new function stmmac_hw_setup, the reason for doing this is to make hw initialization independent function so that PM functions can re-use it to re-initialize the IP after

[PATCH v2 7/9] net: stmmac: use suspend functions for hibernation

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com In hibernation freeze case the driver just releases the resources like dma buffers, irqs, unregisters the drivers and during restore it does register, request the resources. This is not really necessary, as part of power management all the data

[PATCH v2 2/9] net: stmmac: mdio: remove reset gpio free

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch removes gpio_free for reset line of the phy, driver stores the gpio number in its private data-structure to use in future. As the driver uses this pin in future this pin should not be freed. Signed-off-by: Srinivas Kandagatla

[PATCH v2 5/9] net: stmmac: make stmmac_mdio_reset non-static

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch promotes stmmac_mdio_reset function from static to non-static, so that power management functions can decide to reset if the IP comes out from lowe power state specially hibernation cases. Signed-off-by: Srinivas Kandagatla

[PATCH v2 3/9] net: stmmac: move dma allocation to new function

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch moves dma resource allocation to a new function alloc_dma_desc_resources, the reason for moving this to a new function is to keep the memory allocations in a separate function. One more reason it to get suspend and hibernation cases

[PATCH v2 8/9] net: stmmac: restore pinstate in pm resume.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds code to restore default pinstate of the pins when it comes back from low power state. Without this patch the state of the pins would be unknown and the driver would not work. This patch also adds code to put the pins in to

[PATCH v2 9/9] net: stmmac: notify the PM core of a wakeup event.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com In PM_SUSPEND_FREEZE and WOL(Wakeup On Lan) case, when the driver gets a wakeup event, either the driver or platform specific PM code should notify the pm core about it, so that the system can wakeup from low power. In cases where there is no

[PATCH v2 0/4] pinctrl: st: Add interrupt controller support.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Hi Linus W, Thankyou for reviewing v1 of the patch-set the comments were very useful. This series of v2 patches add interrupt controller support to ST pinctrl driver incorporating all the review comments. ST pin controller GPIO bank can

[PATCH v2 2/4] pinctrl: st: Add software edge trigger interrupt support.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com ST pin controller does not have hardware support for detecting edge triggered interrupts, It only has level triggering support. This patch attempts to fake up edge triggers from hw level trigger support in software. With this facility now the

[PATCH v2 1/4] pinctrl: st: Add Interrupt support.

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch add interrupt support to the pincontroller driver. ST Pincontroller GPIO bank can have one of the two possible types of interrupt-wirings. First type is via irqmux, single interrupt is used by multiple gpio banks. This reduces

[PATCH v2 3/4] ARM:STi: STiH416: Add interrupt support for pin controller

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds interrupt support for STiH416 pin controllers. Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@st.com --- arch/arm/boot/dts/stih416-pinctrl.dtsi | 81 1 files changed, 81

[PATCH v2 4/4] ARM:STi: STiH415: Add interrupt support for pin controller

2014-01-16 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds interrupt support for STiH415 pin controllers. Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@st.com --- arch/arm/boot/dts/stih415-pinctrl.dtsi | 75 1 files changed, 75

[PATCH v1 0/5] pinctrl: st: Add interrupt controller support.

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi Linus W, This series of patches add interrupt controller support to ST pinctrl driver. ST pin controller GPIO bank can have one of the two possible types of interrupt-wirings. First type is via irqmux, single interrupt is used by multiple gpio banks. This reduces

[PATCH v1 5/5] ARM:STi: STiH415: Add interrupt support for pin controller

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds interrupt support for STiH415 pin controllers. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/stih415-pinctrl.dtsi | 75 1 files changed, 75 insertions(+), 0 deletions(-) diff --git

[PATCH v1 3/5] pinctrl: st: Add software edge trigger interrupt support.

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla ST pin controller does not have hardware support for detecting edge triggered interrupts, It only has level triggering support. This patch attempts to fake up edge triggers from hw level trigger support in software. With this facility now the gpios can be easily used

[PATCH v1 2/5] pinctrl: st: Add Interrupt support.

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch add interrupt support to the pincontroller driver. ST Pincontroller GPIO bank can have one of the two possible types of interrupt-wirings. First type is via irqmux, single interrupt is used by multiple gpio banks. This reduces number of overall interrupts

[PATCH v1 4/5] ARM:STi: STiH416: Add interrupt support for pin controller

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds interrupt support for STiH416 pin controllers. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/stih416-pinctrl.dtsi | 81 1 files changed, 81 insertions(+), 0 deletions(-) diff --git

[PATCH v1 1/5] pinctrl: st: Fix a typo in probe

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla Probe function had commas instead of semi-colons on some of the lines. This patch just fixes those lines. No functional chagnes done in this patch. Signed-off-by: Srinivas Kandagatla --- drivers/pinctrl/pinctrl-st.c |8 1 files changed, 4 insertions(+),

[PATCH v1] media: st-rc: Add reset support

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla Some of the SOCs hold the IRB IP in softreset state by default. For this IP to work driver needs to bring it out of softreset. This patch adds support to reset the IP via reset framework. Without this patch the driver can not work with SoCs which holds the IP in

[PATCH v1] media: st-rc: Add reset support

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Some of the SOCs hold the IRB IP in softreset state by default. For this IP to work driver needs to bring it out of softreset. This patch adds support to reset the IP via reset framework. Without this patch the driver can not work with SoCs

[PATCH v1 1/5] pinctrl: st: Fix a typo in probe

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Probe function had commas instead of semi-colons on some of the lines. This patch just fixes those lines. No functional chagnes done in this patch. Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@st.com --- drivers/pinctrl/pinctrl-st.c

[PATCH v1 4/5] ARM:STi: STiH416: Add interrupt support for pin controller

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds interrupt support for STiH416 pin controllers. Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@st.com --- arch/arm/boot/dts/stih416-pinctrl.dtsi | 81 1 files changed, 81

[PATCH v1 3/5] pinctrl: st: Add software edge trigger interrupt support.

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com ST pin controller does not have hardware support for detecting edge triggered interrupts, It only has level triggering support. This patch attempts to fake up edge triggers from hw level trigger support in software. With this facility now the

[PATCH v1 2/5] pinctrl: st: Add Interrupt support.

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch add interrupt support to the pincontroller driver. ST Pincontroller GPIO bank can have one of the two possible types of interrupt-wirings. First type is via irqmux, single interrupt is used by multiple gpio banks. This reduces

[PATCH v1 0/5] pinctrl: st: Add interrupt controller support.

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com Hi Linus W, This series of patches add interrupt controller support to ST pinctrl driver. ST pin controller GPIO bank can have one of the two possible types of interrupt-wirings. First type is via irqmux, single interrupt is used by multiple

[PATCH v1 5/5] ARM:STi: STiH415: Add interrupt support for pin controller

2014-01-14 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds interrupt support for STiH415 pin controllers. Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@st.com --- arch/arm/boot/dts/stih415-pinctrl.dtsi | 75 1 files changed, 75

[PATCH] ARM: multi_v7_defconfig: Fix STi support

2013-12-04 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds ST serial driver (st-asc) and ICPLUS ethernet PHY to multi_v7_defconfig. All STi based SOCs use ST-ASC as default serial console, and most of the STi SOC based boards have ICPLUS external ethernet PHY. These two options makes the system boot nfs root

[PATCH] ARM: multi_v7_defconfig: Fix STi support

2013-12-04 Thread srinivas.kandagatla
From: Srinivas Kandagatla srinivas.kandaga...@st.com This patch adds ST serial driver (st-asc) and ICPLUS ethernet PHY to multi_v7_defconfig. All STi based SOCs use ST-ASC as default serial console, and most of the STi SOC based boards have ICPLUS external ethernet PHY. These two options makes

[PATCH RFC 4/9] net: stmmac: move hardware setup for stmmac_open to new function

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch moves hardware setup part of the code in stmmac_open to a new function stmmac_hw_setup, the reason for doing this is to make hw initialization independent function so that PM functions can re-use it to re-initialize the IP after returning from low power

[PATCH RFC 8/9] net: stmmac: restore pinstate in pm resume.

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds code to restore default pinstate of the pins when it comes back from low power state. Without this patch the state of the pins would be unknown and the driver would not work. This patch also adds code to put the pins in to sleep state when the driver

[PATCH RFC 5/9] net: stmmac: make stmmac_mdio_reset non-static

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch promotes stmmac_mdio_reset function from static to non-static, so that power management functions can decide to reset if the IP comes out from lowe power state specially hibernation cases. Signed-off-by: Srinivas Kandagatla ---

[PATCH RFC 9/9] net: stmmac: notify the PM core of a wakeup event.

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla In PM_SUSPEND_FREEZE and WOL(Wakeup On Lan) case, when the driver gets a wakeup event, either the driver or platform specific PM code should notify the pm core about it, so that the system can wakeup from low power. In cases where there is no involvement of platform

[PATCH RFC 6/9] net: stmmac: fix power mangement suspend-resume case

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla The driver PM resume assumes that the IP is still powered up and the all the register contents are not disturbed when it comes out of low power suspend case. This assumption is wrong, basically the driver should not consider any state of registers after it comes out of

[PATCH RFC 7/9] net: stmmac: use suspend functions for hibernation

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla In hibernation freeze case the driver just releases the resources like dma buffers, irqs, unregisters the drivers and during restore it does register, request the resources. This is not really necessary, as part of power management all the data structures are intact,

[PATCH RFC 2/9] net: stmmac: mdio: remove reset gpio free

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch removes gpio_free for reset line of the phy, driver stores the gpio number in its private data-structure to use in future. As the driver uses this pin in future this pin should not be freed. Signed-off-by: Srinivas Kandagatla ---

[PATCH RFC 1/9] net: stmmac: support max-speed device tree property

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch adds support to "max-speed" property which is a standard ethernet device tree property. max-speed specifies maximum speed (specified in megabits per second) supported the device. Depending on the clocking schemes some of the boards can only support few link

[PATCH RFC 3/9] net: stmmac: move dma allocation to new function

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla This patch moves dma resource allocation to a new function alloc_dma_desc_resources, the reason for moving this to a new function is to keep the memory allocations in a separate function. One more reason it to get suspend and hibernation cases working without releasing

[PATCH RFC 0/9]net: stmmac PM related fixes.

2013-11-18 Thread srinivas.kandagatla
From: Srinivas Kandagatla Hi Peppe, During PM_SUSPEND_FREEZE testing, I have noticed that PM support in STMMAC is partly broken. I had to re-arrange the code to do PM correctly. There were lot of things I did not like personally and some bits did not work in the first place. I thought this is

  1   2   >