[PATCH v2 1/2] ARM: dts: da850: Add usb device node

2017-01-06 Thread Axel Haslam
Add the usb1 device node for the da850 soc. This will allow boards to use the usb1 port when booting through DT. Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi

[PATCH v2 2/2] ARM: dts: da850-lcdk: Enable ohci for omapl138 lcdk

2017-01-06 Thread Axel Haslam
Enable the usb1 controller (ohci) and phy for the lcdk board Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850-lcdk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index 03f9bfd..94f6ea9 100644 --- a/arch/arm

[PATCH v2 0/2] ARM: davinvi: da850 add ohci DT nodes

2017-01-06 Thread Axel Haslam
on merged ohci patches. Axel Haslam (2): ARM: dts: da850: Add usb device node ARM: dts: da850-lcdk: Enable ohci for omapl138 lcdk arch/arm/boot/dts/da850-lcdk.dts | 4 arch/arm/boot/dts/da850.dtsi | 8 2 files changed, 12 insertions(+) -- 2.9.3

Re: [PATCH 1/2] ARM: dts: da850: Add usb device node

2017-01-06 Thread Axel Haslam
On Thu, Jan 5, 2017 at 11:49 PM, David Lechner wrote: > Hi Sekhar, > > On 11/21/2016 10:59 AM, Axel Haslam wrote: >> >> Add the usb1 device node for the da850 soc. >> This will allow boards to use the usb1 port >> when booting through DT. >> >> Signed-

[PATCHv4 0/2] regulator: handling of error conditions for usb drivers

2016-12-15 Thread Axel Haslam
by for DT bindings Changes v2 -> v3 * dropped merged patch to add new API * rebased on top of regulator-next Changes v1->v2 * add new API to get error status instead of extending events (Mark) * use gpiod for fixed regulator: This spears us extra platform data and bindings Axel Haslam (2):

[PATCHv4 2/2] regulator: fixed: Handle optional overcurrent pin

2016-12-15 Thread Axel Haslam
consumer. Signed-off-by: Axel Haslam --- drivers/regulator/fixed.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index a43b0e8..eca 100644 --- a/drivers/regulator/fixed.c +++ b/drivers

[PATCHv4 1/2] regulator: fixed: dt: Allow an optional over current pin

2016-12-15 Thread Axel Haslam
Add support for an optional over current input pin which can be used to send an over current event to the regulator consumer. Cc: devicet...@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Axel Haslam --- Documentation/devicetree/bindings/regulator/fixed-regulator.txt | 2 ++ 1 file

Re: [PATCH] regulator: Fix regulator_get_error_flags() signature mismatch

2016-12-05 Thread Axel Haslam
On Sun, Dec 4, 2016 at 11:52 PM, David Lechner wrote: > The function signature of does not match regulator_get_error_flags() > when CONFIG_REGULATOR is not defined vs. when it is not defined. > This makes both declarations match to prevent compiler errors. > > Signed-off-by: David Lechner > --- >

[PATCH] ARM: dts: da850: enable high speed for mmc

2016-12-01 Thread Axel Haslam
The mmc controller in da850 supports high speed modes so add cap-sd-highspeed and cap-mmc-highspeed. Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index ffc6e1a

[PATCH v2 0/3] ARM: davinci: OHCI: Use a regulator instead of callbacks

2016-11-24 Thread Axel Haslam
hci-da8xx: Add device tree support https://lkml.org/lkml/2016/11/23/557 2. [PATCH v3 0/2] regulator: handling of error conditions for usb drivers https://lkml.org/lkml/2016/11/4/465 Axel Haslam (3): ARM: davinci: da830: Handle vbus with a regulator ARM: davinci: hawk: Remove vbus and over curr

[PATCH v2 1/3] ARM: davinci: da830: Handle vbus with a regulator

2016-11-24 Thread Axel Haslam
The usb driver can now take a regulator instead of the platform callbacks for vbus handling. Lets use a regulator so we can remove the callbacks in a later patch. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 109 1 file changed, 39

[PATCH v2 3/3] ARM: davinci: remove ohci platform usage

2016-11-24 Thread Axel Haslam
As all users of ohci platform data have been converted to use a regulator, we dont need to pass platform data to register the ohci device anymore. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 2 +- arch/arm/mach-davinci/board-omapl138-hawk.c | 2 +- arch/arm/mach

[PATCH v2 2/3] ARM: davinci: hawk: Remove vbus and over current gpios

2016-11-24 Thread Axel Haslam
The hawk board VBUS is fixed to a 5v source, and the over current pin is actually not connected to the SoC. Do not reseve these gpios for OHCI as they are not related to usb. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 99 ++--- 1 file

[PATCH v2 1/3] ARM: davinci: hawk: use gpio descriptor for mmc pins

2016-11-24 Thread Axel Haslam
, and polling is no longer needed. Also, a dependency on platform callbacks is removed for this board. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 42 - 1 file changed, 11 insertions(+), 31 deletions(-) diff --git a/arch/arm/mach-da

[PATCH v2 2/3] ARM: davinci: da850-evm: use gpio descriptor for mmc pins

2016-11-24 Thread Axel Haslam
, and polling is no longer needed. Also, a dependency on platform callbacks is removed for this board. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da850-evm.c | 35 ++--- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/arch/arm/mach-da

[PATCH v2 3/3] ARM: davinci: da830-evm: use gpio descriptor for mmc pins

2016-11-24 Thread Axel Haslam
, and polling is no longer needed. Also, a dependency on platform callbacks is removed for this board. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 41 + 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/arch/arm/mach-da

[PATCH v2 0/3] ARM: davinci: use gpio descriptors for mmc pins

2016-11-24 Thread Axel Haslam
evm and da830-evm *keep hack board pins as they are not compatible with lcdk (Sekhar) Dependency: This patch depends on a mmc driver patch currently in linux-next. MMC: davinci: fix card detect and write protect https://lkml.org/lkml/2016/11/15/592 Axel Haslam (3): ARM: davinci: hawk: use g

[PATCHv2] USB: ohci: da8xx: Resume the entire host controller

2016-11-24 Thread Axel Haslam
, remove setting device power_state, as this is no longer needed and scheduled for removal Acked-by: Alan Stern Signed-off-by: Axel Haslam --- Changes v1->v2 * reword commit message (Alan Stern) drivers/usb/host/ohci-da8xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --gi

[PATCH] USB: ohci: da8xx: Balance ochi_disable with ohci_enable in resume.

2016-11-23 Thread Axel Haslam
ohci_suspend and flags the HW as "accessible" again, resume completes successfully and usb is working after a suspend/resume sequence. While we are here, remove setting device power_state, as this is no longer needed and scheduled for removal. Signed-off-by: Axel Haslam --- drivers/usb/host/oh

[PATCHv7 2/5] USB: ohci: da8xx: Add wrappers for platform callbacks

2016-11-23 Thread Axel Haslam
place to for the regulator API to coexist with the platform callbacks before all users are converted. Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 125 ++ 1 file changed, 102 insertions(+), 23 deletions(-) diff --git a/drivers/usb/host/ohci

[PATCHv7 4/5] USB: ohci: da8xx: Add devicetree bindings

2016-11-23 Thread Axel Haslam
This patch documents the device tree bindings required for the ohci controller found in TI da8xx family of SoC's Cc: robh...@kernel.org Cc: mark.rutl...@arm.com Cc: devicet...@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Axel Haslam --- .../devicetree/bindings/usb/ohci-da8x

[PATCHv7 1/5] USB: ohci: da8xx: use ohci priv data instead of globals

2016-11-23 Thread Axel Haslam
Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 73 +-- 1 file changed, 43 insertions(+), 30 deletions(-) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index bd6cf3c..cd75677 100644 --- a/drivers/usb/host/ohci-da8xx.c

[PATCHv7 0/5] SB: ohci-da8xx: Add device tree support

2016-11-23 Thread Axel Haslam
framework * Fixed regulator is able to register for and over current irq * Added patch by Alexandre to remove build warnings * Moved global variables into private hcd structure. Axel Haslam (5): USB: ohci: da8xx: use ohci priv data instead of globals USB: ohci: da8xx: Add wrappers for platfo

[PATCHv7 3/5] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-23 Thread Axel Haslam
ble get_power -> regulator_is_enabled get_oci -> regulator_get_error_flags ocic_notify -> regulator event notification Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 96 +-- 1 file changed, 93 insertions(+), 3 deleti

[PATCHv7 5/5] USB: ohci: da8xx: Allow probing from DT

2016-11-23 Thread Axel Haslam
This adds the compatible string to the ohci driver to be able to probe from DT Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 07366ae..1818206 100644

Re: [PATCH v6 3/5] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-22 Thread Axel Haslam
On Tue, Nov 22, 2016 at 9:37 PM, David Lechner wrote: > On 11/21/2016 10:30 AM, Axel Haslam wrote: >> >> Using a regulator to handle VBUS will eliminate the need for >> platform data and callbacks, and make the driver more generic >> allowing different types o

Re: [PATCH v3 0/2] regulator: handling of error conditions for usb drivers

2016-11-22 Thread Axel Haslam
Hi Mark, On Fri, Nov 4, 2016 at 10:35 PM, Axel Haslam wrote: > Some usb drivers rely on external power switches/regulators > to for the port vbus. Some of these drivers are using > a plain gpio for the enable pin and also the over current > indicator pin. > > To make these dr

Re: [RESEND PATCH 2/3] ARM: davinci: hawk: Remove vbus and over current gpios

2016-11-22 Thread Axel Haslam
Hi Sekhar On Tue, Nov 22, 2016 at 11:37 AM, Sekhar Nori wrote: > On Monday 21 November 2016 10:23 PM, Axel Haslam wrote: >> The hawk board VBUS is fixed to a 5v source, and the over >> current pin is actually not connected to the SoC. >> >> Do not reseve these gpi

Re: [v5,3/5] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-22 Thread Axel Haslam
On Mon, Nov 21, 2016 at 5:29 PM, David Lechner wrote: > On 11/21/2016 04:22 AM, Axel Haslam wrote: >> >> Hi David, >> >> Thanks for the review, >> > > You're welcome. > >>>> >>>> @@ -160,15 +212,41 @@ s

Re: [PATCH 3/3] ARM: davinci: hawk: use gpio descriptor for card detect

2016-11-22 Thread Axel Haslam
On Tue, Nov 22, 2016 at 11:26 AM, Sekhar Nori wrote: > On Monday 21 November 2016 09:45 PM, Axel Haslam wrote: >> Currently the mmc driver is polling the gpio to know if the >> card was removed. >> >> By using a gpio descriptor instead of the platform callbacks, th

Re: [PATCH 1/3] ARM: davinci: hawk: fix mmc card detect gpio

2016-11-22 Thread Axel Haslam
On Tue, Nov 22, 2016 at 10:53 AM, Sekhar Nori wrote: > On Monday 21 November 2016 09:45 PM, Axel Haslam wrote: >> The card detect gpio on the hawk board is gpio4_0 and not gpio3_12 >> >> Signed-off-by: Axel Haslam > > The LCDK and HawkBoard are different boards. The

Re: [PATCH 0/2] ARM: davinvi: da850 add ohci DT nodes

2016-11-22 Thread Axel Haslam
On Tue, Nov 22, 2016 at 10:33 AM, Sekhar Nori wrote: > On Monday 21 November 2016 10:29 PM, Axel Haslam wrote: >> This adds the DT node for the ohci controller and >> enables it for the omapl138-lckd platform. >> >> DEPENDENCIES: >> >> 1. [PATCH v6 0/5] U

Re: [PATCH 0/2] ARM: davinvi: da850 add ohci DT nodes

2016-11-21 Thread Axel Haslam
On Mon, Nov 21, 2016 at 6:45 PM, David Lechner wrote: > On 11/21/2016 11:29 AM, Axel Haslam wrote: >> >> On Mon, Nov 21, 2016 at 6:04 PM, David Lechner >> wrote: >>> >>> On 11/21/2016 10:59 AM, Axel Haslam wrote: >>>> >>>> >>

Re: [PATCH 0/2] ARM: davinvi: da850 add ohci DT nodes

2016-11-21 Thread Axel Haslam
On Mon, Nov 21, 2016 at 6:04 PM, David Lechner wrote: > On 11/21/2016 10:59 AM, Axel Haslam wrote: >> >> This adds the DT node for the ohci controller and >> enables it for the omapl138-lckd platform. >> >> DEPENDENCIES: >> >> 1. [PATCH v6 0/5] USB:

Re: [PATCH v2 3/3] usb: ohci-da8xx: rename driver to ohci-da8xx

2016-11-21 Thread Axel Haslam
Hi Greg, On Thu, Nov 3, 2016 at 5:03 PM, Axel Haslam wrote: > The davinci ohci driver name (currently "ohci") is too generic. > To be consistent with other usb dirvers, append the "-da8xx" postfix > to the name. > if there are no objections, would it be pos

[PATCH] ARM: davinci_all_defconfig: Enable OHCI as module

2016-11-21 Thread Axel Haslam
Enable the davinci ohci driver as a module for usb tested with the omap138-lcdk hawk board. Signed-off-by: Axel Haslam --- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig

[PATCH 2/2] ARM: dts: da850-lcdk: Enable ohci for omapl138 lcdk

2016-11-21 Thread Axel Haslam
Enable the usb1 controller (ohci) and phy for the lcdk board Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850-lcdk.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index 7b8ab21..a739603 100644 --- a/arch

[PATCH 1/2] ARM: dts: da850: Add usb device node

2016-11-21 Thread Axel Haslam
Add the usb1 device node for the da850 soc. This will allow boards to use the usb1 port when booting through DT. Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi

[PATCH 0/2] ARM: davinvi: da850 add ohci DT nodes

2016-11-21 Thread Axel Haslam
/lkml/2016/11/4/465 Axel Haslam (2): ARM: dts: da850: Add usb device node ARM: dts: da850-lcdk: Enable ohci for omapl138 lcdk arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi | 8 2 files changed, 16 insertions(+) -- 2.9.3

[RESEND PATCH 2/3] ARM: davinci: hawk: Remove vbus and over current gpios

2016-11-21 Thread Axel Haslam
The hawk board VBUS is fixed to a 5v source, and the over current pin is actually not connected to the SoC. Do not reseve these gpios for OHCI as they are not related to usb. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 99 ++--- 1 file

[RESEND PATCH 3/3] ARM: davinci: remove ohci platform usage

2016-11-21 Thread Axel Haslam
As all users of ohci platform data have been converted to use a regulator, we dont need to pass platform data to register the ohci device anymore. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 2 +- arch/arm/mach-davinci/board-omapl138-hawk.c | 2 +- arch/arm/mach

[RESEND PATCH 1/3] ARM: davinci: da830: Handle vbus with a regulator

2016-11-21 Thread Axel Haslam
The usb driver can now take a regulator instead of the platform callbacks for vbus handling. Lets use a regulator so we can remove the callbacks in a later patch. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 108 +++- 1 file changed, 38

[RESEND PATCH 0/3] ARM: davinci: OHCI: Use a regulator instead of callbacks

2016-11-21 Thread Axel Haslam
of error conditions for usb drivers https://lkml.org/lkml/2016/11/4/465 3. [PATCH v2 0/3] davinci: ohci: fix usb ohci device name http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1263999.html Axel Haslam (3): ARM: davinci: da830: Handle vbus with a regulator ARM: davinci: hawk

[PATCH v6 3/5] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-21 Thread Axel Haslam
ble get_power -> regulator_is_enabled get_oci -> regulator_get_error_flags ocic_notify -> regulator event notification Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 97 +-- 1 file changed, 94 insertions(+), 3 deleti

[PATCH v6 2/5] USB: ohci: da8xx: Add wrappers for platform callbacks

2016-11-21 Thread Axel Haslam
place to for the regulator API to coexist with the platform callbacks before all users are converted. Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 125 ++ 1 file changed, 102 insertions(+), 23 deletions(-) diff --git a/drivers/usb/host/ohci

[PATCH v6 5/5] USB: ohci: da8xx: Allow probing from DT

2016-11-21 Thread Axel Haslam
This adds the compatible string to the ohci driver to be able to probe from DT Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index d0eb754..8b7479b 100644

[PATCH v6 4/5] USB: ohci: da8xx: Add devicetree bindings

2016-11-21 Thread Axel Haslam
This patch documents the device tree bindings required for the ohci controller found in TI da8xx family of SoC's Cc: robh...@kernel.org Cc: mark.rutl...@arm.com Cc: devicet...@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Axel Haslam --- .../devicetree/bindings/usb/ohci-da8x

[PATCH v6 0/5] USB: ohci-da8xx: Add device tree support

2016-11-21 Thread Axel Haslam
nto private hcd structure. Axel Haslam (5): USB: ohci: da8xx: use ohci priv data instead of globals USB: ohci: da8xx: Add wrappers for platform callbacks USB: ohci: da8xx: Allow a regulator to handle VBUS USB: ohci: da8xx: Add devicetree bindings USB: ohci: da8xx: Allow probing from DT .../devi

[PATCH v6 1/5] USB: ohci: da8xx: use ohci priv data instead of globals

2016-11-21 Thread Axel Haslam
Instead of global variables, use the extra_priv_size of the ohci driver. We cannot yet move the ocic mask because this is used on the interrupt handler which is registerded through platform data and does not have an hcd pointer. This will be moved on a later patch. Signed-off-by: Axel Haslam

[PATCH 3/3] ARM: davinci: hawk: use gpio descriptor for card detect

2016-11-21 Thread Axel Haslam
tered, and polling is no longer needed. Also, platform callbacks can be removed. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b

[PATCH 1/3] ARM: davinci: hawk: fix mmc card detect gpio

2016-11-21 Thread Axel Haslam
The card detect gpio on the hawk board is gpio4_0 and not gpio3_12 Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board

[PATCH 2/3] ARM: davinci: hawk: remove mmc ro pin

2016-11-21 Thread Axel Haslam
The hawk board does not have a write protect pin to read the card write protect status. So remove un-needed platform data declaration for this gpio. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions

[PATCH 0/3] ARM: davinci: hawk: fix mmc gpio declaration

2016-11-21 Thread Axel Haslam
detect irq instead of polling. DEPENDENCIES: MMC: davinci: fix card detect and write protect https://lkml.org/lkml/2016/11/15/592 Axel Haslam (3): ARM: davinci: hawk: fix mmc card detect gpio ARM: davinci: hawk: remove mmc ro pin ARM: davinci: hawk: use gpio descriptor for card detect arch/arm

[PATCH] ARM: dts: da850-lcdk: fix mmc card detect polarity

2016-11-21 Thread Axel Haslam
The polarity of the card detect pin is inverted. Change it to reflect the right polarity for the board which is ACTIVE_LOW. Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850-lcdk.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b

Re: [PATCH v3 10/10] ARM: dts: da850: add usb device node

2016-11-21 Thread Axel Haslam
On Mon, Nov 21, 2016 at 11:49 AM, Sekhar Nori wrote: > On Monday 21 November 2016 04:16 PM, Sekhar Nori wrote: In commit 2957e36e76c836b167e5e0c1edb578d8a9bd7af6 in the linux-davinci >> tree, the alias for the musb device is usb0. So, I think we should use >> usb1 >> here inst

Re: [PATCH v3 10/10] ARM: dts: da850: add usb device node

2016-11-21 Thread Axel Haslam
On Mon, Nov 21, 2016 at 3:42 AM, David Lechner wrote: > On 11/07/2016 02:39 PM, Axel Haslam wrote: >> >> This adds the ohci device node for the da850 soc. >> It also enables it for the omapl138 hawk board. >> >> Signed-off-by: Axel Haslam >> --- &

Re: [v5,3/5] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-21 Thread Axel Haslam
regulator_get_error_flags >> ocic_notify -> regulator event notification >> >> Signed-off-by: Axel Haslam >> --- >> drivers/usb/host/ohci-da8xx.c | 95 >> ++- >> 1 file changed, 93 insertions(+), 2 deletions(-) &g

Re: [v5,1/5] USB: ohci: da8xx: use ohci priv data instead of globals

2016-11-21 Thread Axel Haslam
>> the interrupt handler which is registerded through platform >> data and does not have an hcd pointer. This will be moved >> on a later patch. >> >> Signed-off-by: Axel Haslam >> --- >> drivers/usb/host/ohci-da8xx.c | 73 >> +--

[PATCH 0/2] MMC: davinci: fix card detect and write protect

2016-11-15 Thread Axel Haslam
additional patches to platform data and dts files. Axel Haslam (2): MMC: davinci: use mmc_of_parse to parse common mmc configuration MMC: davinci: request gpios using gpio descriptors drivers/mmc/host/davinci_mmc.c | 130 + 1 file changed, 66 insertions

[PATCH 1/2] MMC: davinci: use mmc_of_parse to parse common mmc configuration

2016-11-15 Thread Axel Haslam
, which will take care of registering the gpios for us, lets use it so that we don't need to poll, and parse the same properties. Signed-off-by: Axel Haslam --- drivers/mmc/host/davinci_mmc.c | 119 +++-- 1 file changed, 55 insertions(+), 64 deletions(-)

[PATCH 2/2] MMC: davinci: request gpios using gpio descriptors

2016-11-15 Thread Axel Haslam
backs. Signed-off-by: Axel Haslam --- drivers/mmc/host/davinci_mmc.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 619e50e..36b5af8 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc

[PATCH v5 0/5] USB: ohci-da8xx: Add device tree support

2016-11-14 Thread Axel Haslam
work * Fixed regulator is able to register for and over current irq * Added patch by Alexandre to remove build warnings * Moved global variables into private hcd structure. Axel Haslam (5): USB: ohci: da8xx: use ohci priv data instead of globals USB: ohci: da8xx: Add wrappers for platform callbacks

[PATCH v5 3/5] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-14 Thread Axel Haslam
ble get_power -> regulator_is_enabled get_oci -> regulator_get_error_flags ocic_notify -> regulator event notification Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 95 ++- 1 file changed, 93 insertions(+), 2 deleti

[PATCH v5 2/5] USB: ohci: da8xx: Add wrappers for platform callbacks

2016-11-14 Thread Axel Haslam
In preparation to use a regulator instead of platform callbacks, move the platform callbacks into separate functions. This provides a well defined place to for the regulator API to coexist with the callbacks until all users are converted, and the callbacks can be removed. Signed-off-by: Axel

[PATCH v5 1/5] USB: ohci: da8xx: use ohci priv data instead of globals

2016-11-14 Thread Axel Haslam
Instead of global variables, use the extra_priv_size of the ohci driver. We cannot yet move the ocic mask because this is used on the interrupt handler which is registerded through platform data and does not have an hcd pointer. This will be moved on a later patch. Signed-off-by: Axel Haslam

[PATCH v5 5/5] USB: ohci: da8xx: Allow probing from DT

2016-11-14 Thread Axel Haslam
This adds the compatible string to the ohci driver to be able to probe from DT Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 42eaeb9..b761b2b 100644

[PATCH v5 4/5] USB: ohci: da8xx: Add devicetree bindings

2016-11-14 Thread Axel Haslam
This patch documents the device tree bindings required for the ohci controller found in TI da8xx family of SoC's Cc: robh...@kernel.org Cc: mark.rutl...@arm.com Cc: devicet...@vger.kernel.org Signed-off-by: Axel Haslam --- .../devicetree/bindings/usb/ohci-da8xx.txt

Re: [PATCH v3 00/10] Add DT support for ohci-da8xx

2016-11-10 Thread Axel Haslam
On Thu, Nov 10, 2016 at 1:02 PM, Greg KH wrote: > On Tue, Nov 08, 2016 at 05:37:41PM +0100, Axel Haslam wrote: >> Hi, >> >> On Mon, Nov 7, 2016 at 9:39 PM, Axel Haslam wrote: >> > The purpose of this patch series is to add DT support for the davinci >> > oh

[PATCH v2 2/2] pinctrl: single: search for the bits property when parsing bits

2016-11-09 Thread Axel Haslam
The pcs_parse_bits_in_pinctrl_entry function should search for the "pinctrl-single,bits" and not "pinctrl-single,pins" Signed-off-by: Axel Haslam --- drivers/pinctrl/pinctrl-single.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctr

[PATCH v2 0/2] pinctrl: single: fixes for davinci

2016-11-09 Thread Axel Haslam
) [] (pinctrl_dt_to_map) from [] (pinctrl_get+0xe8/0x484) [snip] This series fixes this error. Changes form v1 -> v2 * Add an error message, and correct also other places where the issue is seen * Add patch to parse for bits instead of pins Axel Haslam (2): pinctrl: single: check for any error when gett

[PATCH v2 1/2] pinctrl: single: check for any error when getting rows

2016-11-09 Thread Axel Haslam
pinctrl_count_index_with_args returns -ENOENT not -EINVAL. The return check would pass, and we would try to kzalloc with a negative error size throwing a warning. Instead of checking for -EINVAL specifically, lets check for any error and avoid negative size allocations. Signed-off-by: Axel

[PATCH] pinctrl: single: check for any error when getting rows

2016-11-09 Thread Axel Haslam
pinctrl_count_index_with_args returns -ENOENT not -EINVAL. The return check would pass, and we would try to kzalloc with a negative error size throwing a warning. Instead of checking for -EINVAL specifically, lets check for any error and avoid negative size allocations. Signed-off-by: Axel

[PATCH 1/2] USB: ohci: da8xx: Remove ohci platform callbacks

2016-11-08 Thread Axel Haslam
Now that all ohci users are are using a regulator, we can remove the platform callbacks and data. potpgt is no longer necessary as a power on delay time can be specified for the regulator itself. Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 84

[PATCH 2/2] USB: ohci: da8xx: use a flag instead of mask for ocic

2016-11-08 Thread Axel Haslam
Now that the platform callback is removed, we can move the over current indictor changed flag to the private data structure. Since the driver only handles a single port, there is no need for ocic to be a mask, we can use a simple flag instead. Signed-off-by: Axel Haslam --- drivers/usb/host

[PATCH 0/2] [PART 3/4] USB: ohci-da8xx: Remove platform callbacks

2016-11-08 Thread Axel Haslam
dependencies can be found here: https://github.com/axelhaslamx/linux-axel/commits/ohci-da8xx-dt-v4 Axel Haslam (2): USB: ohci: da8xx: Remove ohci platform callbacks USB: ohci: da8xx: use a flag instead of mask for ocic drivers/usb/host/ohci-da8xx.c | 101

[PATCH 1/3] ARM: davinci: da830: Handle vbus with a regulator

2016-11-08 Thread Axel Haslam
The usb driver can now take a regulator instead of the platform callbacks for vbus handling. Lets use a regulator so we can remove the callbacks in a later patch. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 108 +++- 1 file changed, 38

[PATCH 2/3] ARM: davinci: hawk: Remove vbus and over current gpios

2016-11-08 Thread Axel Haslam
The hawk board VBUS is fixed to a 5v source, and the over current pin is actually not connected to the SoC. Do not reseve these gpios for OHCI as they are not related to usb. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 99 ++--- 1 file

[PATCH 3/3] ARM: davinci: remove ohci platform usage

2016-11-08 Thread Axel Haslam
As all users of ohci platform data have been converted to use a regulator, we dont need to pass platform data to register the ohci device anymore. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 2 +- arch/arm/mach-davinci/board-omapl138-hawk.c | 2 +- arch/arm/mach

[PATCH 0/3] [PART 4/4] USB: ohci-da8xx: Add DT support

2016-11-08 Thread Axel Haslam
://github.com/axelhaslamx/linux-axel/commits/ohci-da8xx-dt-v4 Axel Haslam (3): USB: ohci: da8xx: Add devicetree bindings USB: ohci: da8xx: Allow probing from DT ARM: dts: da850: add usb device node .../devicetree/bindings/usb/ohci-da8xx.txt | 39 ++ arch/arm/boot/dts

[PATCH v4 1/3] USB: ohci: da8xx: use ohci priv data instead of globals

2016-11-08 Thread Axel Haslam
Instead of global variables, use the extra_priv_size of the ohci driver. We cannot yet move the ocic mask because this is used on the interrupt handler which is registerded through platform data and does not have an hcd pointer. This will be moved on a later patch. Signed-off-by: Axel Haslam

[PATCH 3/3] ARM: dts: da850: add usb device node

2016-11-08 Thread Axel Haslam
This adds the ohci device node for the da850 soc. It also enables it for the omapl138 hawk board. Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi | 8 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/da850

[PATCH v4 2/3] USB: ohci: da8xx: Prepare to remove platform callbacks

2016-11-08 Thread Axel Haslam
following patch. Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 125 ++ 1 file changed, 102 insertions(+), 23 deletions(-) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 0442c64..9ed43c7 100644 --- a/drivers

[PATCH 2/3] USB: ohci: da8xx: Allow probing from DT

2016-11-08 Thread Axel Haslam
This adds the compatible string to the ohci driver to be able to probe from DT Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 83b182e..bbfe342 100644

[PATCH 0/3] [PART 2/4] ARM: davinci: OHCI: Use a regulator instead of callbacks

2016-11-08 Thread Axel Haslam
/axelhaslamx/linux-axel/commits/ohci-da8xx-dt-v4 Axel Haslam (3): ARM: davinci: da830: Handle vbus with a regulator ARM: davinci: hawk: Remove vbus and over current gpios ARM: davinci: remove ohci platform usage arch/arm/mach-davinci/board-da830-evm.c | 108 ++-- arch/arm

[PATCH v4 3/3] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-08 Thread Axel Haslam
-> regulator_enable/regulator_disable get_power -> regulator_is_enabled get_oci -> regulator_get_error_flags ocic_notify -> regulator event notification Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 97 ++- 1 file

[PATCH 1/3] USB: ohci: da8xx: Add devicetree bindings

2016-11-08 Thread Axel Haslam
This patch documents the device tree bindings required for the ohci controller found in TI da8xx family of SoC's Cc: devicet...@vger.kernel.org Signed-off-by: Axel Haslam --- .../devicetree/bindings/usb/ohci-da8xx.txt | 39 ++ 1 file changed, 39 insertions(+) c

[PATCH v4 0/3] [PART 1/4] USB: ohci-da8xx: Allow a regulator for VBUS and over current

2016-11-08 Thread Axel Haslam
ing Gpios (David Lechner) * Add an over current mode to regulator framework * Fixed regulator is able to register for and over current irq * Added patch by Alexandre to remove build warnings * Moved global variables into private hcd structure. Axel Haslam (3): USB: ohci: da8xx: use ohci priv dat

Re: [PATCH v3 00/10] Add DT support for ohci-da8xx

2016-11-08 Thread Axel Haslam
Hi, On Mon, Nov 7, 2016 at 9:39 PM, Axel Haslam wrote: > The purpose of this patch series is to add DT support for the davinci > ohci driver. > To make it easier to review. I will split the arch/arm and driver patches into separate series. Regards Axel > To be able to use de

[PATCH v3 00/10] Add DT support for ohci-da8xx

2016-11-07 Thread Axel Haslam
] http://www.spinics.net/lists/linux-gpio/msg17710.html [4] https://github.com/axelhaslamx/linux-axel/commits/ohci-da8xx-dt-v3 Axel Haslam (10): USB: ohci: da8xx: use ohci priv data instead of globals USB: ohci: da8xx: Prepare to remove platform callbacks USB: ohci: da8xx: Allow a regulator to handle VBUS

[PATCH v3 02/10] USB: ohci: da8xx: Prepare to remove platform callbacks

2016-11-07 Thread Axel Haslam
following patch. Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 125 ++ 1 file changed, 102 insertions(+), 23 deletions(-) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 0442c64..9ed43c7 100644 --- a/drivers

[PATCH v3 10/10] ARM: dts: da850: add usb device node

2016-11-07 Thread Axel Haslam
This adds the ohci device node for the da850 soc. It also enables it for the omapl138 hawk board. Signed-off-by: Axel Haslam --- arch/arm/boot/dts/da850-lcdk.dts | 8 arch/arm/boot/dts/da850.dtsi | 8 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/da850

[PATCH v3 04/10] ARM: davinci: da830: Handle vbus with a regulator

2016-11-07 Thread Axel Haslam
The usb driver can now take a regulator instead of the platform callbacks for vbus handling. Lets use a regulator so we can remove the callbacks in a later patch. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 108 +++- 1 file changed, 38

[PATCH v3 09/10] USB: ohci: da8xx: Allow probing from DT

2016-11-07 Thread Axel Haslam
This adds the compatible string to the ohci driver to be able to probe from DT Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index 83b182e..bbfe342 100644

[PATCH v3 05/10] ARM: davinci: hawk: Remove vbus and over current gpios

2016-11-07 Thread Axel Haslam
The hawk board VBUS is fixed to a 5v source, and the over current pin is actually not connected to the SoC. Do not reseve these gpios for OHCI as they are not related to usb. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-omapl138-hawk.c | 99 ++--- 1 file

[PATCH v3 06/10] USB: ohci: da8xx: Remove ohci platform callbacks

2016-11-07 Thread Axel Haslam
Now that all ohci users are are using a regulator, we can remove the platform callbacks and data. potpgt is no longer necessary as a power on delay time can be specified for the regulator itself. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/board-da830-evm.c | 2 +- arch/arm/mach

[PATCH v3 07/10] USB: ohci: da8xx: use a flag instead of mask for ocic

2016-11-07 Thread Axel Haslam
Now that the platform callback is removed, we can move the over current indictor changed flag to the private data structure. Since the driver only handles a single port, there is no need for ocic to be a mask, we can use a simple flag instead. Signed-off-by: Axel Haslam --- drivers/usb/host

[PATCH v3 08/10] USB: ohci: da8xx: Add devicetree bindings

2016-11-07 Thread Axel Haslam
This patch documents the device tree bindings required for the ohci controller found in TI da8xx family of SoC's Cc: devicet...@vger.kernel.org Signed-off-by: Axel Haslam --- .../devicetree/bindings/usb/ohci-da8xx.txt | 39 ++ 1 file changed, 39 insertions(+) c

[PATCH v3 03/10] USB: ohci: da8xx: Allow a regulator to handle VBUS

2016-11-07 Thread Axel Haslam
-> regulator_enable/regulator_disable get_power -> regulator_is_enabled get_oci -> regulator_get_error_flags ocic_notify -> regulator event notification Signed-off-by: Axel Haslam --- drivers/usb/host/ohci-da8xx.c | 97 ++- 1 file

[PATCH v3 01/10] USB: ohci: da8xx: use ohci priv data instead of globals

2016-11-07 Thread Axel Haslam
Instead of global variables, use the extra_priv_size of the ohci driver. We cannot yet move the ocic mask because this is used on the interrupt handler which is registerded through platform data and does not have an hcd pointer. This will be moved on a later patch. Signed-off-by: Axel Haslam

[PATCH v3 0/2] regulator: handling of error conditions for usb drivers

2016-11-04 Thread Axel Haslam
API * rebased on top of regulator-next Changes v1->v2 * add new API to get error status instead of extending events (Mark) * use gpiod for fixed regulator: This spears us extra platform data and bindings Axel Haslam (2): regulator: fixed: dt: Allow an optional over current pin regulator:

  1   2   >