[PATCH] usb: wusbcore: fix compile warnings

2014-02-28 Thread Thomas Pugliese
Fix "pointer targets differ in signedness" and "variable set but not used" warnings Signed-off-by: Thomas Pugliese --- drivers/usb/wusbcore/devconnect.c | 4 +--- drivers/usb/wusbcore/wa-xfer.c| 6 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/usb/wusbcore/dev

contact me

2014-02-28 Thread Harley Wang
contact me for details of $21.4m transfer. The information contained in this electronic communication is intended solely for the individual(s) or entity to which it is addressed. It may contain proprietary, confidential and/or legally privileged information. Any review, retransmission, dissemi

Re: [PATCH v6 part1 6/8] usb: find internal hub tier mismatch via acpi

2014-02-28 Thread Dan Williams
On Fri, 2014-02-28 at 15:18 -0800, Dan Williams wrote: > ACPI identifies peer ports by setting their 'group_token' and > 'group_position' _PLD data to the same value. If a platform has tier > mismatch [1] , ACPI can override the default (USB3 defined) peer port > association for internal hubs. Ex

[PATCH v2] phy-rcar-gen2-usb: add device tree support

2014-02-28 Thread Sergei Shtylyov
Add support of the device tree probing for the Renesas R-Car generation 2 SoCs documenting the device tree binding as necessary. Signed-off-by: Sergei Shtylyov --- This patch is against the 'next' branch of Felipe Balbi's 'usb.git' repo. Changes in version 2: - restored devm_clk_get() call and

CONTACT KENYA COMMERCIAL BANK LTD IMMEDIATELY FOR YOUR PAYMENT (3MILLION UNITED STATE DOLLARS)

2014-02-28 Thread Jantima Khuntaraksa
Attention: Please, Kindly contact KENYA COMMERCIAL BANK immediately for your compensation payment of (3MILLION UNITED STATE DOLLARS) via email: Email:(servic...@kenya.ncommercialbnk.com) quote your payment Ref No:KCB/00Y/2014 For purposes of immediate payment. -- To unsubscribe from this li

Re: [PATCH v6 part1 6/8] usb: find internal hub tier mismatch via acpi

2014-02-28 Thread Dan Williams
On Fri, Feb 28, 2014 at 3:18 PM, Dan Williams wrote: > ACPI identifies peer ports by setting their 'group_token' and > 'group_position' _PLD data to the same value. If a platform has tier > mismatch [1] , ACPI can override the default (USB3 defined) peer port > association for internal hubs. Ext

[PATCH v6 part1 2/8] usb: rename usb_port device objects

2014-02-28 Thread Dan Williams
The current port name "portX" is ambiguous. Before adding more port messages rename ports to "-portX" This is an ABI change, but the suspicion is that it will go unnoticed as the port power control implementation has been broken since its introduction. If however, someone was relying on the old

[PATCH v6 part1 8/8] usb: block suspension of superspeed port while hispeed peer is active

2014-02-28 Thread Dan Williams
ClearPortFeature(PORT_POWER) on a usb3 port places the port in either a DSPORT.Powered-off-detect / DSPORT.Powered-off-reset loop, or the DSPORT.Powered-off state. There is no way to ensure that RX terminations will persist in this state, so it is possible a device will degrade to its usb2 connect

[PATCH v6 part1 3/8] usb: cleanup setting udev->removable from port_dev->connect_type

2014-02-28 Thread Dan Williams
Once usb-acpi has set the port's connect type the usb_device's ->removable attribute can be set in the standard location set_usb_port_removable(). This also changes behavior in the case where the firmware says that the port connect type is unknown. In that case just use the default setting determ

[PATCH v6 part1 4/8] usb: assign default peer ports for root hubs

2014-02-28 Thread Dan Williams
Assume that the peer of a superspeed port is the port with the same id on the shared_hcd root hub. This identification scheme is required of external hubs by the USB3 spec [1]. However, for root hubs, tier mismatch may be in effect [2]. Tier mismatch can only be enumerated via platform firmware.

[PATCH v6 part1 7/8] usb: sysfs link peer ports

2014-02-28 Thread Dan Williams
The usb topology after this change will have symlinks between usb3 ports and their usb2 peers, for example: usb2/2-1/2-1:1.0/2-1-port1/peer => ../../../../usb3/3-1/3-1:1.0/3-1-port1 usb2/2-1/2-1:1.0/2-1-port2/peer => ../../../../usb3/3-1/3-1:1.0/3-1-port2 usb2/2-1/2-1:1.0/2-1-port3/peer => ../../.

[PATCH v6 part1 6/8] usb: find internal hub tier mismatch via acpi

2014-02-28 Thread Dan Williams
ACPI identifies peer ports by setting their 'group_token' and 'group_position' _PLD data to the same value. If a platform has tier mismatch [1] , ACPI can override the default (USB3 defined) peer port association for internal hubs. External hubs follow the default peer association scheme. Locati

[PATCH v6 part1 5/8] usb: assign usb3 external hub port peers

2014-02-28 Thread Dan Williams
Given that root hub port peers are already established, external hub peer ports can be determined by traversing the device topology: 1/ ascend to the parent hub and find the upstream port_dev 2/ walk ->peer to find the peer port 3/ descend to the peer hub via ->child 4/ find the port with the m

[PATCH v6 part1 1/8] usb: disable port power control if not supported in wHubCharacteristics

2014-02-28 Thread Dan Williams
A hub indicates whether it supports per-port power control via the wHubCharacteristics field in its descriptor. If it is not supported a hub will still emulate ClearPortPower(PORT_POWER) requests by stopping the link state machine. However, since this does not save power do not bother suspending.

[PATCH v6 part1 0/8] port power control: cleanups and port peering

2014-02-28 Thread Dan Williams
Per Alan's request this is the first half of the series that addresses the following disconnect scenarios when attempting to use port power-off. These 8 patches address scenario 1. Scenarios 2 and 3 are addressed in part2 of this series (to be re-posted once part1 is accepted). 1/ Superspeed dev

Re: [PATCH v9 0/9] USB Host support for OMAP5 uEVM

2014-02-28 Thread Tony Lindgren
* Roger Quadros [140227 06:21]: > Hi, > > This patchset brings up USB Host ports and Ethernet port on > the OMAP5 uEVM board. > > It also does some cleanup with respect to DT clock binding > for the mfd/omap-usb-host driver. > > Please queue these for -next. > > Lee, > > I've folded some plat

Re: [PATCH 1/3] staging/usbip: add uapi header to export usbip kernel interfaces

2014-02-28 Thread Shuah Khan
On 02/28/2014 03:15 PM, Greg KH wrote: On Thu, Feb 27, 2014 at 05:27:25PM -0700, Shuah Khan wrote: usbip userspace has duplicated enum definition to report usbip device status maintained by the kernel. Adding an usbip uapi header file will define the kernel - userspace interface for this device

Re: request for pointer to documentation on WUSB

2014-02-28 Thread Thomas Pugliese
On Fri, 28 Feb 2014, Oliver Neukum wrote: > On Thu, 2014-02-27 at 11:51 -0600, Thomas Pugliese wrote: > > > > On Thu, 27 Feb 2014, Oliver Neukum wrote: > > > > > On Thu, 2014-02-27 at 10:46 -0600, Thomas Pugliese wrote: > > > > > > > I could be wrong about the chipset. If I recall correctly,

Re: [PATCH 1/3] staging/usbip: add uapi header to export usbip kernel interfaces

2014-02-28 Thread Greg KH
On Thu, Feb 27, 2014 at 05:27:25PM -0700, Shuah Khan wrote: > usbip userspace has duplicated enum definition to report usbip device > status maintained by the kernel. Adding an usbip uapi header file will > define the kernel - userspace interface for this device status. > > Signed-off-by: Shuah Kh

Re: [RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization

2014-02-28 Thread Dan Williams
On Fri, Feb 28, 2014 at 1:57 PM, Greg KH wrote: > On Fri, Feb 28, 2014 at 12:41:31PM -0800, Dan Williams wrote: >> On Fri, Feb 28, 2014 at 12:32 PM, Sarah Sharp >> wrote: >> > On Mon, Feb 24, 2014 at 12:44:46PM -0500, Alan Stern wrote: >> >> On Mon, 24 Feb 2014, Mathias Nyman wrote: >> >> >> >> >

Re: [RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization

2014-02-28 Thread Greg KH
On Fri, Feb 28, 2014 at 12:41:31PM -0800, Dan Williams wrote: > On Fri, Feb 28, 2014 at 12:32 PM, Sarah Sharp > wrote: > > On Mon, Feb 24, 2014 at 12:44:46PM -0500, Alan Stern wrote: > >> On Mon, 24 Feb 2014, Mathias Nyman wrote: > >> > >> > xHCI driver has its own pci probe function that will cal

[PATCH] usb: wusbcore: adjust iterator correctly when searching for ep comp descriptor

2014-02-28 Thread Thomas Pugliese
If the endpoint companion descriptor is not the first descriptor in the extra descriptor buffer of a usb_host_endpoint, the loop in rpipe_epc_find will get its buffer pointer and remaining size values out of sync. The buffer ptr 'itr' is advanced by the descriptor's bLength field but the remaining

[PATCH] usb: wusbcore: read actual_length bytes isoc in segments

2014-02-28 Thread Thomas Pugliese
Use the iso_frame_desc.actual_length field instead of length when reading isoc in data segments from the HWA. This fixes a case where the isoc in read URB would never complete because it expected the HWA to send more data than it actually did. When this happened the URB would be stuck in the driv

Re: [PATCH] phy-rcar-gen2-usb: add device tree support

2014-02-28 Thread Sergei Shtylyov
Hello. On 02/27/2014 06:56 PM, Mark Rutland wrote: Add support of the device tree probing for the Renesas R-Car generation 2 SoCs documenting the device tree binding as necessary. Signed-off-by: Sergei Shtylyov --- This patch is against the 'next' branch of Felipe Balbi's 'usb.git' repo.

[PATCH] usb: wusbcore: add info to HWA debug prints

2014-02-28 Thread Thomas Pugliese
This patch adds a debug print in the transfer dequeue case where a transfer result arrives for a transfer that has already been cleaned up. It also adds the transfer ID to some debug prints and prints error codes as signed integers in a couple of others. Signed-off-by: Thomas Pugliese --- driver

Re: [PATCH v2] storage: accept some UAS devices if streams are unavailable

2014-02-28 Thread Sarah Sharp
On Mon, Feb 24, 2014 at 04:00:37PM +0100, Oliver Neukum wrote: > On Fri, 2014-02-21 at 15:00 -0800, Sarah Sharp wrote: > > On Tue, Feb 11, 2014 at 08:36:04PM +0100, oli...@neukum.org wrote: > > > From: Oliver Neukum > > > > > > On some older XHCIs streams are not supported and the UAS driver > >

Re: 3.13-rc1 regression: Scatter-gather list issues at SuperSpeed only

2014-02-28 Thread Alan Stern
On Fri, 28 Feb 2014, Sarah Sharp wrote: > When testing 3.14-rc1 with a USB 3.0 Lexar flash drive, the drive fails > to be mounted. I added a bit of debugging to the USB core: > > diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c > index 9ff665f1322f..eff59ac37865 100644 > --- a/driver

Re: [PATCH] usb: xhci: Prefer endpoint context dequeue pointer over stopped_trb

2014-02-28 Thread Sarah Sharp
On Thu, Feb 20, 2014 at 09:12:15PM -0800, Julius Werner wrote: > We have observed a rare cycle state desync bug after Set TR Dequeue > Pointer commands on Intel LynxPoint xHCs (resulting in an endpoint that > doesn't fetch new TRBs and thus an unresponsive USB device). It always > triggers when a p

[PATCH 0/4] usb: wusbcore: HWA unplug and URB dequeue fixes

2014-02-28 Thread Thomas Pugliese
This set of patches fixes some issues with the URB dequeue process in the HWA. In particular, problems that occur when unplugging the HWA dongle while transferring data to a device. The last patch in the set is just code cleanup to hopefully make this case a little less error prone. Thomas P

[PATCH 3/4] usb: wusbcore: prevent urb dequeue and giveback race

2014-02-28 Thread Thomas Pugliese
This patch takes a reference to the wa_xfer object in wa_urb_dequeue to prevent the urb giveback code from completing the xfer and freeing it while wa_urb_dequeue is executing. It also checks for done at the start to avoid a double completion scenario. Adding the check for done in urb_dequeue

[PATCH 2/4] usb: wusbcore: fix stranded URB after HWA unplug

2014-02-28 Thread Thomas Pugliese
This patch adds error checking to the abort request callback to forcibly clean up the dequeued transfers if the abort request failed. The wa_complete_remaining_xfer_segs was modified so that it could be used in this situation as well. This fixes a stranded URB/PNP hang when the HWA is unplugg

[PATCH 1/4] usb: wusbcore: fix kernel panic on HWA unplug

2014-02-28 Thread Thomas Pugliese
This patch adds ref counting to sections of code that operate on struct wa_xfer objects that were missing it. Specifically, error handling cases need to be protected from freeing the xfer while it is still in use elsewhere. This fixes a kernel panic that can occur when pulling the HWA dongle whil

[PATCH 4/4] usb: wusbcore: add a convenience function for completing a transfer segment

2014-02-28 Thread Thomas Pugliese
This patch adds a convenience function for the commonly performed task of marking a transfer segment as done. It combines the 3 steps of setting the segment status, incrementing the segs_done field of the transfer and checking if the completed segment results in the transfer also being done. Sign

Re: [RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization

2014-02-28 Thread Dan Williams
On Fri, Feb 28, 2014 at 12:32 PM, Sarah Sharp wrote: > On Mon, Feb 24, 2014 at 12:44:46PM -0500, Alan Stern wrote: >> On Mon, 24 Feb 2014, Mathias Nyman wrote: >> >> > xHCI driver has its own pci probe function that will call usb_hcd_pci_probe >> > to register its usb-2 bus, and then continue to m

Re: [RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization

2014-02-28 Thread Sarah Sharp
On Mon, Feb 24, 2014 at 12:44:46PM -0500, Alan Stern wrote: > On Mon, 24 Feb 2014, Mathias Nyman wrote: > > > xHCI driver has its own pci probe function that will call usb_hcd_pci_probe > > to register its usb-2 bus, and then continue to manually register the > > usb-3 bus. usb_hcd_pci_probe does

Re: [3.14-rc4 xHCI] Regression haswell B85 with xHCI on

2014-02-28 Thread Sarah Sharp
On Thu, Feb 27, 2014 at 05:17:19PM +0100, Otto Meier wrote: > I migrated my system from H77 Ivy-bridge to a haswell Platform > B85 i3-4330. > > The system has three dvb-c usb receivers connected. On the Ivy > Platform everything runs fine with xHCI. On the haswell Platform > xHCI explodes with fo

3.13-rc1 regression: Scatter-gather list issues at SuperSpeed only

2014-02-28 Thread Sarah Sharp
When testing 3.14-rc1 with a USB 3.0 Lexar flash drive, the drive fails to be mounted. I added a bit of debugging to the USB core: diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index 9ff665f1322f..eff59ac37865 100644 --- a/drivers/usb/core/urb.c +++ b/drivers/usb/core/urb.c @@ -430

Re: [PATCH] usb: phy: am335x: Use SIMPLE_DEV_PM_OPS macro

2014-02-28 Thread Felipe Balbi
Hi, On Fri, Feb 28, 2014 at 10:35:16AM -0800, Greg KH wrote: > > I would be more than glad if someone got PM fellows to accept removing > > the ifdeffery around both macros and just *always* leave PM hooks > > available and ready to go. > > Why are the macros even needed? they are supposed to "h

Re: [PATCH] usb: phy: am335x: Use SIMPLE_DEV_PM_OPS macro

2014-02-28 Thread Greg KH
On Fri, Feb 28, 2014 at 11:57:45AM -0600, Felipe Balbi wrote: > On Fri, Feb 28, 2014 at 09:37:02AM -0800, Greg KH wrote: > > On Fri, Feb 28, 2014 at 02:25:31PM +0900, Jingoo Han wrote: > > > On Thursday, February 27, 2014 11:41 PM, Roger Quadros wrote: > > > > On 02/27/2014 01:47 PM, Jingoo Han wro

Re: [PATCH] usb: phy: am335x: Use SIMPLE_DEV_PM_OPS macro

2014-02-28 Thread Felipe Balbi
On Fri, Feb 28, 2014 at 09:37:02AM -0800, Greg KH wrote: > On Fri, Feb 28, 2014 at 02:25:31PM +0900, Jingoo Han wrote: > > On Thursday, February 27, 2014 11:41 PM, Roger Quadros wrote: > > > On 02/27/2014 01:47 PM, Jingoo Han wrote: > > > > Use SIMPLE_DEV_PM_OPS macro in order to make the code simp

[PATCH] USB AX88179/178A: Support D-Link DUB-1312

2014-02-28 Thread Gerry Demaret
Add the USB device ID for the D-Link DUB-1312 USB 3.0 to Gigabit Ethernet Adapter to the AX88179/178A driver. Signed-off-by: Gerry Demaret --- drivers/net/usb/ax88179_178a.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax

Re: [PATCH] usb: phy: am335x: Use SIMPLE_DEV_PM_OPS macro

2014-02-28 Thread Greg KH
On Fri, Feb 28, 2014 at 02:25:31PM +0900, Jingoo Han wrote: > On Thursday, February 27, 2014 11:41 PM, Roger Quadros wrote: > > On 02/27/2014 01:47 PM, Jingoo Han wrote: > > > Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler. > > > > > > Signed-off-by: Jingoo Han > > > --- > > > driv

Re: [PATCH 3/3] usb: phy: msm: use ASSIGN_*_PM_OPS variants

2014-02-28 Thread Greg Kroah-Hartman
On Fri, Feb 28, 2014 at 09:48:08AM +0100, Ulf Hansson wrote: > On 28 February 2014 00:44, Greg Kroah-Hartman > wrote: > > On Thu, Feb 27, 2014 at 03:41:31PM -0800, David Cohen wrote: > >> On Thu, Feb 27, 2014 at 11:03:24AM -0800, Greg Kroah-Hartman wrote: > >> > On Tue, Feb 25, 2014 at 12:33:36PM

Re: [PATCH] usb: gadget: atmel_usba: Fix crashed during stopping when DEBUG is enabled

2014-02-28 Thread Gregory CLEMENT
On 28/02/2014 16:50, Alexandre Belloni wrote: > Hi Gregory, > > On 28/02/2014 at 15:34:01 +0100, Gregory CLEMENT wrote : >> The debug trace in the atmel_usba_stop function made the assumption >> that the driver pointer passed in parameter was not NULL. Since the >> commit "usb: gadget: udc-core: f

Re: [PATCH] usb: phy: move phy driver up for early initialization

2014-02-28 Thread Felipe Balbi
On Fri, Feb 28, 2014 at 02:50:07PM +0900, Chanho Park wrote: > This patch moves initialization order of the phy driver ahead of > the dwc3 driver. The dwc3 driver needs phy driver when probing. > Of cource, the driver can be initialized later after the phy > driver is initialized. For efficiency, h

Re: [PATCH] usb: gadget: atmel_usba: Fix crashed during stopping when DEBUG is enabled

2014-02-28 Thread Alexandre Belloni
Hi Gregory, On 28/02/2014 at 15:34:01 +0100, Gregory CLEMENT wrote : > The debug trace in the atmel_usba_stop function made the assumption > that the driver pointer passed in parameter was not NULL. Since the > commit "usb: gadget: udc-core: fix a regression during gadget driver > unbinding", it w

Re: [PATCH v5 04/16] usb: find internal hub tier mismatch via acpi

2014-02-28 Thread Alan Stern
On Thu, 27 Feb 2014, Dan Williams wrote: > > BTW, after some more thought, I decided the right way to avoid races in > > the peer assignments is to do some of the work under hub.c's > > device_state_lock. Add a "usb_" prefix to the name and share it with > > port.c. We already are guaranteed tha

Re: [PATCH] usb: gadget: atmel_usba: fix crash when no endpoint are specified

2014-02-28 Thread Nicolas Ferre
On 27/02/2014 16:42, Alexandre Belloni : > If no endpoints are present in the device tree, the kernel will cras hwith the s/cras hwith/crash with/ > following error: > > Unable to handle kernel paging request at virtual address 00101008 > [...] > [] (composite_dev_prepare) from [] > (composite_

[PATCH] usb: gadget: atmel_usba: Fix crashed during stopping when DEBUG is enabled

2014-02-28 Thread Gregory CLEMENT
The debug trace in the atmel_usba_stop function made the assumption that the driver pointer passed in parameter was not NULL. Since the commit "usb: gadget: udc-core: fix a regression during gadget driver unbinding", it was no more always true. This lead to a kernel crash. This commit now use the

Re: [PATCH v2] u_ether: move hardware transmit to RX workqueue

2014-02-28 Thread clanlab.proj
On Thu, Feb 27, 2014 at 6:08 PM, clanlab.proj wrote: > On Thu, Feb 27, 2014 at 5:25 PM, clanlab.proj wrote: > >> Hi all, >> After I've replaced the WEIGHT/budget from 16 -> 32, >> I've got better performance from previous NAPI version, but still >> cannot beat the work queue version. Dear all, U

Re: [PATCH v6 0/2] usb: gadget: f_fs: Add support for SuperSpeed Mode

2014-02-28 Thread Michal Nazarewicz
On Fri, Feb 28 2014, Manu Gautam wrote: > Changes since v5: > * There is no change in 1st patch. > * 2nd patch from Michal updates ABI and adds new field - flags which lists > the descriptors that are present. Driver selects between the schemes based > on the magic number passed by client. > With

[PATCH] drivers: s3c-hsotg: add proper suspend/resume support

2014-02-28 Thread Robert Baldyga
From: Marek Szyprowski This patch adds suspend/resume support to s3c-hsotg driver. It makes UDC driver more power efficient. Signed-off-by: Marek Szyprowski Tested-by: Robert Baldyga --- drivers/usb/gadget/s3c-hsotg.c | 53 +--- 1 file changed, 49 inserti

[PATCH v6 0/2] usb: gadget: f_fs: Add support for SuperSpeed Mode

2014-02-28 Thread Manu Gautam
Changes since v5: * There is no change in 1st patch. * 2nd patch from Michal updates ABI and adds new field - flags which lists the descriptors that are present. Driver selects between the schemes based on the magic number passed by client. With the new scheme, usb_functionfs_descs header is remove

[PATCH v6 2/2] usb: gadget: f_fs: Add flags to descriptors block

2014-02-28 Thread Manu Gautam
From: Michal Nazarewicz This reworks the way SuperSpeed descriptors are added and instead of having a magic after full and high speed descriptors, it reworks the whole descriptors block to include a flags field which lists which descriptors are present and makes future extensions possible. Signe

[PATCH v6 1/2] usb: gadget: f_fs: Add support for SuperSpeed Mode

2014-02-28 Thread Manu Gautam
Allow userspace to pass SuperSpeed descriptors and handle them in the driver accordingly. This change doesn't modify existing desc_header and thereby keeps the ABI changes backward compatible i.e. existing userspace drivers compiled with old header (functionfs.h) would continue to work with the upd

Re: [PATCH] ARM: i.MX6: clk: Remove usbphy clock hacks

2014-02-28 Thread Sascha Hauer
On Fri, Feb 28, 2014 at 08:40:51AM +0800, Peter Chen wrote: > On Thu, Feb 27, 2014 at 03:47:45PM +0100, Sascha Hauer wrote: > > > portsc = PORTSC_PTS(PTS_UTMI) | PORTSC_PTW; > > > lpm = DEVLC_PTS(PTS_UTMI) | DEVLC_PTW; > > > break; > > > case USBPHY_INTERFACE_MODE_UL

Re: [PATCHv2] usb: gadget: f_fs: Add flags to descriptors block

2014-02-28 Thread Manu Gautam
On 2/25/2014 10:32 PM, Michal Nazarewicz wrote: > This reworks the way SuperSpeed descriptors are added and instead of > having a magick after full and high speed descriptors, it reworks the > whole descriptors block to include a flags field which lists which > descriptors are present and makes fut

[RFC 6/8] usb/gadget: f_uvc: remove compatibility layer

2014-02-28 Thread Andrzej Pietrasiewicz
There are no users of the old interface left. Remove it. Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/f_uvc.c | 167 - drivers/usb/gadget/f_uvc.h | 11 --- 2 files changed, 178 deletions(-) diff --git a/drivers/usb/gadget/f_uvc.c b/dri

[RFC 7/8] usb/gadget: f_uvc: use usb_gstrings_attach

2014-02-28 Thread Andrzej Pietrasiewicz
Attach strings to gadget with usb_strings_attach. Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/f_uvc.c | 29 - 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/drivers/usb/gadget/f_uvc.c b/drivers/usb/gadget/f_uvc.c index 51767c9..bbadc0a

[RFC 5/8] usb/gadget: webcam: convert webcam to new interface of f_uvc

2014-02-28 Thread Andrzej Pietrasiewicz
Use the new function interface of f_uvc. Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/Kconfig | 1 + drivers/usb/gadget/Makefile | 4 ++-- drivers/usb/gadget/webcam.c | 53 - 3 files changed, 41 insertions(+), 17 deletions(-) diff --

[RFC 3/8] usb/gadget: uvc: separately compile some components of f_uvc

2014-02-28 Thread Andrzej Pietrasiewicz
Compile uvc_queue, uvc_v4l2, uvc_video separately so that later they can be all combined in a separately compiled f_uvc. Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/Makefile| 2 +- drivers/usb/gadget/f_uvc.c | 2 ++ drivers/usb/gadget/f_uvc.h | 8 drivers/

[RFC 2/8] usb/gadget: uvc: move module parameters from f_uvc

2014-02-28 Thread Andrzej Pietrasiewicz
When configfs support is integrated the future uvc function module must not take any parameters. Move parameters to webcam. Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/f_uvc.c | 30 -- drivers/usb/gadget/f_uvc.h | 6 +- drivers/usb/gadget/webcam

[RFC 4/8] usb/gadget: f_uvc: convert f_uvc to new function interface

2014-02-28 Thread Andrzej Pietrasiewicz
Use the new function registration interface. It is required in order to integrate configfs support. Signed-off-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/Kconfig | 3 + drivers/usb/gadget/Makefile | 2 + drivers/usb/gadget/f_uvc.c | 252 ++-- d

[RFC 0/8] Equivalent of g_webcam with configfs

2014-02-28 Thread Andrzej Pietrasiewicz
This series aims at integrating configfs into uvc, the way it has been done for acm, ncm, ecm, eem, ecm subset, rndis, obex, phonet, mass_storage, FunctionFS, loopback and sourcesink. It contains everything that is required to provide the equivalent of g_webcam.ko with configfs. Some time ago I co

[RFC 1/8] usb: gadget: f_uvc: fix potential memory leak

2014-02-28 Thread Andrzej Pietrasiewicz
If uvc->control_buf is successfuly allocated but uvc->control_req is not, uvc->control_buf is not freed in the error recovery path. With this patch applied uvc->control_buf is freed unconditionally; if it happens to be NULL kfree on it is safe anyway. Signed-off-by: Andrzej Pietrasiewicz --- dri

Re: [PATCH 3/3] usb: phy: msm: use ASSIGN_*_PM_OPS variants

2014-02-28 Thread Ulf Hansson
On 28 February 2014 00:44, Greg Kroah-Hartman wrote: > On Thu, Feb 27, 2014 at 03:41:31PM -0800, David Cohen wrote: >> On Thu, Feb 27, 2014 at 11:03:24AM -0800, Greg Kroah-Hartman wrote: >> > On Tue, Feb 25, 2014 at 12:33:36PM -0600, Felipe Balbi wrote: >> > > Hi, >> > > >> > > On Mon, Feb 24, 201

Re: request for pointer to documentation on WUSB

2014-02-28 Thread Oliver Neukum
On Thu, 2014-02-27 at 11:51 -0600, Thomas Pugliese wrote: > > On Thu, 27 Feb 2014, Oliver Neukum wrote: > > > On Thu, 2014-02-27 at 10:46 -0600, Thomas Pugliese wrote: > > > > > I could be wrong about the chipset. If I recall correctly, IOGear has > > > used multiple chipset vendors across dif

[PATCH] usb: gadget: s3c-hsotg: add support feature flags

2014-02-28 Thread Robert Baldyga
This patch adds feature flags support to s3c-hsotg driver, according to changes in Gadget Framework API. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/s3c-hsotg.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c in