Re: [PATCH v8 3/4] USB: io_ti: Add firmware image sanity checks

2015-07-30 Thread Johan Hovold
On Thu, Jul 23, 2015 at 01:39:06PM +0300, Sergei Shtylyov wrote: Hello. On 7/22/2015 9:56 PM, Peter E. Berger wrote: @@ -928,6 +928,41 @@ static int ti_cpu_rev(struct edge_ti_manuf_descriptor *desc) return TI_GET_CPU_REVISION(desc-CpuRev_BoardRev); } +static int

Re: [PATCH v8 00/23] usb gadget update for OTG 2.0

2015-07-30 Thread Felipe Balbi
On Thu, Jul 30, 2015 at 09:46:58AM +0800, Li Jun wrote: On Wed, Jul 29, 2015 at 09:11:41PM -0500, Felipe Balbi wrote: On Thu, Jul 30, 2015 at 07:24:03AM +0800, Li Jun wrote: On Wed, Jul 29, 2015 at 10:04:27AM -0500, Felipe Balbi wrote: On Mon, Jul 27, 2015 at 03:21:59PM +0800, Peter Chen

Re: [PATCH] Bluetooth: btusb: match generic class code in interface descriptor

2015-07-30 Thread Marcel Holtmann
Hi Daniel, btusb currently has a generic match on USB device descriptors: { USB_DEVICE_INFO(0xe0, 0x01, 0x01) }, However, http://www.usb.org/developers/defined_class states: Base Class E0h (Wireless Controller) This base class is defined for devices that are Wireless

[PATCH] drivers/usb/: Simplify return statements

2015-07-30 Thread Karajgaonkar, Saurabh (S.)
From: Saurabh Karajgaonkar skara...@visteon.com This patch is created using simple_return.cocci coccinelle script. It replaces the redundant instances where variables are assigned return value from functions and then used in return statements. Signed-off-by: Saurabh Karajgaonkar

Re: [PATCH v8 2/4] USB: io_ti: Fix firmware version handling

2015-07-30 Thread Johan Hovold
On Wed, Jul 22, 2015 at 01:56:14PM -0500, Peter E. Berger wrote: From: Peter E. Berger pber...@brimson.com The io_ti driver fails to download firmware to Edgeport devices such as the EP/416, even when the on-disk firmware image (/lib/firmware/edgeport/down3.bin) is more current than the

Re: [PATCH v8 4/4] USB: io_ti: Add heartbeat to keep idle EP/416 ports from disconnecting

2015-07-30 Thread Johan Hovold
On Wed, Jul 22, 2015 at 01:56:16PM -0500, Peter E. Berger wrote: +static inline void edge_heartbeat_schedule(struct edgeport_serial *edge_serial) +{ + u16 product_id = le16_to_cpu( + edge_serial-serial-dev-descriptor.idProduct); + + /* Currently only the

Re: [PATCH v4] usb: gadget: f_mass_storage: stop thread in bind failure case

2015-07-30 Thread Michal Nazarewicz
On Wed, Jul 22 2015, Sanjay Singh Rawat wrote: After the worker thread is launched, bind function is doing further configuration. In case of failure stop the thread. Signed-off-by: Sanjay Singh Rawat snjs...@gmail.com Sorry for the delay. Acked-by: Michal Nazarewicz min...@mina86.com ---

Inquiry

2015-07-30 Thread Khalid Grupo
Inquiry Dear we are ATLANTIC TRADING DISTRIBUTING CO.LTD based in Qatar,We are in need of your products, Urgently please send to us your complete catalog / website ?in our email address(khaledgr...@yahoo.com Best regards, Mr,khaled grupo Purchase Manager -- To unsubscribe from this list: send

[GIT PULL] USB-serial fixes for v4.2-rc5

2015-07-30 Thread Johan Hovold
Hi Greg, Here's a fix and some device ids for v4.2-rc5. All have been in linux-next. Thanks, Johan The following changes since commit 52721d9d3334c1cb1f76219a161084094ec634dc: Linux 4.2-rc3 (2015-07-19 14:45:02 -0700) are available in the git repository at:

Re: [PATCH v8 2/4] USB: io_ti: Fix firmware version handling

2015-07-30 Thread Peter Berger
On Thu, 2015-07-30 at 15:44 +0200, Johan Hovold wrote: On Wed, Jul 22, 2015 at 01:56:14PM -0500, Peter E. Berger wrote: From: Peter E. Berger pber...@brimson.com The io_ti driver fails to download firmware to Edgeport devices such as the EP/416, even when the on-disk firmware image

Re: [PATCH v8 2/4] USB: io_ti: Fix firmware version handling

2015-07-30 Thread Johan Hovold
On Thu, Jul 30, 2015 at 10:28:05AM -0500, Peter Berger wrote: On Thu, 2015-07-30 at 15:44 +0200, Johan Hovold wrote: On Wed, Jul 22, 2015 at 01:56:14PM -0500, Peter E. Berger wrote: From: Peter E. Berger pber...@brimson.com @@ -943,6 +944,17 @@ static int download_fw(struct

Re: I have run scripts/checkpatch.pl on my patch.The new patch attachment is at the bottom.//Re: We want to add commit device's PID,the following is the content of the patch.Patch attachment is at the

2015-07-30 Thread Johan Hovold
On Tue, Jul 28, 2015 at 06:55:57PM +0800, hu.bin...@zte.com.cn wrote: Dear Johan: Thank you for your reply me so quickly. As you say, I have done the following test and verify: 1.I have run scripts/checkpatch.pl on my patch,and test result is OK. 2. I have installed this

Inquiry

2015-07-30 Thread Khalid Grupo
Inquiry Dear we are ATLANTIC TRADING DISTRIBUTING CO.LTD based in Qatar,We are in need of your products, Urgently please send to us your complete catalog / website ?in our email address(khaledgr...@yahoo.com Best regards, Mr,khaled grupo Purchase Manager -- To unsubscribe from this list: send

Re: [PATCH net v3 0/2] r8152: device reset

2015-07-30 Thread David Miller
From: Hayes Wang hayesw...@realtek.com Date: Wed, 29 Jul 2015 20:39:07 +0800 v3: For patch #2, remove cancel_delayed_work(). v2: For patch #1, remove usb_autopm_get_interface(), usb_autopm_put_interface(), and the checking of intf-condition. For patch #2, replace the original method

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-30 Thread Giulio Bernardi
On 31/07/2015 00:12, Giulio Bernardi wrote: On 30/07/2015 23:42, Giulio Bernardi wrote: On 27/07/2015 16:28, Alan Stern wrote: On Mon, 27 Jul 2015, Giulio Bernardi wrote: Sorry for the late reply, but it took me a little bit to recompile the kernel (my laptop is slow) and I was not able to

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-30 Thread Giulio Bernardi
On 27/07/2015 16:28, Alan Stern wrote: On Mon, 27 Jul 2015, Giulio Bernardi wrote: Sorry for the late reply, but it took me a little bit to recompile the kernel (my laptop is slow) and I was not able to obtain any meaningful results (please note I know nothing about kernel internals).

[PATCH] usb: chipidea: add ci-is_otg condition for otg judgement

2015-07-30 Thread Li Jun
Since some chipidea based controller is not otg capable, add ci-is_otg condition when setting is_otg flag for gadget. Signed-off-by: Li Jun jun...@freescale.com Reviewed-by: Roger Quadros rog...@ti.com Acked-by: Peter Chen peter.c...@freescale.com --- drivers/usb/chipidea/udc.c | 4 ++-- 1 file

[PATCH net-next] r8152: disable the capability of zero length

2015-07-30 Thread Hayes Wang
The UEFI driver would enable zero length, and the Linux driver doesn't need it. Zero length let the hw complete the transfer with length 0, when there is no received packet. It would add the load of USB host controller and reduce the performance. Signed-off-by: Hayes Wang hayesw...@realtek.com

Re: Bug with USB 3.0 in Modul xhci_hcd

2015-07-30 Thread Greg KH
On Fri, Jul 31, 2015 at 03:49:02AM +0200, schorsch wrote: https://bugzilla.kernel.org/show_bug.cgi?id=89471#c2 Please send the full information here so that we don't have to try to track down some random web link... -- To unsubscribe from this list: send the line unsubscribe linux-usb in the

Re: [PATCH] drivers/usb/: Simplify return statements

2015-07-30 Thread Karajgaonkar, Saurabh (S.)
Sure, I'll do that. Just wanted to know whether I should split the patches and send them in this same mail thread (may be something like [PATCH 01/04 V2]) or should I start new threads and send them separately to the respective maintainers. Thanks and Regards, Saurabh Karajgaonkar On Thu, Jul

[PATCH 1/1] lsusb: Fix issue with lengthy string descriptors

2015-07-30 Thread Muthu M
Fixed the issue in displaying lengthy string descriptor (more than 128 bytes) Signed-off-by: Muthu M muthu@gmail.com --- usbmisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbmisc.c b/usbmisc.c index f3577ea..71a702c 100644 --- a/usbmisc.c +++ b/usbmisc.c @@ -229,7

Re: [PATCH v3] USB: pl2303: Rewrite pl2303_encode_baud_rate_divisor

2015-07-30 Thread Johan Hovold
On Sun, Jul 26, 2015 at 11:14:34AM +0200, Michał Pecio wrote: This commit fixes the following issues: 1. The 9th bit of buf was believed to be the LSB of divisor's exponent, but the hardware interprets it as MSB (9th bit) of the mantissa. The exponent is actually one bit shorter and

Re: [GIT PULL] USB-serial fixes for v4.2-rc5

2015-07-30 Thread Greg Kroah-Hartman
On Thu, Jul 30, 2015 at 04:46:12PM +0200, Johan Hovold wrote: Hi Greg, Here's a fix and some device ids for v4.2-rc5. All have been in linux-next. Thanks, Johan The following changes since commit 52721d9d3334c1cb1f76219a161084094ec634dc: Linux 4.2-rc3 (2015-07-19 14:45:02 -0700)

Re: [PATCH] usb: gadget: mass_storage: Use static array for luns

2015-07-30 Thread Felipe Balbi
Hi, On Thu, Jul 23, 2015 at 07:57:49PM +0200, Krzysztof Opasiak wrote: This patch replace dynamicly allocated luns array with static one. This simplifies the code of mass storage function and modules. Signed-off-by: Krzysztof Opasiak k.opas...@samsung.com Acked-by: Michal Nazarewicz

Re: [PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Javier Martinez Canillas
Hello Dmitry, Thanks a lot for your feedback. On 07/30/2015 06:37 PM, Dmitry Torokhov wrote: On Thu, Jul 30, 2015 at 09:35:17AM -0700, Dmitry Torokhov wrote: Hi Javier, On Thu, Jul 30, 2015 at 06:18:25PM +0200, Javier Martinez Canillas wrote: Hello, Short version: This series add the

[PATCH v8 4/7] usb: interface authorization: Introduces the USB interface authorization

2015-07-30 Thread Stefan Koch
The kernel supports the device authorization because of wireless USB. These is usable for wired USB devices, too. These new interface authorization allows to enable or disable individual interfaces instead a whole device. If a deauthorized interface will be authorized so the driver probing must

[PATCH v8 5/7] usb: interface authorization: SysFS part of USB interface authorization

2015-07-30 Thread Stefan Koch
This introduces an attribute for each interface to authorize (1) or deauthorize (0) it: /sys/bus/usb/devices/INTERFACE/authorized Signed-off-by: Stefan Koch sk...@suse.de --- drivers/usb/core/sysfs.c | 36 1 file changed, 36 insertions(+) diff --git

[PATCH v8 2/7] usb: interface authorization: Introduces the default interface authorization

2015-07-30 Thread Stefan Koch
Interfaces are allowed per default. This can disabled or enabled (again) by writing 0 or 1 to /sys/bus/usb/devices/usbX/interface_authorized_default Signed-off-by: Stefan Koch sk...@suse.de --- drivers/usb/core/hcd.c | 47 ++

[PATCH v8 3/7] usb: interface authorization: Control interface probing and claiming

2015-07-30 Thread Stefan Koch
Driver probings and interface claims get rejected if an interface is not authorized. Signed-off-by: Stefan Koch sk...@suse.de --- drivers/usb/core/driver.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 818369a..d542d43

Re: [PATCH v3] usb: chipidea: Use extcon framework for VBUS and ID detect

2015-07-30 Thread Ivan T. Ivanov
On Wed, 2015-07-29 at 12:10 -0700, Tim Bird wrote: On Tue, Jun 2, 2015 at 6:14 AM, Ivan T. Ivanov iva...@linaro.org wrote: On recent Qualcomm platforms VBUS and ID lines are not routed to USB PHY LINK controller. Use extcon framework to receive connect and disconnect ID and VBUS

Re: [PATCH v4 04/46] staging: emxx_udc: add ep capabilities support

2015-07-30 Thread Robert Baldyga
On 07/29/2015 05:20 PM, Felipe Balbi wrote: On Mon, Jul 27, 2015 at 11:16:14AM +0200, Robert Baldyga wrote: Convert endpoint configuration to new capabilities model. Fixed typo in epc-nulk to epc-bulk. Signed-off-by: Robert Baldyga r.bald...@samsung.com ---

[PATCH v8 6/7] usb: interface authorization: Documentation part

2015-07-30 Thread Stefan Koch
This part adds the documentation for the interface authorization. Signed-off-by: Stefan Koch sk...@suse.de --- Documentation/ABI/testing/sysfs-bus-usb | 22 + Documentation/usb/authorization.txt | 34 + 2 files changed, 56 insertions(+)

[PATCH v8 1/7] usb: interface authorization: Declare authorized attribute

2015-07-30 Thread Stefan Koch
The attribute authorized shows the authorization state for an interface. Signed-off-by: Stefan Koch sk...@suse.de --- include/linux/usb.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/usb.h b/include/linux/usb.h index 447fe29..3deccab 100644 --- a/include/linux/usb.h +++

[PATCH v8 7/7] usb: interface authorization: Use a flag for the default device authorization

2015-07-30 Thread Stefan Koch
With this patch a flag instead of a variable is used for the default device authorization. Signed-off-by: Stefan Koch sk...@suse.de --- drivers/usb/core/hcd.c | 31 +-- drivers/usb/core/usb.c | 2 +- include/linux/usb/hcd.h | 6 -- 3 files changed, 26

[PATCH v8 0/7] usb: interface authorization

2015-07-30 Thread Stefan Koch
This patch introduces an interface authorization for USB devices. The kernel supports a device authorization because of wireless USB. But the new interface authorization allows to authorize or deauthorize individual interfaces instead authorization or deauthorize a whole device. Therefore the

[PATCH v6 1/1] usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth

2015-07-30 Thread Peter Chen
According to USB Audio Device 2.0 Spec, Ch4.10.1.1: wMaxPacketSize is defined as follows: Maximum packet size this endpoint is capable of sending or receiving when this configuration is selected. This is determined by the audio bandwidth constraints of the endpoint. In current code, the

Re: [PATCH] Input: xpad - Fix double URB submission races

2015-07-30 Thread Dmitry Torokhov
Hi Laura, On Wed, Jul 29, 2015 at 02:27:23PM -0700, Laura Abbott wrote: @@ -791,6 +796,9 @@ static int xpad_play_effect(struct input_dev *dev, void *data, struct ff_effect { struct usb_xpad *xpad = input_get_drvdata(dev); + if (test_and_set_bit(OUT_IRQ_SUBMITTED,

[PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Javier Martinez Canillas
Hello, Short version: This series add the missing MODULE_DEVICE_TABLE() for OF and I2C tables to export that information so modules have the correct aliases built-in and autoloading works correctly. Longer version: Currently it's mandatory for I2C drivers to have an I2C device ID table

[PATCH 27/27] i2c: (RFC, don't apply) report OF style modalias when probing using DT

2015-07-30 Thread Javier Martinez Canillas
An I2C driver that supports both OF and legacy platforms, will have both a OF and I2C ID table. This means that when built as a module, the aliases will be filled from both tables but currently always an alias of the form i2c:deviceId is reported, e.g: $ cat

Re: [PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Dmitry Torokhov
On Thu, Jul 30, 2015 at 09:35:17AM -0700, Dmitry Torokhov wrote: Hi Javier, On Thu, Jul 30, 2015 at 06:18:25PM +0200, Javier Martinez Canillas wrote: Hello, Short version: This series add the missing MODULE_DEVICE_TABLE() for OF and I2C tables to export that information so

Re: [PATCH 2/4] cp210x: Unify code for set/get config control messages

2015-07-30 Thread Johan Hovold
On Fri, Jul 24, 2015 at 08:48:09AM +0200, Petr Tesarik wrote: From: Petr Tesarik ptesa...@suse.cz There is a lot of overlap between the two functions (e.g. calculation of the buffer size), so this removes a bit of code duplication, but most importantly, a more generic function can be easily

[PATCH 12/27] usb: phy: isp1301: Export I2C module alias information

2015-07-30 Thread Javier Martinez Canillas
The I2C core always reports the MODALIAS uevent as i2c:client name regardless if the driver was matched using the I2C id_table or the of_match_table. So the driver needs to export the I2C table and this be built into the module or udev won't have the necessary information to auto load the correct

Re: [PATCH] drivers/usb/: Simplify return statements

2015-07-30 Thread Felipe Balbi
On Thu, Jul 30, 2015 at 01:13:42PM +, Karajgaonkar, Saurabh (S.) wrote: From: Saurabh Karajgaonkar skara...@visteon.com This patch is created using simple_return.cocci coccinelle script. It replaces the redundant instances where variables are assigned return value from functions and then

Re: [PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Dmitry Torokhov
Hi Javier, On Thu, Jul 30, 2015 at 06:18:25PM +0200, Javier Martinez Canillas wrote: Hello, Short version: This series add the missing MODULE_DEVICE_TABLE() for OF and I2C tables to export that information so modules have the correct aliases built-in and autoloading works correctly.

Re: Multiple drives on JMS56x-based sata-usb docking station.

2015-07-30 Thread Giulio Bernardi
On 30/07/2015 23:42, Giulio Bernardi wrote: On 27/07/2015 16:28, Alan Stern wrote: On Mon, 27 Jul 2015, Giulio Bernardi wrote: Sorry for the late reply, but it took me a little bit to recompile the kernel (my laptop is slow) and I was not able to obtain any meaningful results (please note I

Bug with USB 3.0 in Modul xhci_hcd

2015-07-30 Thread schorsch
https://bugzilla.kernel.org/show_bug.cgi?id=89471#c2 -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html