[PATCH 1/5] usb: dwc3: ep0: use _roundup_ to calculate the transfer size

2015-06-10 Thread Kishon Vijay Abraham I
No functional change. Used _roundup_ macro to calculate the transfer size aligned to maxpacket in dwc3_ep0_complete_data. It also makes it similar to how transfer size is calculated in __dwc3_ep0_do_control_data. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c |4 +--- 1

[PATCH 05/17] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-06-23 Thread Kishon Vijay Abraham I
The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, add a new "compatible" string. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/phy/ti-phy.txt |2 ++ drivers/phy/phy-o

[PATCH 09/17] ARM: dts: dra7: Use "syscon-phy-power" instead of "ctrl-module" in SATA PHY node

2015-06-23 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from SATA PHY node. Since "omap_control_sata" note is no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi | 10 +- 1 file change

[PATCH 14/17] ARM: dts: OMAP5: Use "syscon-phy-power" instead of "ctrl-module" in USB PHY node

2015-06-23 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from USB PHY devicetree node. Since "omap_control_usb2phy" and "omap_control_usb3phy" devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I

[PATCH 13/17] ARM: dts: am4372: Use "syscon-phy-power" instead of "ctrl-module" in USB PHY node

2015-06-23 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from USB PHY device tree node. Since "am43xx_control_usb2phy1" and "am43xx_control_usb2phy2" devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abrah

[PATCH 17/17] ARM: dts: omap4: Use "syscon-otghs" instead of "ctrl-module" in USB node

2015-06-23 Thread Kishon Vijay Abraham I
Add "syscon-otghs" property and remove the deprecated "ctrl-module" property from MUSB devicetree node. Since "omap_control_usbotg" devicetree node is no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap4.dtsi |8 +--

[PATCH 12/17] ARM: dts: dra7: Use "syscon-phy-power" instead of "ctrl-module" in USB PHY node

2015-06-23 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from USB PHY devicetree nodes. Since "omap_control_usb2phy1", "omap_control_usb3phy1" and "omap_control_usb2phy2" devicetree nodes are no longer used, remove it. Si

[PATCH 15/17] ARM: dts: OMAP5: Use "syscon-phy-power" instead of "ctrl-module" in SATA PHY node

2015-06-23 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from SATA PHY node. Since "omap_control_sata" devicetree node is no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi | 10 +

[PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-23 Thread Kishon Vijay Abraham I
Add new device tree node for the control module register space where PCIe registers are present. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index

[PATCH 16/17] ARM: dts: omap4: Use "syscon-phy-power" instead of "ctrl-module" in USB PHY node

2015-06-23 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from USB PHY dt node. Since "omap_control_usb2phy" devicetree node is no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap4.dtsi |8 +--

[PATCH 07/17] usb: musb: omap2430: use *syscon* framework to write to mailbox register

2015-06-23 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to write to the mailbox register and start using *syscon* framework to do the same. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt |7 +- drivers/usb/musb/omap2430.c| 118

[PATCH 03/17] phy: ti-pipe3: use *syscon* framework to set PCS value of the PHY

2015-06-23 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to set PCS value of the PHY and start using *syscon* framework to do the same. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/phy/ti-phy.txt |2 ++ drivers/phy/phy-ti-pipe3.c | 32

[PATCH 01/17] phy: ti-pipe3: use ti_pipe3_power_off to power off the PHY during probe

2015-06-23 Thread Kishon Vijay Abraham I
No functional change. Previously omap_control_phy_power() was used to power off the PHY during probe. But once PIPE3 driver is adapted to use syscon, omap_control_phy_power() cannot be used. Hence used ti_pipe3_power_off to power off the PHY. Signed-off-by: Kishon Vijay Abraham I --- drivers

[PATCH 11/17] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-06-23 Thread Kishon Vijay Abraham I
The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, use the new compatible string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi |2

[PATCH 04/17] phy: omap-usb2: use omap_usb_power_off to power off the PHY during probe

2015-06-23 Thread Kishon Vijay Abraham I
No functional change. Previously omap_control_phy_power() was used to power off the PHY during probe. But once phy-omap-usb2 driver is adapted to use syscon, omap_control_phy_power() cannot be used. Hence used omap_usb_power_off to power off the PHY. Signed-off-by: Kishon Vijay Abraham I

[PATCH 10/17] ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY node

2015-06-23 Thread Kishon Vijay Abraham I
e PCIe PHY node since some of the syscon initializations is based on system clock frequency. Since "omap_control_pcie1phy" and "omap_control_pcie2phy" devicetree nodes are no longer used, remove it. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi | 28 +

[PATCH 06/17] phy: omap-usb2: use *syscon* framework to power on/off the PHY

2015-06-23 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to power on/off the PHY, and use *syscon* framework to do the same. This handles powering on/off the PHY for the USB2 PHYs used in various TI SoCs. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/phy/ti-phy.txt |6

[PATCH 02/17] phy: ti-pipe3: use *syscon* framework to power on/off the PHY

2015-06-23 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to power on/off the PHY and use *syscon* framework to do the same. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/phy/ti-phy.txt | 10 ++- drivers/phy/phy-ti-pipe3.c | 91 ++ 2

[PATCH 00/17] Deprecate phy-omap-control and use SYSCON

2015-06-23 Thread Kishon Vijay Abraham I
ormed PCIe enumeration testing in DRA72-EVM. This patch series is developed on top of Linux 4.1-rc8 + http://lkml.iu.edu/hypermail/linux/kernel/1505.1/03099.html Kishon Vijay Abraham I (17): phy: ti-pipe3: use ti_pipe3_power_off to power off the PHY during probe phy: ti-pipe3: use *syscon*

Re: [PATCH 17/17] ARM: dts: omap4: Use "syscon-otghs" instead of "ctrl-module" in USB node

2015-06-24 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 24 June 2015 04:11 PM, Tony Lindgren wrote: * Kishon Vijay Abraham I [150623 05:02]: --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -852,12 +852,6 @@ }; }; - omap_control_usbotg: control-phy

Re: [PATCH 02/17] phy: ti-pipe3: use *syscon* framework to power on/off the PHY

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 23 June 2015 08:23 PM, Roger Quadros wrote: Hi Kishon, On Tue, 23 Jun 2015 17:28:47 +0530 Kishon Vijay Abraham I wrote: Deprecate using phy-omap-control driver to power on/off the PHY and use *syscon* framework to do the same. Signed-off-by: Kishon Vijay Abraham I

Re: [PATCH 06/17] phy: omap-usb2: use *syscon* framework to power on/off the PHY

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:03 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:51 +0530 > Kishon Vijay Abraham I wrote: > >> Deprecate using phy-omap-control driver to power on/off the PHY, >> and use *syscon* framework to do the same. This handles >> powe

Re: [PATCH 07/17] usb: musb: omap2430: use *syscon* framework to write to mailbox register

2015-06-24 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 24 June 2015 05:19 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [150623 05:02]: >> Deprecate using phy-omap-control driver to write to the mailbox register >> and start using *syscon* framework to do the same. > > All this stuff needs to go t

Re: [PATCH 11/17] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:37 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:56 +0530 > Kishon Vijay Abraham I wrote: > >> The USB2 PHY2 has a different register map compared to USB2 PHY1 >> to power on/off the PHY. In order to handle it, use the new compatibl

Re: [PATCH 03/17] phy: ti-pipe3: use *syscon* framework to set PCS value of the PHY

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 04:04 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:48 +0530 > Kishon Vijay Abraham I wrote: > >> Deprecate using phy-omap-control driver to set PCS value of the PHY >> and start using *syscon* framework to do the same. >> >

Re: [PATCH 05/17] phy: omap-usb2: Add a new compatible string for USB2 PHY2

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 04:33 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:50 +0530 > Kishon Vijay Abraham I wrote: > >> The USB2 PHY2 has a different register map compared to USB2 PHY1 >> to power on/off the PHY. In order to handle it, add a new &

Re: [PATCH 07/17] usb: musb: omap2430: use *syscon* framework to write to mailbox register

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:09 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:52 +0530 > Kishon Vijay Abraham I wrote: > >> Deprecate using phy-omap-control driver to write to the mailbox register >> and start using *syscon* framework to do the same. >> >

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:20 PM, Roger Quadros wrote: > On Tue, 23 Jun 2015 17:28:53 +0530 > Kishon Vijay Abraham I wrote: > >> Add new device tree node for the control module register space where >> PCIe registers are present. >> >> Signed-off-by: Kishon

Re: [PATCH 08/17] ARM: dts: dra7: Add dt node for the sycon pcie

2015-06-24 Thread Kishon Vijay Abraham I
Hi, On Wednesday 24 June 2015 05:26 PM, Roger Quadros wrote: > On Wed, 24 Jun 2015 14:50:17 +0300 > Roger Quadros wrote: > >> On Tue, 23 Jun 2015 17:28:53 +0530 >> Kishon Vijay Abraham I wrote: >> >>> Add new device tree node for the control module registe

Re: [PATCH 09/17] ARM: dts: dra7: Use "syscon-phy-power" instead of "ctrl-module" in SATA PHY node

2015-06-24 Thread Kishon Vijay Abraham I
On Wednesday 24 June 2015 05:42 PM, Roger Quadros wrote: > On Wed, 24 Jun 2015 15:06:02 +0300 > Roger Quadros wrote: > >> On Tue, 23 Jun 2015 17:28:54 +0530 >> Kishon Vijay Abraham I wrote: >> >>> Add "syscon-phy-power" property and remove the d

[PATCH 0/3] J6/J6Eco: Add PM support to PCIe

2015-07-03 Thread Kishon Vijay Abraham I
872-eedf6742bb6159c3b1a90625c4d43407 Kishon Vijay Abraham I (3): PCI: host: pci-dra7xx: Disable pm_runtime if get_sync failure PCI: host: pcie-designware: add support for suspend and resume PCI: host: pci-dra7xx: add pm support to pci dra7xx drivers/pci/host/pci-dra7xx.c |

[PATCH 1/3] PCI: host: pci-dra7xx: Disable pm_runtime on get_sync failure

2015-07-03 Thread Kishon Vijay Abraham I
Fix the error handling code in case pm_runtime_get_sync fails. Now when pm_runtime_get_sync fails pm_runtime_disable is invoked so that there is no unbalanced pm_runtime_enable calls. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/host/pci-dra7xx.c |4 +++- 1 file changed, 3

[PATCH 3/3] PCI: host: pci-dra7xx: add pm support to pci dra7xx

2015-07-03 Thread Kishon Vijay Abraham I
Add PM support to pci-dra7xx so that PCI clocks can be disabled during suspend and enabled back during resume without affecting PCI functionality. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/host/pci-dra7xx.c | 74 + 1 file changed, 74

[PATCH 2/3] PCI: host: pcie-designware: add support for suspend and resume

2015-07-03 Thread Kishon Vijay Abraham I
the MSE bit on suspend and enabled it back on resume. This is required to get suspend/resume working. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/pci/host/pcie-designware.c | 20 drivers/pci/host/pcie-designware.h |2 ++ 2 files

Re: [PATCH 2/3] PCI: host: pcie-designware: add support for suspend and resume

2015-07-10 Thread Kishon Vijay Abraham I
Hi Pratyush, On Friday 10 July 2015 06:52 PM, Pratyush Anand wrote: > Hi Kishon, > > On Fri, Jul 3, 2015 at 4:33 PM, Kishon Vijay Abraham I wrote: >> Certain platforms require MSE bit to be cleared to set the master >> in standby mode. (In DRA7xx TRM_vE, sectio

Re: [PATCH 3/3] PCI: host: pci-dra7xx: add pm support to pci dra7xx

2015-07-10 Thread Kishon Vijay Abraham I
Hi, On Friday 03 July 2015 05:34 PM, Grygorii Strashko wrote: > Hi Kishon, > > On 07/03/2015 02:03 PM, Kishon Vijay Abraham I wrote: >> Add PM support to pci-dra7xx so that PCI clocks can be disabled >> during suspend and enabled back during resume without affecting

Re: [PATCH 1/5] usb: dwc3: ep0: use _roundup_ to calculate the transfer size

2015-07-10 Thread Kishon Vijay Abraham I
Hi Felipe, On Tuesday 07 July 2015 12:30 AM, Felipe Balbi wrote: > On Wed, Jun 10, 2015 at 02:48:48PM +0530, Kishon Vijay Abraham I wrote: >> No functional change. Used _roundup_ macro to calculate the transfer >> size aligned to maxpacket in dwc3_ep0_complete_data. It also make

Re: [PATCH v2 3/3] ARM: dts: dra7: Add syscon-pllreset syscon to SATA PHY

2015-07-15 Thread Kishon Vijay Abraham I
Hi Roger, On Tuesday 02 June 2015 02:40 PM, Roger Quadros wrote: > This register is required to be passed to the SATA PHY driver > to workaround errata i783 (SATA Lockup After SATA DPLL Unlock/Relock). > > Signed-off-by: Roger Quadros > Signed-off-by: Sekhar Nori > --- > arch/arm/boot/dts/dra7

Re: [PATCH v3 3/3] ARM: dts: dra7: Add scm_conf1 node and remove redundant nodes

2015-07-20 Thread Kishon Vijay Abraham I
Hi, On Monday 20 July 2015 05:34 PM, Tero Kristo wrote: > On 07/17/2015 04:47 PM, Roger Quadros wrote: >> scm_conf1 maps the control register address space after the >> padconf till the end. >> >> Fix the scm_conf and pmx_core resource lengths. We need to add >> 4 bytes to include the last 32-bit

Re: [PATCH] mmc: omap_hsmmc: Update driver to support without regulators

2015-07-22 Thread Kishon Vijay Abraham I
Hi, On Wednesday 22 July 2015 05:37 PM, Ulf Hansson wrote: > [...] > >> Hi Ulf, >> >> Just to clarify do you have an issue with this patch or in general >> you rather nothave !CONFIG_REGULATOR supported? If its the latter >> then wouldit be better to remove the !CONFIG_REGULATOR portion from >> t

Re: [Bug?] OMAP4+: pbias functionality is broken

2015-07-22 Thread Kishon Vijay Abraham I
Hi, On Wednesday 22 July 2015 10:32 PM, Grygorii Strashko wrote: > +Cc: Kishon Vijay Abraham I > > On 07/22/2015 07:48 PM, Grygorii Strashko wrote: >> Hi Tony, Tero, All, >> >> It seems MMC PBIAS regulator functionality is broken now (on DRA7 at least). >

Re: [PATCH 2/3] PCI: host: pcie-designware: add support for suspend and resume

2015-07-23 Thread Kishon Vijay Abraham I
Hi, On Sunday 12 July 2015 04:01 PM, Jingoo Han wrote: > On Friday, July 03, 2015 8:04 PM, Kishon Vijay Abraham I wrote: >> >> Certain platforms require MSE bit to be cleared to set the master >> in standby mode. (In DRA7xx TRM_vE, section 24.9.4.5.2.2.1 PCIe > >

[PATCH v2 0/6] usb: dwc3: handle non maxpacket aligned transfers > 512

2015-07-23 Thread Kishon Vijay Abraham I
fied this doesn't cause additional failures. Lecroy compliance tests fail even without this patch series so deferred testing it. Kishon Vijay Abraham I (6): usb: dwc3: ep0: Fix mem corruption on OUT transfers of more than 512 bytes usb: dwc3: ep0: use _roundup_ to calculate the transfer size

[PATCH v2 5/6] usb: dwc3: ep0: Add chained TRB support

2015-07-23 Thread Kishon Vijay Abraham I
Add chained TRB support to ep0. Now TRB's can be chained just by invoking _dwc3_ep0_start_trans_ with 'chain' parameter set to true. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c| 16 +--- drivers/usb/dwc3/gadget.c |2 +- 2 files changed

[PATCH v2 6/6] usb: dwc3: ep0: handle non maxpacket aligned transfers > 512

2015-07-23 Thread Kishon Vijay Abraham I
Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c | 42 -- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 6847afe..0dbc0c4 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers

[PATCH v2 4/6] usb: dwc3; ep0: Modify _dwc3_ep0_start_trans_ API to take 'chain' parameter

2015-07-23 Thread Kishon Vijay Abraham I
No functional change. Added a new parameter in _dwc3_ep0_start_trans_ to indicate whether the TRB is a chained TRB or last TRB. This is in preparation for adding chained TRB support for ep0. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c | 15 --- 1 file changed

[PATCH v2 3/6] usb: dwc3: ep0: preparation for handling non maxpacket aligned transfers > 512

2015-07-23 Thread Kishon Vijay Abraham I
Vijay Abraham I --- drivers/usb/dwc3/ep0.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 713e46a..4998074 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -779,7 +779,11

[PATCH v2 2/6] usb: dwc3: ep0: use _roundup_ to calculate the transfer size

2015-07-23 Thread Kishon Vijay Abraham I
No functional change. Used _roundup_ macro to calculate the transfer size aligned to maxpacket in dwc3_ep0_complete_data. It also makes it similar to how transfer size is calculated in __dwc3_ep0_do_control_data. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c |4 +--- 1

[PATCH v2 1/6] usb: dwc3: ep0: Fix mem corruption on OUT transfers of more than 512 bytes

2015-07-23 Thread Kishon Vijay Abraham I
bytes. This will cause bounce buffer to overflow and corrupt the adjacent memory locations which can be fatal. Fix it by programming the TRB to receive a maximum of DWC3_EP0_BOUNCE_SIZE (512) bytes. Cc: vger.kernel.org> #3.4+ Signed-off-by: Kishon Vijay Abraham I --- Steps to see the is

[RESEND PATCH v2 1/6] usb: dwc3: ep0: Fix mem corruption on OUT transfers of more than 512 bytes

2015-07-23 Thread Kishon Vijay Abraham I
bytes. This will cause bounce buffer to overflow and corrupt the adjacent memory locations which can be fatal. Fix it by programming the TRB to receive a maximum of DWC3_EP0_BOUNCE_SIZE (512) bytes. Cc: sta...@vger.kernel.org #3.4+ Signed-off-by: Kishon Vijay Abraham I --- Fixed stable mail

[PATCH v2 0/3] dra7xx: Add PM support to PCIe

2015-07-24 Thread Kishon Vijay Abraham I
x27;t have a card with IO space. Once I get to test that, I'll post a separate patch for handling that. Kishon Vijay Abraham I (3): PCI: host: pci-dra7xx: Disable pm_runtime on get_sync failure PCI: host: pci-dra7xx: add pm support to pci dra7xx PCI: host: pci-dra7xx: Idle the module by

[PATCH v2 3/3] PCI: host: pci-dra7xx: Idle the module by disabling MSE bit

2015-07-24 Thread Kishon Vijay Abraham I
bit on suspend and enabled it back on resume. Clearing MSE bit is required to get clocks to be idled after suspend. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/pci/host/pci-dra7xx.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions

[PATCH v2 1/3] PCI: host: pci-dra7xx: Disable pm_runtime on get_sync failure

2015-07-24 Thread Kishon Vijay Abraham I
Fix the error handling code in case pm_runtime_get_sync fails. Now when pm_runtime_get_sync fails pm_runtime_disable is invoked so that there is no unbalanced pm_runtime_enable calls. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/host/pci-dra7xx.c |4 +++- 1 file changed, 3

[PATCH v2 2/3] PCI: host: pci-dra7xx: add pm support to pci dra7xx

2015-07-24 Thread Kishon Vijay Abraham I
Add PM support to pci-dra7xx so that PCI clocks can be disabled during suspend and enabled back during resume without affecting PCI functionality. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/host/pci-dra7xx.c | 77 + 1 file changed, 77

[PATCH v3 1/3] PCI: host: pci-dra7xx: Disable pm_runtime on get_sync failure

2015-07-26 Thread Kishon Vijay Abraham I
Fix the error handling code in case pm_runtime_get_sync fails. Now when pm_runtime_get_sync fails pm_runtime_disable is invoked so that there is no unbalanced pm_runtime_enable calls. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/host/pci-dra7xx.c |4 +++- 1 file changed, 3

[PATCH v3 0/3] dra7xx: Add PM support to PCIe

2015-07-26 Thread Kishon Vijay Abraham I
resetting and setting of MSE bit to pci-dra7xx. The comment to reset and set ISE is not done now since I don't have a card with IO space. Once I get to test that, I'll post a separate patch for handling that. Kishon Vijay Abraham I (3): PCI: host: pci-dra7xx: Disable pm_runtime o

[PATCH v3 3/3] PCI: host: pci-dra7xx: Idle the module by disabling MSE bit

2015-07-26 Thread Kishon Vijay Abraham I
bit on suspend and enabled it back on resume. Clearing MSE bit is required to get clocks to be idled after suspend. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/pci/host/pci-dra7xx.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions

[PATCH v3 2/3] PCI: host: pci-dra7xx: add pm support to pci dra7xx

2015-07-26 Thread Kishon Vijay Abraham I
Add PM support to pci-dra7xx so that PCI clocks can be disabled during suspend and enabled back during resume without affecting PCI functionality. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/host/pci-dra7xx.c | 72 + 1 file changed, 72

[PATCH v3 0/6] usb: dwc3: handle non maxpacket aligned transfers > 512

2015-07-26 Thread Kishon Vijay Abraham I
X CV (ch9 tests: usb2 and usb3, link layer testing and MSC tests) and using USB2 X CV (ch9 tests, MSC tests) and verified this doesn't cause additional failures. Lecroy compliance tests fail even without this patch series so deferred testing it. Kishon Vijay Abraham I (6): usb: dwc3: ep0:

[PATCH v3 1/6] usb: dwc3: ep0: Fix mem corruption on OUT transfers of more than 512 bytes

2015-07-26 Thread Kishon Vijay Abraham I
bytes. This will cause bounce buffer to overflow and corrupt the adjacent memory locations which can be fatal. Fix it by programming the TRB to receive a maximum of DWC3_EP0_BOUNCE_SIZE (512) bytes. Cc: # 3.4+ Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c | 12

[PATCH v3 6/6] usb: dwc3: ep0: handle non maxpacket aligned transfers > 512

2015-07-26 Thread Kishon Vijay Abraham I
Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c | 42 -- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 73500d3..f6c3c73 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers

[PATCH v3 5/6] usb: dwc3: ep0: Add chained TRB support

2015-07-26 Thread Kishon Vijay Abraham I
Add chained TRB support to ep0. Now TRB's can be chained just by invoking _dwc3_ep0_start_trans_ with 'chain' parameter set to true. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c| 16 +--- drivers/usb/dwc3/gadget.c |2 +- 2 files changed

[PATCH v3 4/6] usb: dwc3; ep0: Modify _dwc3_ep0_start_trans_ API to take 'chain' parameter

2015-07-26 Thread Kishon Vijay Abraham I
No functional change. Added a new parameter in _dwc3_ep0_start_trans_ to indicate whether the TRB is a chained TRB or last TRB. This is in preparation for adding chained TRB support for ep0. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c | 15 --- 1 file changed

[PATCH v3 2/6] usb: dwc3: ep0: use _roundup_ to calculate the transfer size

2015-07-26 Thread Kishon Vijay Abraham I
No functional change. Used _roundup_ macro to calculate the transfer size aligned to maxpacket in dwc3_ep0_complete_data. It also makes it similar to how transfer size is calculated in __dwc3_ep0_do_control_data. Signed-off-by: Kishon Vijay Abraham I --- drivers/usb/dwc3/ep0.c |4 +--- 1

[PATCH v3 3/6] usb: dwc3: ep0: preparation for handling non maxpacket aligned transfers > 512

2015-07-26 Thread Kishon Vijay Abraham I
Vijay Abraham I --- drivers/usb/dwc3/ep0.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 713e46a..4998074 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -779,7 +779,11

[PATCH 2/2] regulator: pbias: Fix broken pbias disable functionality

2015-07-27 Thread Kishon Vijay Abraham I
This will be used by regulator_disable_regmap while disabling pbias regulator. Cc: # 3.18+ Signed-off-by: Kishon Vijay Abraham I --- drivers/regulator/pbias-regulator.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/regulator/pbias-regulator.c b/drivers/regulator/pbias-regul

[PATCH 0/2] pbias regulator fixes

2015-07-27 Thread Kishon Vijay Abraham I
pbias_mmc_omap4). Kishon Vijay Abraham I (2): regulator: pbias: use untranslated address to program pbias regulator regulator: pbias: Fix broken pbias disable functionality drivers/regulator/pbias-regulator.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) -- 1.7.9.5

[PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator

2015-07-27 Thread Kishon Vijay Abraham I
from device tree node. So avoid using platform_get_resource and use of_get_address in order to get only the offset (untranslated address) and populate these in vsel_reg and enable_reg. Cc: Cc: Tero Kristo Signed-off-by: Kishon Vijay Abraham I --- drivers/regulator/pbias-regulator.c | 16

[PATCH 3/4] ARM: dts: OMAP5: Fix broken pbias device creation

2015-07-27 Thread Kishon Vijay Abraham I
mpatible property to omap5_padconf_global dt node. Fixes: ed8509edddeb ("ARM: dts: omap5: add minimal l4 bus layout with control module support") Cc: Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap5.dtsi |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH 4/4] ARM: dts: dra7: Fix broken pbias device creation

2015-07-27 Thread Kishon Vijay Abraham I
perty to scm_conf dt node. Fixes: d919501feffa ("ARM: dts: dra7: add minimal l4 bus layout with control module support") Cc: Suggested-by: Tero Kristo Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[RFT PATCH 1/4] ARM: dts: omap24xx: Fix broken pbias device creation

2015-07-27 Thread Kishon Vijay Abraham I
imple-bus" compatible property to scm_conf dt node. Fixes: 72b10ac00eb1 ("ARM: dts: omap24xx: add minimal l4 bus layout with control module support") Cc: Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap2430.dtsi |3 ++- 1 file changed, 2 insertions(+), 1 deletio

[PATCH 2/4] ARM: dts: OMAP4: Fix broken pbias device creation

2015-07-27 Thread Kishon Vijay Abraham I
ding "simple-bus" compatible property to omap4_padconf_global dt node. Fixes: 7415b0b4c645 ("ARM: dts: omap4: add minimal l4 bus layout with control module support") Cc: Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap4.dtsi |3 ++- 1 file changed, 2 insertions(+),

[PATCH 0/4] omap: Fix broken pbias device creation

2015-07-27 Thread Kishon Vijay Abraham I
pbias device creation got broken once SCM cleanup got merged. This patch series re-enables device creation by adding "simple-bus" in the compatible property of the syscon dt node. validated this series in DRA72, OMAP4 PANDA and OMAP5 UEVM boards. Kishon Vijay Abraham I (4): ARM: dts

[PATCH 0/2] pci: am57xx-evm: Fix PCIe card enumeration issue

2015-07-28 Thread Kishon Vijay Abraham I
ot;In some cases, it may be possible for the Fundamental Reset mechanism to be triggered by hardware without the removal and re-application of power to the component. This is called a warm reset. This document does not specify a means for generating a warm reset." Kishon Vijay Abraham I (2):

[PATCH 2/2] ARM: dts: am57xx-evm: Add 'gpios' property with gpio2_8

2015-07-28 Thread Kishon Vijay Abraham I
gpio2_8 is connected to the PCIe_RESETn line and it has to be driven low in order to reset the PCIe cards. So added gpios property to pcie dt node. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am57xx-beagle-x15.dts |5 + arch/arm/boot/dts/dra7.dtsi |2

[PATCH 1/2] pci: host: pci-dra7xx: Add support to make gpio drive PERST# line

2015-07-28 Thread Kishon Vijay Abraham I
The PERST# line in am57x-evm is connected to a gpio line and PERST# should be driven high to indicate the clocks are stable (As per Figure 2-10: Power Up of the PCIe CEM spec 3.0). Add support in pci-dra7xx driver to make gpio drive PERST# line here. Signed-off-by: Kishon Vijay Abraham I

[PATCH v4 3/3] PCI: host: pci-dra7xx: Idle the module by disabling MSE bit

2015-07-28 Thread Kishon Vijay Abraham I
bit on suspend and enabled it back on resume. Clearing MSE bit is required to get clocks to be idled after suspend. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/pci/host/pci-dra7xx.c | 39 +++ 1 file changed, 39 insertions

[PATCH v4 0/3] dra7xx: Add PM support to PCIe

2015-07-28 Thread Kishon Vijay Abraham I
t. Kishon Vijay Abraham I (3): PCI: host: pci-dra7xx: Disable pm_runtime on get_sync failure PCI: host: pci-dra7xx: add pm support to pci dra7xx PCI: host: pci-dra7xx: Idle the module by disabling MSE bit drivers/pci/host/pci-dra7xx.c | 94 - 1 file c

[PATCH v4 1/3] PCI: host: pci-dra7xx: Disable pm_runtime on get_sync failure

2015-07-28 Thread Kishon Vijay Abraham I
Fix the error handling code in case pm_runtime_get_sync fails. Now when pm_runtime_get_sync fails pm_runtime_disable is invoked so that there is no unbalanced pm_runtime_enable calls. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/host/pci-dra7xx.c |4 +++- 1 file changed, 3

[PATCH v4 2/3] PCI: host: pci-dra7xx: add pm support to pci dra7xx

2015-07-28 Thread Kishon Vijay Abraham I
Add PM support to pci-dra7xx so that PCI clocks can be disabled during suspend and enabled back during resume without affecting PCI functionality. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/host/pci-dra7xx.c | 51 + 1 file changed, 51

[PATCH 09/17] mmc: host: omap_hsmmc: add separate function to set pbias

2015-07-29 Thread Kishon Vijay Abraham I
No functional change. Cleanup omap_hsmmc_set_power by adding separate functions to set pbias and invoke it from omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 78 + 1 file changed, 48 insertions(+), 30

[PATCH 17/17] mmc: host: omap_hsmmc: use "mmc_of_parse_voltage" to get ocr_avail

2015-07-29 Thread Kishon Vijay Abraham I
ff-by: Franklin S Cooper Jr Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt |2 ++ drivers/mmc/host/omap_hsmmc.c |9 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/ti

[PATCH 01/17] mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc

2015-07-29 Thread Kishon Vijay Abraham I
Since vmmc can be optional for some platforms, use devm_regulator_get_optional() for vmmc. Now return error only in the case of -EPROBE_DEFER and for all other cases set host->vcc to NULL. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |8 +--- 1 file changed

[PATCH 13/17] mmc: host: omap_hsmmc: enable/disable vmmc_aux regulator based on prior state

2015-07-29 Thread Kishon Vijay Abraham I
enable vmmc_aux regulator only if it is in disabled state and disable vmmc_aux regulator only if it is in enabled state. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host

[PATCH 15/17] mmc: host: omap_hsmmc: use ios->vdd for setting vmmc voltage

2015-07-29 Thread Kishon Vijay Abraham I
vdd voltage is set in mmc core to ios->vdd and vmmc should actually be set to this voltage. Modify omap_hsmmc_enable_supply to not take vdd as argument since now it's directly set to the voltage in ios->vdd. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsm

[PATCH 14/17] mmc: host: omap_hsmmc: use regulator_is_enabled to find pbias status

2015-07-29 Thread Kishon Vijay Abraham I
Use regulator_is_enabled of pbias regulator to find pbias regulator status instead of maintaining a custom bookkeeping pbias_enabled variable. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a

[PATCH 16/17] mmc: host: omap_hsmmc: remove CONFIG_REGULATOR check

2015-07-29 Thread Kishon Vijay Abraham I
Now that support for platforms which have optional regulator is added, remove CONFIG_REGULATOR check in omap_hsmmc. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 35 +++ 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a

[PATCH 02/17] mmc: host: omap_hsmmc: return error from omap_hsmmc_reg_get on -EPROBE_DEFER

2015-07-29 Thread Kishon Vijay Abraham I
EPROBE_DEFER is not fatal and it means the regulator can still be obtained. Hence return error if devm_regulator_get_optional for vmmc_aux and pbias returns -EPROBE_DEFER. This gives omap_hsmmc driver another chance to get these regulators. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc

[PATCH 06/17] mmc: host: omap_hsmmc: remove unnecessary pbias set_voltage

2015-07-29 Thread Kishon Vijay Abraham I
Remove the unnecessary pbias regulator_set_voltage done after pbias regulator_disable in omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Roger Quadros --- drivers/mmc/host/omap_hsmmc.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/omap_hsmmc.c

[PATCH 03/17] mmc: host: omap_hsmmc: cleanup omap_hsmmc_reg_get()

2015-07-29 Thread Kishon Vijay Abraham I
-by: Kishon Vijay Abraham I Reviewed-by: Roger Quadros --- drivers/mmc/host/omap_hsmmc.c | 38 -- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 7f7625d..a78e15e 100644 --- a

[PATCH 10/17] mmc: host: omap_hsmmc: avoid pbias regulator enable on power off

2015-07-29 Thread Kishon Vijay Abraham I
Fix omap_hsmmc_set_power so that pbias regulator is not enabled during power off. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c

[PATCH 00/17] omap_hsmmc: regulator usage cleanup and fixes

2015-07-29 Thread Kishon Vijay Abraham I
sequence so that UHS cards can be supported. Did basic read/write test in J6, J6 Eco, Beagle-x15, AM437x EVM, Beaglebone black, OMAP5 uEVM and OMAP4 PANDA. Kishon Vijay Abraham I (16): mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc mmc: host: omap_hsmmc: return error from

[PATCH 07/17] mmc: host: omap_hsmmc: return error if any of the regulator APIs fail

2015-07-29 Thread Kishon Vijay Abraham I
Return error if any of the regulator APIs (regulator_enable, regulator_disable, regulator_set_voltage) fails in omap_hsmmc_set_power to avoid undefined behavior. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 52 +++-- 1 file

[PATCH 08/17] mmc: host: omap_hsmmc: add separate functions for enable/disable supply

2015-07-29 Thread Kishon Vijay Abraham I
No functional change. Cleanup omap_hsmmc_set_power by adding separate functions for enable/disable supply and invoke it from omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 101 +++-- 1 file changed, 66

[PATCH 05/17] mmc: host: omap_hsmmc: use mmc_host's vmmc and vqmmc

2015-07-29 Thread Kishon Vijay Abraham I
No functional change. Instead of using our own vcc and vcc_aux members, use vmmc and vqmmc present in mmc_host which is present for the same purpose. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Roger Quadros --- drivers/mmc/host/omap_hsmmc.c | 63

[PATCH 11/17] mmc: host: omap_hsmmc: don't use ->set_power to set initial regulator state

2015-07-29 Thread Kishon Vijay Abraham I
lso takes care of setting the voltages which is not needed at this point. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 67 +++-- 1 file changed, 57 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/driv

[PATCH 12/17] ARM: dts: am57xx-beagle-x15: Fix regulator populated in MMC1 dt node

2015-07-29 Thread Kishon Vijay Abraham I
For beagle x15, both the vdd and io lines are connected to the same regulator (ldo1_reg). However vmmc_aux is populated to vdd_3v3. Remove it. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am57xx-beagle-x15.dts |1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot

[PATCH 04/17] mmc: host: omap_hsmmc: use the ocrmask provided by the vmmc regulator

2015-07-29 Thread Kishon Vijay Abraham I
-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index a78e15e..0e690d7 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host

[PATCH 01/11] mmc: host: omap_hsmmc: Support vmmc_aux to switch to 1.8v

2015-07-30 Thread Kishon Vijay Abraham I
Add support for vmmc_aux to switch to 1.8v. Also use "iov" instead of "vdd" to indicate io voltage. This is in preparation for adding support for io signal voltage switch. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 47

[PATCH 07/11] mmc: host: omap_hsmmc: add tuning support

2015-07-30 Thread Kishon Vijay Abraham I
;caps" field. Signed-off-by: Balaji T K Signed-off-by: Viswanath Puttagunta Signed-off-by: Sourav Poddar [kis...@ti.com : cleanup the tuning sequence] Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 234 - 1 file changed, 232

<    1   2   3   4   5   6   7   8   9   10   >