Re: [PATCH] net: qmi_wwan: Add ID for Telewell TW-LTE 4G v2

2014-07-02 Thread Bjørn Mork
Bernd Wachter writes: > There's a new version of the Telewell 4G modem working with, but not > recognized by this driver. > > Signed-off-by: Bernd Wachter > --- > --- linux-3.15.3/drivers/net/usb/qmi_wwan.c.orig 2014-07-01 > 21:31:07.0 +0300 > +++ linux-3.15.3/drivers/net/usb/qmi_

Re: [Patch v7 3/3] usb: dwc3: qcom: Add device tree binding

2014-07-02 Thread Ivan T. Ivanov
Hi, On Tue, 2014-07-01 at 14:47 -0500, Rob Herring wrote: > On Tue, Jul 1, 2014 at 1:01 PM, Andy Gross wrote: > > On Tue, Jul 01, 2014 at 12:04:35AM -0500, Rob Herring wrote: > > > > > >> > + > >> > + ranges; > >> > + > >> > + status = "disabled";

Re: [PATCH 2/2 v2] HID: leds: Use attribute-groups in MSI GT683R driver

2014-07-02 Thread Jiri Kosina
On Tue, 1 Jul 2014, Bryan Wu wrote: > Great, I just cherry-picked and applied to my tree > http://git.kernel.org/cgit/linux/kernel/git/cooloney/linux-leds.git/commit/?h=for-next&id=f471d9480275796dea2ac7ec249b050e70a2888d Ok, perfect, thanks. I am marking my 'for-3.17/hid-gt683r' so that it woul

Re: [PATCH] USB: remove CONFIG_USB_PERSIST from Documentation

2014-07-02 Thread Paul Bolle
On Tue, 2014-06-24 at 13:19 -0400, Alan Stern wrote: > On Tue, 24 Jun 2014, Paul Bolle wrote: > > On Tue, 2014-06-24 at 10:25 -0400, Alan Stern wrote: > > > Also, that "Later kernels" thing has already arrived. I believe it was > > > implemented in 2.6.35. > > > > How does the kernel currently c

[PATCH] usb: option: Add ID for Telewell TW-LTE 4G v2

2014-07-02 Thread Bernd Wachter
Add ID of the Telewell 4G v2 hardware to option driver to get legacy serial interface working Signed-off-by: Bernd Wachter --- --- linux-3.15.3/drivers/usb/serial/option.c.orig 2014-07-02 12:23:28.0 +0300 +++ linux-3.15.3/drivers/usb/serial/option.c2014-07-02 12:25:16.000

[PATCH] HID: use multi input quirk for 22b9:2968

2014-07-02 Thread Wen-chien Jesse Sung
This device generates ABS_Z and ABS_RX events instead of ABS_X and ABS_Y. Signed-off-by: Wen-chien Jesse Sung --- drivers/hid/hid-ids.h | 1 + drivers/hid/usbhid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 6d00b

[PATCH v2] Documentation: sysfs-bus-usb: update power/persist description

2014-07-02 Thread Paul Bolle
There's no power/persist file for hubs. And CONFIG_USB_PERSIST was removed in v2.6.26. Update the description of power/persist accordingly. Also remove the line on its default value. It is not entirely correct, as CONFIG_USB_DEFAULT_PERSIST and the USB_QUIRK_RESET flag influence the default. It is

Re: DMA over USB

2014-07-02 Thread Peter Stuge
Raghavendra wrote: > I have a query regarding DMA(Direct Memory Access) for the usb devices. USB devices never do DMA. > As far as Linux is concerned, how the DMA action being taking place for > USB devices. It doesn't take place. > As per my understanding, the USB host controller is taking car

[PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-02 Thread Andrzej Pietrasiewicz
Add support for OS descriptors. The new format of descriptors is used, because the "flags" field is required for extensions. os_count gives the number of OSDesc[] elements. The format of descriptors is given in include/uapi/linux/usb/functionfs.h. For extended properties descriptor the usb_ext_pro

Re: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-02 Thread Peter Stuge
Andrzej Pietrasiewicz wrote: > +++ b/include/uapi/linux/usb/functionfs.h > @@ -33,6 +32,42 @@ struct usb_endpoint_descriptor_no_audio { .. > +/* MS OS Extended Compatibility Descriptor header */ > +struct usb_ext_compat_desc_header { > + struct usb_os_desc_header header; > + __u8bCount

Re: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-02 Thread Andrzej Pietrasiewicz
W dniu 02.07.2014 13:04, Peter Stuge pisze: Andrzej Pietrasiewicz wrote: +++ b/include/uapi/linux/usb/functionfs.h @@ -33,6 +32,42 @@ struct usb_endpoint_descriptor_no_audio { .. +/* MS OS Extended Compatibility Descriptor header */ +struct usb_ext_compat_desc_header { + struct usb_os_d

Re: [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss

2014-07-02 Thread Roger Quadros
Sekhar, On 06/18/2014 02:19 PM, Rajendra Nayak wrote: > On Wednesday 18 June 2014 04:40 PM, Roger Quadros wrote: >> + Nishant and Rajendra for review. >> >> On 05/05/2014 12:54 PM, Roger Quadros wrote: >>> Add the sysconfig class bits for the Super Speed USB >>> controllers >>> >>> CC: Paul Walmsl

Re: [PATCHv2 0/6] phy: simplified phy lookup

2014-07-02 Thread Kishon Vijay Abraham I
Hi, On Thursday 05 June 2014 06:51 PM, Vivek Gautam wrote: > Hi Heikki, > > > On Thu, Jun 5, 2014 at 6:22 PM, Heikki Krogerus > wrote: >> Hi, >> >> So the idea with these is that they should help to make it possible to >> request phys without caring about how they are mapped to the >> consumers

Re: DMA over USB

2014-07-02 Thread Raghavendra
Thank you for responding Peter, Raghavendra wrote: I have a query regarding DMA(Direct Memory Access) for the usb devices. USB devices never do DMA. As far as Linux is concerned, how the DMA action being taking place for USB devices. It doesn't take place. As per my understanding, the USB

[PATCH 5/6] phy: omap-usb2: Balance pm_runtime_enable() on probe failure

2014-07-02 Thread Roger Quadros
If probe fails then we need to call pm_runtime_disable() to balance out the previous pm_runtime_enable() call. Else it will cause unbalanced pm_runtime_enable() call in the succeding probe call. This anomaly was observed when the call to devm_phy_create() failed with -EPROBE_DEFER. Signed-off-by:

[PATCH 6/6] ARM: dts: dra7-evm: Add regulator information to USB2 PHYs

2014-07-02 Thread Roger Quadros
The ldousb_reg regulator provides power to the USB1 and USB2 High Speed PHYs. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dra7-evm.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 8308954..50f8022 100644

[PATCH 2/6] phy: core: Fix error path in phy_create()

2014-07-02 Thread Roger Quadros
Prevent resources from being freed twice in case device_add() call fails within phy_create(). Also use ida_simple_remove() instead of ida_remove() as we had used ida_simple_get() to allocate the ida. Signed-off-by: Roger Quadros --- drivers/phy/phy-core.c | 7 --- 1 file changed, 4 insertion

[PATCH 1/6] ARM: dts: dra7-evm: Make VDDA_1V8_PHY supply always on

2014-07-02 Thread Roger Quadros
After clarification from the hardware team it was found that this 1.8V PHY supply can't be switched OFF when SoC is Active. It can only be switched off when in PORz (power on reset). This patch is required for proper functionality of USB, SATA and PCIe on DRA7-evm. CC: Rajendra Nayak CC: Tero Kr

[PATCH 3/6] phy: core: Support regulator supply for PHY power

2014-07-02 Thread Roger Quadros
Some PHYs can be powered by an external power regulator. e.g. USB_HS PHY on DRA7 SoC. Make the PHY core support a power regulator. Signed-off-by: Roger Quadros --- drivers/phy/phy-core.c | 32 include/linux/phy/phy.h | 2 ++ 2 files changed, 34 insertions(+) d

[PATCH 4/6] phy: core: Add phy-supply to DT binding documentation

2014-07-02 Thread Roger Quadros
phy-supply is a phandle to the regulator that provides power to the PHY. This regulator is managed during the PHY power on/off sequence by the phy core driver. Signed-off-by: Roger Quadros --- Documentation/devicetree/bindings/phy/phy-bindings.txt | 4 1 file changed, 4 insertions(+) diff

[PATCH 0/6] omap: phy: dra7-evm PHY fixes for 3.16

2014-07-02 Thread Roger Quadros
Hi, On DRA7-evm, the VDDA_1V8_PHY supply must be always-on for proper functioning of the PHYs on the SoC. The 3.3V USB supply (ldousb_reg) can be turned OFF when the High Speed USB PHYs are not in use. We add regulator support in the PHY framework core to manage the PHY's regulator during PHY pow

Re: [PATCH] HID: use multi input quirk for 22b9:2968

2014-07-02 Thread Sergei Shtylyov
Hello. On 07/02/2014 02:04 PM, Wen-chien Jesse Sung wrote: This device generates ABS_Z and ABS_RX events instead of ABS_X and ABS_Y. Signed-off-by: Wen-chien Jesse Sung --- drivers/hid/hid-ids.h | 1 + drivers/hid/usbhid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+)

RE: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-02 Thread David Laight
From: Andrzej Pietrasiewicz > Sent: 02 July 2014 12:20 > To: linux-usb@vger.kernel.org; Michal Nazarewicz; Felipe Balbi; Greg > Kroah-Hartman; Marek Szyprowski > Subject: Re: [PATCH] usb: gadget: f_fs: OS descriptors support > > W dniu 02.07.2014 13:04, Peter Stuge pisze: > > Andrzej Pietrasiewic

Re: [PATCH 3/6] phy: core: Support regulator supply for PHY power

2014-07-02 Thread Sergei Shtylyov
Hello. On 07/02/2014 04:03 PM, Roger Quadros wrote: Some PHYs can be powered by an external power regulator. e.g. USB_HS PHY on DRA7 SoC. Make the PHY core support a power regulator. Signed-off-by: Roger Quadros --- drivers/phy/phy-core.c | 32 include/l

RE: DMA over USB

2014-07-02 Thread David Laight
From: Raghavendra > Thank you for responding Peter, > > Raghavendra wrote: > >> I have a query regarding DMA(Direct Memory Access) for the usb devices. > > USB devices never do DMA. > > > >> As far as Linux is concerned, how the DMA action being taking place for > >> USB devices. > > It doesn't tak

Re: [Patch v7 3/3] usb: dwc3: qcom: Add device tree binding

2014-07-02 Thread Arnd Bergmann
On Wednesday 02 July 2014 11:43:25 Ivan T. Ivanov wrote: > > > > > > > > >> > + > > >> > + ranges; > > >> > + > > >> > + status = "disabled"; > > >> > + > > >> > + dwc3@1100 { > > >> > + compatible

Re: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-02 Thread Michal Nazarewicz
On Wed, Jul 02 2014, Andrzej Pietrasiewicz wrote: > Add support for OS descriptors. The new format of descriptors is used, > because the "flags" field is required for extensions. os_count gives > the number of OSDesc[] elements. > The format of descriptors is given in include/uapi/linux/usb/functi

Re: [PATCH] HID: use multi input quirk for 22b9:2968

2014-07-02 Thread Jesse Sung
2014-07-02 20:19 GMT+08:00 Sergei Shtylyov : > Hello. > > > On 07/02/2014 02:04 PM, Wen-chien Jesse Sung wrote: > >> This device generates ABS_Z and ABS_RX events instead of ABS_X and >> ABS_Y. > > >> Signed-off-by: Wen-chien Jesse Sung >> --- >> drivers/hid/hid-ids.h | 1 + >> driver

Re: [PATCH 1/6] ARM: dts: dra7-evm: Make VDDA_1V8_PHY supply always on

2014-07-02 Thread Nishanth Menon
On 07/02/2014 07:03 AM, Roger Quadros wrote: > After clarification from the hardware team it was found that > this 1.8V PHY supply can't be switched OFF when SoC is Active. > It can only be switched off when in PORz (power on reset). I dont think folks know the reasoning why hardware team decided

[PATCH v2] HID: use multi input quirk for 22b9:2968

2014-07-02 Thread Wen-chien Jesse Sung
This device generates ABS_Z and ABS_RX events instead of ABS_X and ABS_Y. Signed-off-by: Wen-chien Jesse Sung --- drivers/hid/hid-ids.h | 1 + drivers/hid/usbhid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 6d00b

Re: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-02 Thread Michal Nazarewicz
On Wed, Jul 02 2014, David Laight wrote: > From: Andrzej Pietrasiewicz >> Sent: 02 July 2014 12:20 >> To: linux-usb@vger.kernel.org; Michal Nazarewicz; Felipe Balbi; Greg >> Kroah-Hartman; Marek Szyprowski >> Subject: Re: [PATCH] usb: gadget: f_fs: OS descriptors support >> >> W dniu 02.07.2014

Chipidea gadget unplug/disconnect event

2014-07-02 Thread Michael Grzeschik
Hi Peter, Is it possible to get the chipidea to generate an event on udc unplugging? I see the code path in ci_udc_vbus_session of udc.c to trigger such an event, but unfortunately it was never possible to run into that code. The function ci_otg_work in otg.c is prepared to do that in case the i

Re: am335x: linux 3.16-rc3: USB DMA issue

2014-07-02 Thread Yegor Yefremov
On Tue, Jul 1, 2014 at 5:37 PM, Ezequiel García wrote: > On 1 July 2014 12:07, Yegor Yefremov wrote: > [..] >> >> What can be done with these error messages: >> >> of_get_named_gpiod_flags: can't parse gpios property of node >> '/ocp/usb@4740/usb-phy@47401300[0]' >> 47401300.usb-phy supply vc

Re: am335x: linux 3.16-rc3: USB DMA issue

2014-07-02 Thread Yegor Yefremov
On Tue, Jul 1, 2014 at 5:43 PM, Bin Liu wrote: > On Tue, Jul 1, 2014 at 10:37 AM, Ezequiel García > wrote: >> On 1 July 2014 12:07, Yegor Yefremov wrote: >> [..] >>> >>> What can be done with these error messages: >>> >>> of_get_named_gpiod_flags: can't parse gpios property of node >>> '/ocp/usb

RE: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-02 Thread David Laight
From: Michal Nazarewicz ... > > Alternatively it shouldn't be 'packed', and a full audit of the > > other structures done to determine which ones can ever be misaligned > > and then determine whether that should actually be allowed. > > All of the structures describe a wire protocol, whether we th

RE: DMA over USB

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, David Laight wrote: > From: Raghavendra > > Thank you for responding Peter, > > > Raghavendra wrote: > > >> I have a query regarding DMA(Direct Memory Access) for the usb devices. > > > USB devices never do DMA. > > > > > >> As far as Linux is concerned, how the DMA action bein

Re: [PATCH 0/3] Tegra USB probe order issue fix

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Tuomas Tynkkynen wrote: > Hi all, > > This series fixes a probe order issue with the Tegra EHCI driver. > Basically, the register area of the 1st USB controller contains some > registers that are global to all of the controllers, but that are also > cleared when reset is asser

Re: [PATCH 1/8] CLK: ti: dra7: Initialize USB_DPLL

2014-07-02 Thread Tero Kristo
On 03/07/2014 03:09 PM, Roger Quadros wrote: USB_DPLL must be initialized and locked at boot so that USB modules can work. Also program USB_DLL_M2 output to half rate. CC: Mike Turquette CC: Tero Kristo Signed-off-by: Roger Quadros --- drivers/clk/ti/clk-7xx.c | 11 +++ 1 file cha

Re: [PATCH] USB: remove CONFIG_USB_PERSIST from Documentation

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Paul Bolle wrote: > On Tue, 2014-06-24 at 13:19 -0400, Alan Stern wrote: > > On Tue, 24 Jun 2014, Paul Bolle wrote: > > > On Tue, 2014-06-24 at 10:25 -0400, Alan Stern wrote: > > > > Also, that "Later kernels" thing has already arrived. I believe it was > > > > implemented in

Re: [PATCH v2] Documentation: sysfs-bus-usb: update power/persist description

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Paul Bolle wrote: > There's no power/persist file for hubs. And CONFIG_USB_PERSIST was > removed in v2.6.26. Update the description of power/persist accordingly. > Also remove the line on its default value. It is not entirely correct, as > CONFIG_USB_DEFAULT_PERSIST and the USB

Re: [PATCH 1/6] ARM: dts: dra7-evm: Make VDDA_1V8_PHY supply always on

2014-07-02 Thread Roger Quadros
On 07/02/2014 04:05 PM, Nishanth Menon wrote: > On 07/02/2014 07:03 AM, Roger Quadros wrote: >> After clarification from the hardware team it was found that >> this 1.8V PHY supply can't be switched OFF when SoC is Active. >> It can only be switched off when in PORz (power on reset). > > I dont th

Re: [PATCH 0/3] Tegra USB probe order issue fix

2014-07-02 Thread Stephen Warren
On 07/02/2014 08:02 AM, Alan Stern wrote: > On Wed, 2 Jul 2014, Tuomas Tynkkynen wrote: > >> Hi all, >> >> This series fixes a probe order issue with the Tegra EHCI driver. >> Basically, the register area of the 1st USB controller contains some >> registers that are global to all of the controller

Re: [Patch v7 3/3] usb: dwc3: qcom: Add device tree binding

2014-07-02 Thread Felipe Balbi
Hi, On Wed, Jul 02, 2014 at 02:48:17PM +0200, Arnd Bergmann wrote: > On Wednesday 02 July 2014 11:43:25 Ivan T. Ivanov wrote: > > > > > > > > > > > >> > + > > > >> > + ranges; > > > >> > + > > > >> > + status = "disabled"; > > > >> > + > > > >> > +

[PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Stefan Klug
Hi everybody, in short: The attached patch adds zerocopy support to the usbfs driver. I tested it on x86 and on a globalscale mirabox ARM board. Until now it works quite nice and I'd love to get some comments and feedback on the patch. Longer version: The usbfs driver does not support direct da

Re: [PATCH 0/3] Tegra USB probe order issue fix

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Stephen Warren wrote: > On 07/02/2014 08:02 AM, Alan Stern wrote: > > On Wed, 2 Jul 2014, Tuomas Tynkkynen wrote: > > > >> Hi all, > >> > >> This series fixes a probe order issue with the Tegra EHCI driver. > >> Basically, the register area of the 1st USB controller contains s

Re: [PATCH 0/3] Tegra USB probe order issue fix

2014-07-02 Thread Stephen Warren
On 07/02/2014 10:09 AM, Alan Stern wrote: > On Wed, 2 Jul 2014, Stephen Warren wrote: > >> On 07/02/2014 08:02 AM, Alan Stern wrote: >>> On Wed, 2 Jul 2014, Tuomas Tynkkynen wrote: >>> Hi all, This series fixes a probe order issue with the Tegra EHCI driver. Basically, the regi

Re: [PATCH 0/5] usb: gadget: cleanup gadget driver .unbind usage at udc driver

2014-07-02 Thread Felipe Balbi
On Tue, Jul 01, 2014 at 04:50:02AM +, Peter Chen wrote: > > > -Original Message- > > From: Peter Chen [mailto:peter.c...@freescale.com] > > Sent: Saturday, June 21, 2014 9:41 PM > > To: ba...@ti.com > > Cc: linux-usb@vger.kernel.org > > Subject: Re: [PATCH 0/5] usb: gadget: cleanup ga

Re: [PATCH v2][for 3.16 0/3] Gadget directory cleanup

2014-07-02 Thread Felipe Balbi
On Tue, Jul 01, 2014 at 01:14:28PM +0200, Andrzej Pietrasiewicz wrote: > W dniu 30.06.2014 20:21, Felipe Balbi pisze: > >Hi, > > > >On Tue, Jun 17, 2014 at 02:19:14PM +0200, Andrzej Pietrasiewicz wrote: > >>This is a follow-up to this thread: > >> > >>http://www.spinics.net/lists/linux-usb/msg10761

Re: [PATCH v2 2/2] usb: gadget: Add xilinx axi usb2 device support

2014-07-02 Thread Felipe Balbi
Hi, On Sun, May 25, 2014 at 11:10:30PM +0530, sundeep subbaraya wrote: > Hi Felipe, > > Please take a look at below about how this IP works: > > IN: > req.buf ---> DMA (transfers from ddr to IP buffer, raise DMA > done interrupt and set Buffer ready to transfer data to Host)>Host > PC

Re: [PATCH 0/3] usb: common: otg-fsm: add HNP polling support for otg fsm

2014-07-02 Thread Felipe Balbi
On Mon, May 19, 2014 at 01:55:42PM +0800, Li Jun wrote: > From: Li Jun > > Hi Felipe, > > This patchset adds otg HNP polling common part for otg fsm. awesome :-) How have you tested it ? > > Li Jun (3): > usb: common: otg-fsm: start HNP polling timer in host state > usb: common: otg-fsm:

[PATCH 2/2 v5] HID: leds: move led_mode attribute to led-class devices in MSI GT683R driver

2014-07-02 Thread Janne Kanniainen
Move led_mode attribute from HID device to led-class devices. This will also fix race condition by using attribute-groups. Signed-off-by: Janne Kanniainen --- Changes in v3: - Style fixes - Rename sysfs-class-hid-driver-gt683r to sysfs-class-leds-driver-gt683r Changes in v4:

Re: [PATCH 0/3] Tegra USB probe order issue fix

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Stephen Warren wrote: > On 07/02/2014 10:09 AM, Alan Stern wrote: > > On Wed, 2 Jul 2014, Stephen Warren wrote: > > > >> On 07/02/2014 08:02 AM, Alan Stern wrote: > >>> On Wed, 2 Jul 2014, Tuomas Tynkkynen wrote: > >>> > Hi all, > > This series fixes a probe ord

Re: [PATCH] usb: gadget: f_fs: OS descriptors support

2014-07-02 Thread Michal Nazarewicz
On Wed, Jul 02 2014, David Laight wrote: > From: Michal Nazarewicz > ... >> > Alternatively it shouldn't be 'packed', and a full audit of the >> > other structures done to determine which ones can ever be misaligned >> > and then determine whether that should actually be allowed. >> >> All of the

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Greg KH
On Wed, Jul 02, 2014 at 05:53:56PM +0200, Stefan Klug wrote: > Hi everybody, > in short: The attached patch adds zerocopy support to the usbfs driver. > I tested it on x86 and on a globalscale mirabox ARM board. Until now it > works > quite nice and I'd love to get some comments and feedback on the

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Stefan Klug wrote: > Hi everybody, > in short: The attached patch adds zerocopy support to the usbfs driver. > I tested it on x86 and on a globalscale mirabox ARM board. Until now it > works > quite nice and I'd love to get some comments and feedback on the patch. > > Longer

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Peter Stuge
Thank you very much for working on this, Stefan. Alan Stern wrote: > Also, many host controllers cannot handle arbitrary alignment. > It would be best to require that the buffer start at a page boundary. This requires a bit of negotiation with userspace, maybe per-URB but it seems better to neg

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Oliver Neukum
On Wed, 2014-07-02 at 17:53 +0200, Stefan Klug wrote: > Implementation details: > The patch only touches drivers/usb/core/devio.c. > In procy_do_submiturb(), it is checked if zerocopy is allowed. This is > currently a rough > check which compares the number of required pages to > ps->dev->bus->s

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Peter Stuge wrote: > Thank you very much for working on this, Stefan. > > Alan Stern wrote: > > Also, many host controllers cannot handle arbitrary alignment. > > It would be best to require that the buffer start at a page boundary. > > This requires a bit of negotiation wi

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Oliver Neukum wrote: > On Wed, 2014-07-02 at 17:53 +0200, Stefan Klug wrote: > > > Implementation details: > > The patch only touches drivers/usb/core/devio.c. > > In procy_do_submiturb(), it is checked if zerocopy is allowed. This is > > currently a rough > > check which com

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Peter Stuge
Alan Stern wrote: > > > Also, many host controllers cannot handle arbitrary alignment. > > > It would be best to require that the buffer start at a page boundary. > > > > This requires a bit of negotiation with userspace, maybe per-URB but > > I don't follow. What negotiation is needed? All t

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Alan Stern
On Wed, 2 Jul 2014, Peter Stuge wrote: > > The kernel doesn't support scatter-gather for control transfers, only > > bulk. > > That could possibly change, right, and then it would be nice to have > zerocopy for free there as well? No. ohci-hcd doesn't support control transfers larger than 4 KB

RE: Chipidea gadget unplug/disconnect event

2014-07-02 Thread Peter Chen
> > Is it possible to get the chipidea to generate an event on udc unplugging? > Yes, it has already implemented at ci_usc_vbus_session. > I see the code path in ci_udc_vbus_session of udc.c to trigger such an > event, but unfortunately it was never possible to run into that code. > > The fu

Re: [PATCH v2 07/12] usb: chipidea: add a generic driver

2014-07-02 Thread punnaiah choudary kalluri
Since its a generic driver, support for configuring the dma_mask using dma_coerce_mask_and_coherent would be good. Regards, Punnaiah On Tue, Jun 24, 2014 at 4:05 PM, Antoine Ténart wrote: > Add a generic ChipIdea driver, with optional PHY and clock, to support > ChipIdea controllers that doesn't

[PATCH net-next] r8152: increase the tx timeout

2014-07-02 Thread Hayes Wang
When the system is too busy to complete the urb, the tx timout function would be called. This causes the other tx urbs would be killed, too. Increase the tx timeout to avoid it. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [PATCHv2 0/6] phy: simplified phy lookup

2014-07-02 Thread Vivek Gautam
Hi, On Wed, Jul 2, 2014 at 5:01 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 05 June 2014 06:51 PM, Vivek Gautam wrote: >> Hi Heikki, >> >> >> On Thu, Jun 5, 2014 at 6:22 PM, Heikki Krogerus >> wrote: >>> Hi, >>> >>> So the idea with these is that they should help to make it possible

Re: [PATCH 0/3] usb: common: otg-fsm: add HNP polling support for otg fsm

2014-07-02 Thread Li Jun
On Wed, Jul 02, 2014 at 11:49:07AM -0500, Felipe Balbi wrote: > On Mon, May 19, 2014 at 01:55:42PM +0800, Li Jun wrote: > > From: Li Jun > > > > Hi Felipe, > > > > This patchset adds otg HNP polling common part for otg fsm. > > awesome :-) How have you tested it ? > Tested by 2 Freescale i.MX

Re: [PATCH v3] usb: hcd: add generic PHY support

2014-07-02 Thread Vivek Gautam
Cc: Alan, Mathias Nyman, Julius Werner, Heikki Krogerus Hi, On Wed, Jun 25, 2014 at 4:02 PM, Vivek Gautam wrote: > Hi Sergei, > > > On Fri, May 30, 2014 at 7:42 PM, Yoshihiro Shimoda > wrote: >> From Sergei Shtylyov >> >> Add the generic PHY support, analogous to the USB PHY support. Intended