[PATCH] usb: host: ohci-pxa27x: use of_property_read_bool()

2015-11-15 Thread Saurabh Sengar
for checking if a property is present or not, of_property_read_bool is more appropriate then of_get_property() Signed-off-by: Saurabh Sengar --- drivers/usb/host/ohci-pxa27x.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 2/2] ehci-platform: Add support for controllers with multiple reset lines

2015-11-15 Thread Hans de Goede
From: Reinder de Haan At least the EHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion OHCI is still asserted, which means we need to de-assert 2 reset-controllers for this EHCI controller to

[PATCH 0/2] ehci-platform: Add support for controllers with multiple reset lines

2015-11-15 Thread Hans de Goede
Hi All, Note the second patch in this set obviously depends on the first patch. Perhaps it is best to merge both through Greg's tree with Philipp's ack ? Regards, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org

[PATCH 1/2] reset: Add of_reset_control_get_by_index

2015-11-15 Thread Hans de Goede
From: Reinder de Haan In some cases it is useful to be able to get a reset-controller by index rather then by name. E.g. for a generic ip-block driver such as the ehci-platform drivers which needs to support more then one reset, without knowing the names of the reset lines

[PATCH 2/5] phy-sun4i-usb: Add support for the host usb-phys found on the H3 SoC

2015-11-15 Thread Hans de Goede
From: Reinder de Haan Note this commit only adds support for phys 1-3, phy 0, the otg phy, is not yet (fully) supported after this commit. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede ---

[PATCH 4/5] ARM: dts: sun8i: Add usbphy and usb host controller nodes

2015-11-15 Thread Hans de Goede
From: Reinder de Haan Add nodes describing the H3's usbphy and usb host controller nodes. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-h3.dtsi | 101

[PATCH 5/5] ARM: dts: sun8i-h3-orangepi-plus: Enable USB host controllers

2015-11-15 Thread Hans de Goede
From: Reinder de Haan Enable the 3 pairs of USB host controllers used on the Orange Pi Plus. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 28

[PATCH 3/5] ARM: dts: sun8i: Add support for H3 usb clocks

2015-11-15 Thread Hans de Goede
From: Reinder de Haan Add a node describing the usb-clks found on the H3. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-h3.dtsi | 12 1 file changed, 12 insertions(+) diff

[PATCH 1/5] clk: sunxi: Add support for the H3 usb phy clocks

2015-11-15 Thread Hans de Goede
From: Reinder de Haan The H3 has a usb-phy clk register which is similar to that of earlier SoCs, but with support for a larger number of phys. So we can simply add a new set of clk-data and a new compatible and be done with it. Signed-off-by: Reinder de Haan

Re: [PATCH v4 0/5] usb: usbtmc: Add support for missing functions in USBTMC-USB488 spec

2015-11-15 Thread Andy Shevchenko
On Sun, Nov 15, 2015 at 8:34 PM, Dave Penkler wrote: > Implement support for the USB488 defined READ_STATUS_BYTE ioctl (1/5) > and SRQ notifications with fasync (2/5) and poll/select (3/5) in order > to be able to synchronize with variable duration instrument > operations. > >

Re: XHCI, "brain-dead scanner", and microframe rounding

2015-11-15 Thread Stéphane Lavergne
On Sat, Sep 12, 2015 at 4:08 AM, Hans-Peter Jansen wrote: > With some changes in the 4.0 time frame, AND an update of the epson iscan > stuff, I'm happily scanning with my Epson 4490 Photo scanner plugged to a USB > 3.0 port using xsane. > > Other USB 3.0 issues are currently

Re: [PATCH v4 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-15 Thread Andy Shevchenko
On Sun, Nov 15, 2015 at 8:39 PM, Dave Penkler wrote: > Background: > When performing a read on an instrument that is executing a function > that runs longer than the USB timeout the instrument may hang and > require a device reset to recover. The READ_STATUS_BYTE operation >

Re: [PATCH v4 5/5] Add ioctls to enable and disable local controls on an instrument

2015-11-15 Thread Andy Shevchenko
On Sun, Nov 15, 2015 at 8:40 PM, Dave Penkler wrote: > These ioctls provide support for the USBTMC-USB488 control requests > for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT > Nitpicks below. > Signed-off-by: Dave Penkler > --- >

[PATCH v4 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-15 Thread Dave Penkler
Background: When performing a read on an instrument that is executing a function that runs longer than the USB timeout the instrument may hang and require a device reset to recover. The READ_STATUS_BYTE operation always returns even when the instrument is busy permitting to poll for the

Re: [PATCH 2/2] ehci-platform: Add support for controllers with multiple reset lines

2015-11-15 Thread kbuild test robot
Hi Reinder, [auto build test ERROR on: v4.3-rc7] [also build test ERROR on: next-20151115] url: https://github.com/0day-ci/linux/commits/Hans-de-Goede/reset-Add-of_reset_control_get_by_index/20151116-034643 config: i386-allmodconfig (attached as .config) reproduce: # save

Re: Page allocation failure

2015-11-15 Thread Steinar H. Gunderson
On Sat, Nov 14, 2015 at 12:36:48PM -0500, Alan Stern wrote: > Hmmm. If the shared memory can be accessed by the CPU using ordinary > load and store instructions and it can be kmalloc'ed, then it should be > usable for zerocopy I/O. But again, only if it satisfies the > restrictions imposed by

Re: [PATCH v3 04/12] usb: xhci: dbc: add support for Intel xHCI dbc quirk

2015-11-15 Thread Lu Baolu
Hi, On 11/13/2015 11:34 PM, Dmitry Malkin wrote: On Mon, 9 Nov 2015 15:38:33 +0800, Lu Baolu wrote: On Intel platform, if the debug target is connected with debug host, enabling DCE bit in command register leads to a hung bus state. In the hung state, the host system will not see a port

Re: [linux-sunxi] [PATCH 3/5] ARM: dts: sun8i: Add support for H3 usb clocks

2015-11-15 Thread Chen-Yu Tsai
On Mon, Nov 16, 2015 at 3:46 AM, Hans de Goede wrote: > From: Reinder de Haan > > Add a node describing the usb-clks found on the H3. > > Signed-off-by: Reinder de Haan > Signed-off-by: Hans de Goede

Re: [linux-sunxi] [PATCH 1/5] clk: sunxi: Add support for the H3 usb phy clocks

2015-11-15 Thread Chen-Yu Tsai
On Mon, Nov 16, 2015 at 3:46 AM, Hans de Goede wrote: > From: Reinder de Haan > > The H3 has a usb-phy clk register which is similar to that of earlier > SoCs, but with support for a larger number of phys. So we can simply add > a new set of clk-data

Re: [linux-sunxi] [PATCH 5/5] ARM: dts: sun8i-h3-orangepi-plus: Enable USB host controllers

2015-11-15 Thread Chen-Yu Tsai
Hi, On Mon, Nov 16, 2015 at 3:46 AM, Hans de Goede wrote: > From: Reinder de Haan > > Enable the 3 pairs of USB host controllers used on the Orange Pi Plus. > > Signed-off-by: Reinder de Haan > Signed-off-by: Hans de Goede

Re: [PATCH 2/2] ehci-platform: Add support for controllers with multiple reset lines

2015-11-15 Thread kbuild test robot
Hi Reinder, [auto build test ERROR on v4.3-rc7] [also build test ERROR on next-20151115] url: https://github.com/0day-ci/linux/commits/Hans-de-Goede/reset-Add-of_reset_control_get_by_index/20151116-034643 config: x86_64-allmodconfig (attached as .config) reproduce: # save

[PATCH v6 1/4] gadget: Introduce the usb charger framework

2015-11-15 Thread Baolin Wang
This patch introduces the usb charger driver based on usb gadget that makes an enhancement to a power driver. It works well in practice but that requires a system with suitable hardware. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from

[PATCH v6 4/4] power: wm831x_power: Support USB charger current limit management

2015-11-15 Thread Baolin Wang
Integrate with the newly added USB charger interface to limit the current we draw from the USB input based on the input device configuration identified by the USB stack, allowing us to charge more quickly from high current inputs without drawing more current than specified from others.

[PATCH v6 3/4] gadget: Integrate with the usb gadget supporting for usb charger

2015-11-15 Thread Baolin Wang
When the usb gadget supporting for usb charger is ready, the usb charger should get the type by the 'get_charger_type' callback which is implemented by the usb gadget operations, and get the usb charger pointer from struct 'usb_gadget'. Signed-off-by: Baolin Wang ---

[PATCH v6 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2015-11-15 Thread Baolin Wang
Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices based on Linux (such as mobile phones) may not

[PATCH v6 2/4] gadget: Support for the usb charger framework

2015-11-15 Thread Baolin Wang
For supporting the usb charger, it adds the usb_charger_init() and usb_charger_exit() functions for usb charger initialization and exit. It will report to the usb charger when the gadget state is changed, then the usb charger can do the power things. Introduce a callback 'get_charger_type' which

Darlehen anbieten

2015-11-15 Thread OCEAN FINANCE
Guten Tag, Wir sind OCEAN FINANCE Darlehen Unternehmen geben Kredite per Post Anzeige. Wir bieten verschiedene Arten von Krediten (kurz- und langfristige Darlehen, persönliche Darlehen, Kredite an Unternehmen etc.) um 3% Zins. Wir geben Kredite an Menschen in Not nicht unabhängig

[PATCH] usb: gadget: Add the console support for usb-to-serial port

2015-11-15 Thread Baolin Wang
It dose not work when we want to use the usb-to-serial port based on one usb gadget as a console. Thus this patch adds the console initialization to support this request. Signed-off-by: Baolin Wang --- drivers/usb/gadget/Kconfig |6 +

[PATCH v4 0/5] usb: usbtmc: Add support for missing functions in USBTMC-USB488 spec

2015-11-15 Thread Dave Penkler
Implement support for the USB488 defined READ_STATUS_BYTE ioctl (1/5) and SRQ notifications with fasync (2/5) and poll/select (3/5) in order to be able to synchronize with variable duration instrument operations. Add ioctls for other USB488 requests: REN_CONTROL, GOTO_LOCAL and LOCAL_LOCKOUT.

[PATCH v4 5/5] Add ioctls to enable and disable local controls on an instrument

2015-11-15 Thread Dave Penkler
These ioctls provide support for the USBTMC-USB488 control requests for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c | 76 include/uapi/linux/usb/tmc.h | 6 2 files

[PATCH v4 2/5] Add support for USBTMC USB488 SRQ notification with fasync

2015-11-15 Thread Dave Penkler
Background: By configuring an instrument's event status register various conditions can be reported via an SRQ notification. This complements the synchronous polling approach using the READ_STATUS_BYTE ioctl with an asynchronous notification. Signed-off-by: Dave Penkler ---

[PATCH v4 3/5] Add support for receiving USBTMC USB488 SRQ notifications via poll/select

2015-11-15 Thread Dave Penkler
Background: In many situations operations on multiple instruments need to be synchronized. poll/select provide a convenient way of waiting on a number of different instruments and other peripherals simultaneously. Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c |

[PATCH v4 4/5] Add ioctl to retrieve USBTMC-USB488 capabilities

2015-11-15 Thread Dave Penkler
This is a convenience function to obtain an instrument's capabilities from its file descriptor without having to access sysfs from the user program. Signed-off-by: Dave Penkler --- drivers/usb/class/usbtmc.c | 12 include/uapi/linux/usb/tmc.h | 21