[PATCH 1/1] staging: usbip: put usb_device and kill event handler thread in error cleanups.

2012-11-06 Thread Harvey Yang
From: harvey.yang harvey.huawei.y...@gmail.com If probe returns with error, the kthread is still alive even when all usbip modules unloaded. So do cleanups in error handler. Signed-off-by: harvey.yang harvey.huawei.y...@gmail.com --- drivers/staging/usbip/stub_dev.c |2 ++ 1 files changed,

[PATCH 0/3] usb: renesas_usbhs: fixup patches for host

2012-11-06 Thread Kuninori Morimoto
Hi Felipe, GregKH These pathces fixup renesas_usbhs host side strange behavior for v3.8 kernel. based on felipe/master branch Kuninori Morimoto (3): usb: renesas_usbhs: remove debug information from usbhsh_hub_status_data() usb: renesas_usbhs: use transfer counter if IN direction

[PATCH 1/3] usb: renesas_usbhs: remove debug information from usbhsh_hub_status_data()

2012-11-06 Thread Kuninori Morimoto
Because usbhsh_hub_status_data() will be called many times, there are too many obstructive/useless debug informations if driver has #define DEBUG. Thus, other important dev_dbg() information will hide. This patch removed obstructive/useless dev_dbg(). Signed-off-by: Kuninori Morimoto

[PATCH 2/3] usb: renesas_usbhs: use transfer counter if IN direction bulk pipe

2012-11-06 Thread Kuninori Morimoto
received data will break if it was bulk pipe and large data size, because pipe kept BUF PID even though it doesn't have enough buffer. To avoid this issue, renesas_usbhs can use transfer counter. Pipe PID will be NAK if it didn't have enough buffer by this patch. renesas_usbhs has strange address

[PATCH 3/3] usb: renesas_usbhs: host: add endpoint user counter

2012-11-06 Thread Kuninori Morimoto
renesas_usbhs attaches pipe to endpoint when urb was queued, and it will be detached when transfer was done. Multi device controlling was enabled by this behavior. Now renesas_usbhs driver tried to wait until detaching if urb was queued to endpoint which already has been attached to pipe, and it

Re: [PATCH] hid: usbhid: add quirk for SB arena headset v2

2012-11-06 Thread Jiri Kosina
On Mon, 5 Nov 2012, Chris J Arges wrote: When an SB Arena USB headset is plugged in, it registers the volume keys on the headset as a keyboard and continually sends events causing issues with normal keyboard input. This quirk disables the volume keys. I don't know how the device looks

[GIT PULL] USB fixes for v3.7-rc5

2012-11-06 Thread Felipe Balbi
Hi Greg, I have one extra fix for this -rc cycle. Hopefully this is the last one. Let me know if you prefer not to apply this build fix. cheers The following changes since commit f6bc8c29383456b89ac1b6f1aa768d195670fb53: usb: otg: Fix build errors if USB_MUSB_OMAP2PLUS is selected as module

Re: [PATCH] usb: gadget: ncm: correct endianess conversion

2012-11-06 Thread Felipe Balbi
On Sun, Nov 04, 2012 at 03:30:21PM +0100, Dmytro Milinevskyy wrote: Convert USB descriptor's fields to CPU byte order before using locally in USB NCM gadget driver. Tested on MIPS32 big-endian device. Signed-off-by: Dmytro Milinevskyy milinevs...@gmail.com doesn't apply: $ patch -p1

Re: [PATCHv2 1/6] arch: Change defconfigs to point to g_mass_storage.

2012-11-06 Thread Felipe Balbi
Hi, On Fri, Nov 02, 2012 at 02:31:50PM +0100, Michal Nazarewicz wrote: From: Michal Nazarewicz min...@mina86.com The File-backed Storage Gadget (g_file_storage) is being removed, since it has been replaced by Mass Storage Gadget (g_mass_storage). This commit changes defconfigs point to the

Re: [PATCHv2 2/6] usb: gadget: Remove File-backed Storage Gadget (g_file_storage).

2012-11-06 Thread Felipe Balbi
On Fri, Nov 02, 2012 at 02:31:51PM +0100, Michal Nazarewicz wrote: From: Michal Nazarewicz min...@mina86.com The File-backed Storage Gadget (g_file_storage) gadget has been replaced with Mass Storage Gadget (g_mass_storage) which uses the composite framework. This commit removes

Re: [PATCH 2/3] usb: renesas_usbhs: use transfer counter if IN direction bulk pipe

2012-11-06 Thread Felipe Balbi
On Tue, Nov 06, 2012 at 12:11:43AM -0800, Kuninori Morimoto wrote: received data will break if it was bulk pipe and large data size, because pipe kept BUF PID even though it doesn't have enough buffer. To avoid this issue, renesas_usbhs can use transfer counter. Pipe PID will be NAK if it

RE: [PATCH V3 3/4] usb: Create link files between child device and usb port device.

2012-11-06 Thread Lan, Tianyu
Hi Alan: Thanks for your review. I will update soon. Best Regards Tianyu Lan -Original Message- From: Alan Stern [mailto:st...@rowland.harvard.edu] Sent: Monday, November 05, 2012 10:55 PM To: Lan, Tianyu Cc: gre...@linuxfoundation.org; sarah.a.sh...@linux.intel.com;

Re: [PATCH v4 6/7] usb: dwc3-omap: Minor fixes to get dt working

2012-11-06 Thread Felipe Balbi
Hi, On Thu, Oct 25, 2012 at 08:24:09PM +0530, kishon wrote: Hi Benoit, On Thursday 25 October 2012 07:11 PM, Benoit Cousson wrote: Hi Kishon, On 10/15/2012 03:27 PM, Kishon Vijay Abraham I wrote: Includes few minor fixes in dwc3-omap like populating the compatible string in a correct

Re: [PATCH v4 0/7] usb: dwc3-omap: add dt support

2012-11-06 Thread Felipe Balbi
On Mon, Oct 15, 2012 at 06:57:53PM +0530, Kishon Vijay Abraham I wrote: This patch series adds dt support to dwc3 core and fixes few minor stuff in dwc3-omap glue to get dwc3 working. While at that it also uses *of_platform* to create the child device (dwc3-core) and fixes to use runtime

Re: [PATCH] cppi_dma: export cppi_interrupt()

2012-11-06 Thread Sergei Shtylyov
Hello. On 06-11-2012 6:21, Greg KH wrote: Now that DaVinci glue layer can be modular, we must export cppi_interrupt() that it may call... Signed-off-by: Sergei Shtylyov sshtyl...@ru.mvista.com Cc: sta...@vger.kernel.org # 3.0+ Why would we need to export this for such old kernels? I

Re: [GIT PULL] USB fixes for v3.7-rc5

2012-11-06 Thread Felipe Balbi
Hi, On Tue, Nov 06, 2012 at 01:29:45PM +0100, Greg KH wrote: On Tue, Nov 06, 2012 at 01:16:17PM +0200, Felipe Balbi wrote: Hi Greg, I have one extra fix for this -rc cycle. Hopefully this is the last one. Let me know if you prefer not to apply this build fix. I'd prefer not, if at

Re: [PATCH 4/5] usb: musb: dsps: dt binding - add resources, example

2012-11-06 Thread Felipe Balbi
On Fri, Nov 02, 2012 at 10:02:47PM +0530, Afzal Mohammed wrote: OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update binding document accrodingly, while at it add example. Signed-off-by: Afzal Mohammed af...@ti.com ---

Re: [PATCH v3 0/4] Adding usb2.0 host-phy support for exynos5250

2012-11-06 Thread Felipe Balbi
Hi, On Mon, Oct 29, 2012 at 07:12:36PM +0530, Vivek Gautam wrote: This patchset is based on the work by Praveen Paneri for samsung-usbphy driver: http://comments.gmane.org/gmane.linux.kernel.samsung-soc/12653 Changes from v2: - Using EXYNOS5_PHY_ as common prefix along with exact names

Re: [PATCH] usb: musb: ux500: fix 'musbid' undeclared error in ux500_remove()

2012-11-06 Thread Felipe Balbi
On Wed, Oct 31, 2012 at 08:51:39PM +0530, Rajaram R wrote: On Wed, Oct 31, 2012 at 8:00 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Wed, Oct 31, 2012 at 07:45:53PM +0530, Rajaram R wrote: On Tue, Oct 23, 2012 at 11:42 AM, Wei Yongjun weiyj...@gmail.com wrote: commit

[ANNOUNCE] Queue empty

2012-11-06 Thread Felipe Balbi
Hi guys, this is just a quick note to let you know that I have nothing pending in my queue anymore. That means both fixes for this -rc (which is already too late for anyway) and code for v3.8 merge window. If I have missed anything, please resend with a subject such as 'PATCH/RESEND' so I know

Re: [PATCH 1/3] USB: EHCI: prepare to make ehci-hcd a library module

2012-11-06 Thread Felipe Balbi
On Thu, Nov 01, 2012 at 11:12:58AM -0400, Alan Stern wrote: This patch (as1624) prepares ehci-hcd for being split up into a core library and separate platform driver modules. A generic ehci_hc_driver structure is created, containing all the standard values, and a new mechanism is added

Re: [PATCH v3 3/5] usbnet: smsc95xx: fix memory leak in smsc95xx_suspend

2012-11-06 Thread Ming Lei
On Tue, Nov 6, 2012 at 9:20 PM, Steve Glendinning st...@shawell.net wrote: On 6 November 2012 01:45, Ming Lei ming@canonical.com wrote: This patch fixes memory leak in smsc95xx_suspend. Good spot, thanks! Note that check_warn_return just above your kfree can cause early return in the

Re: [PATCH v3 0/4] Adding usb2.0 host-phy support for exynos5250

2012-11-06 Thread Vivek Gautam
Hi Balbi, On Tue, Nov 6, 2012 at 6:44 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Oct 29, 2012 at 07:12:36PM +0530, Vivek Gautam wrote: This patchset is based on the work by Praveen Paneri for samsung-usbphy driver: http://comments.gmane.org/gmane.linux.kernel.samsung-soc/12653

Re: [PATCH v3 3/5] usbnet: smsc95xx: fix memory leak in smsc95xx_suspend

2012-11-06 Thread Ming Lei
On Tue, Nov 6, 2012 at 9:58 PM, Steve Glendinning st...@shawell.net wrote: BTW, I just saw the smsc95xx datasheet and the vendor's driver source code, and found the chip supports runtime PM well (remote wakeup on 'good packet' or link change), so do you plan to implement that? Yes, I do plan

Re: [PATCH 4/5] usb: musb: dsps: dt binding - add resources, example

2012-11-06 Thread Afzal Mohammed
Hi Balbi, On Tuesday 06 November 2012 06:32 PM, Felipe Balbi wrote: On Fri, Nov 02, 2012 at 10:02:47PM +0530, Afzal Mohammed wrote: +Example: + +usb_otg_hs@4740 { this should be usb@4740. Updated version with the above change has been posted. Regards Afzal -- To unsubscribe

[PATCH v4 0/5] Adding usb2.0 host-phy support for exynos5250

2012-11-06 Thread Vivek Gautam
This patchset is based on the work by Praveen Paneri for samsung-usbphy driver: http://www.spinics.net/lists/linux-usb/msg73518.html Changes from v3: - Moved enums S5P_USB_PHY_DEVICE, S5P_USB_PHY_HOST from machine to file include/linux/usb/samsung_usb_phy.h as USB_PHY_TYPE_DEVICE and

[PATCH v4 1/5] ARM: EXYNOS: Update move usb-phy types to generic include layer

2012-11-06 Thread Vivek Gautam
Updating the names of usb-phy types to more generic names: USB_PHY_TYPE_DEIVCE USB_PHY_TYPE_HOST; and further update its dependencies. Signed-off-by: Praveen Paneri p.pan...@samsung.com Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- arch/arm/mach-exynos/setup-usb-phy.c |9

[PATCH v4 3/5] ARM: Exynos5250: Enabling samsung-usbphy driver

2012-11-06 Thread Vivek Gautam
Adding usbphy node for Exynos5250 along with the platform data Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- .../devicetree/bindings/usb/samsung-usbphy.txt | 12 +- arch/arm/boot/dts/exynos5250.dtsi |5 ++ arch/arm/mach-exynos/Kconfig

[PATCH v4 1/5] usbnet: introduce usbnet_{read|write}_cmd_nopm

2012-11-06 Thread Ming Lei
This patch introduces the below two helpers to prepare for solving the usbnet runtime PM problem, which may cause some network utilities (ifconfig, ethtool,...) touch a suspended device. usbnet_read_cmd_nopm() usbnet_write_cmd_nopm() The above two helpers should be called by

[PATCH v4 4/5] USB: ehci-s5p: Add phy driver support

2012-11-06 Thread Vivek Gautam
Adding the phy driver to ehci-s5p. Keeping the platform data for continuing the smooth operation for boards which still uses it Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Acked-by: Jingoo Han jg1@samsung.com --- drivers/usb/host/ehci-s5p.c | 70

[PATCH v4 5/5] usbnet: runtime wake up device before calling usbnet_{read|write}_cmd

2012-11-06 Thread Ming Lei
This patch gets the runtime PM reference count before calling usbnet_{read|write}_cmd, and puts it after completion of the usbnet_{read|write}_cmd, so that the usb control message can always be sent to one active device in the non-PM context. Signed-off-by: Ming Lei ming@canonical.com ---

[PATCH v4 5/5] USB: ohci-exynos: Add phy driver support

2012-11-06 Thread Vivek Gautam
Adding the phy-driver to ohci-exynos. Keeping the platform data for continuing the smooth operation for boards which still uses it Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Acked-by: Jingoo Han jg1@samsung.com --- drivers/usb/host/ohci-exynos.c | 70

[PATCH/RESEND 0/2] usb: musb: am335x support part-2

2012-11-06 Thread Afzal Mohammed
Hi Balbi, This is a resend of remaining changes to get am335x usb working. These were sent on 31 Oct with subject, usb: musb: dsps: fixes for -rc. First one restores capability to support at least one instance of musb. Without it, even a single instance can't be supported as change which is

[PATCH/RESEND 1/2] Revert usb: musb: dsps: remove explicit NOP device creation

2012-11-06 Thread Afzal Mohammed
This reverts commit d8c3ef256f88b7c6ecd673d03073b5645be9c5e4. Above mentioned change was made along with multi usb phy change and adding DT support for nop transceiver. But other two changes did not make it to mainline. This in effect makes dsps musb wrapper unusable even for single instance.

[PATCH/RESEND 2/2] usb: musb: dsps: document dt bindings properly

2012-11-06 Thread Afzal Mohammed
DT bindings normally use '-' (hyphens) instead of '_' (underscore), driver has it the proper way, but binding documentation does not reflect it, fix it. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/usb/am33xx-usb.txt | 8 1 file changed, 4

[PATCH] ARM: EXYNOS5250: Add support for USB 3.0 dwc3 controller

2012-11-06 Thread Vivek Gautam
Here we add the required support for device tree and further clocks and device reigster base address. Based on 'for-next' branch of linux-samsung tree. Tested with required driver DT patches for dwc3-exynos: http://www.spinics.net/lists/linux-usb/msg73857.html and USB 3.0 phy support patches:

[PATCH] ARM: Exynos5250: Enabling dwc3-exynos driver

2012-11-06 Thread Vivek Gautam
Adding DWC3 device tree node for Exynos5250 along with the device address and clock support needed for the controller. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- arch/arm/boot/dts/exynos5250.dtsi |6 ++ arch/arm/mach-exynos/clock-exynos5.c| 24

Re: [PATCH 1/3] USB: EHCI: prepare to make ehci-hcd a library module

2012-11-06 Thread Alan Stern
On Tue, 6 Nov 2012, Felipe Balbi wrote: On Thu, Nov 01, 2012 at 11:12:58AM -0400, Alan Stern wrote: This patch (as1624) prepares ehci-hcd for being split up into a core library and separate platform driver modules. A generic ehci_hc_driver structure is created, containing all the standard

[PATCH 0/2] Adding USB 3.0 DRD-phy support for exynos5250

2012-11-06 Thread Vivek Gautam
This patchset is based on the work for USB 2.0 host phy support for exynos5250 https://lists.ozlabs.org/pipermail/devicetree-discuss/2012-November/021915.html Based on 'usb-next' branch. Tested on smdk5250 with following patch-series:

[PATCH 1/2] USB: PHY: Add support for USB 3.0 phy for exynos5250

2012-11-06 Thread Vivek Gautam
Adding support for USB3.0 phy for dwc3 controller on exynso5250 SOC. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- drivers/usb/phy/samsung-usbphy.c| 337 +++ include/linux/usb/samsung_usb_phy.h |1 + 2 files changed, 338 insertions(+), 0

[PATCH 2/2] ARM: Exynos5250: Enabling USB 3.0 phy for samsung-usbphy driver

2012-11-06 Thread Vivek Gautam
Adding base address information and required platform data support for enabling USB DRD phy on exynos5250 SOC. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com --- arch/arm/boot/dts/exynos5250.dtsi|3 ++- arch/arm/mach-exynos/include/mach/regs-pmu.h |4

Re: 3TB Hard Drive in USB Enclosure Resetting

2012-11-06 Thread Alan Stern
On Mon, 5 Nov 2012, Jason J. Herne wrote: I have a Seagate ST3000DM 3.0TB Sata Drive enclosed in a Vantec NexStar CX USB 3.0/2.0 Enclosure. This enclosure/drive is not properly recognized by Linux when plugged in via a USB 2.0 port. My dmesg output, at first, seems like all is well. but

Re: 3TB Hard Drive in USB Enclosure Resetting

2012-11-06 Thread Jason J. Herne
Here is the pcap file, as captured from Wireshark. On Tue, Nov 6, 2012 at 10:46 AM, Alan Stern st...@rowland.harvard.edu wrote: On Mon, 5 Nov 2012, Jason J. Herne wrote: I have a Seagate ST3000DM 3.0TB Sata Drive enclosed in a Vantec NexStar CX USB 3.0/2.0 Enclosure. This enclosure/drive is

Re: [PATCH 1/3] USB: EHCI: prepare to make ehci-hcd a library module

2012-11-06 Thread Felipe Balbi
Hi On Tue, Nov 06, 2012 at 10:25:40AM -0500, Alan Stern wrote: On Tue, 6 Nov 2012, Felipe Balbi wrote: On Thu, Nov 01, 2012 at 11:12:58AM -0400, Alan Stern wrote: This patch (as1624) prepares ehci-hcd for being split up into a core library and separate platform driver modules. A

Re: [PATCH v3 0/4] Adding usb2.0 host-phy support for exynos5250

2012-11-06 Thread Felipe Balbi
Hi, On Tue, Nov 06, 2012 at 07:23:12PM +0530, Vivek Gautam wrote: Hi Balbi, On Tue, Nov 6, 2012 at 6:44 PM, Felipe Balbi ba...@ti.com wrote: Hi, On Mon, Oct 29, 2012 at 07:12:36PM +0530, Vivek Gautam wrote: This patchset is based on the work by Praveen Paneri for samsung-usbphy

Re: [PATCH v2] usb: musb: dsps: dt binding - add resources, example

2012-11-06 Thread Benoit Cousson
On 11/06/2012 05:44 PM, Felipe Balbi wrote: Hi, On Tue, Nov 06, 2012 at 07:26:06PM +0530, Afzal Mohammed wrote: OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update binding document accrodingly, while at it add example. Signed-off-by:

Re: Fresco Logic Problem

2012-11-06 Thread Sarah Sharp
On Tue, Nov 06, 2012 at 11:03:10AM +0330, A Sh wrote: So you patched 3.2 with the patch I sent you, and it worked? yes, I did. Ok, great, I will send that patch upstream. You mean this one? I had also a suggestion: make xhci module work in three mode: 1. without msi/msi-X 2.

Re: Force usb to use same port number for re/boot or re insert

2012-11-06 Thread Sarah Sharp
Ok, I don't understand what you're trying to do, and it doesn't really sound like a kernel question. Why not ask on Stack Overflow or some other Android forum? Sarah Sharp On Fri, Nov 02, 2012 at 07:55:27AM +0530, $rik@nth wrote: Server will run on the device port only. so that's why i wanted

Re: 3TB Hard Drive in USB Enclosure Resetting

2012-11-06 Thread Alan Stern
On Tue, 6 Nov 2012, Jason J. Herne wrote: Here is the pcap file, as captured from Wireshark. On Tue, Nov 6, 2012 at 10:46 AM, Alan Stern st...@rowland.harvard.edu wrote: On Mon, 5 Nov 2012, Jason J. Herne wrote: I have a Seagate ST3000DM 3.0TB Sata Drive enclosed in a Vantec NexStar

Re: [PATCH v2] usb: musb: dsps: dt binding - add resources, example

2012-11-06 Thread Felipe Balbi
Hi, On Tue, Nov 06, 2012 at 05:58:57PM +0100, Benoit Cousson wrote: On 11/06/2012 05:44 PM, Felipe Balbi wrote: Hi, On Tue, Nov 06, 2012 at 07:26:06PM +0530, Afzal Mohammed wrote: OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update

Re: [PATCHv2 1/6] arch: Change defconfigs to point to g_mass_storage.

2012-11-06 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [121106 03:40]: Hi, On Fri, Nov 02, 2012 at 02:31:50PM +0100, Michal Nazarewicz wrote: From: Michal Nazarewicz min...@mina86.com The File-backed Storage Gadget (g_file_storage) is being removed, since it has been replaced by Mass Storage Gadget

[PATCH] HID: Ignore D-WAV/eGalax devices handled by usbtouchscreen

2012-11-06 Thread Forest Bond
From: Forest Bond forest.b...@rapidrollout.com Previously, both usbhid and usbtouchscreen would bind to D-WAV devices with class HID and protocol None, so they would be claimed by whichever driver was loaded first. Some of these devices do in fact work with usbhid, but not all of them do. OTOH

Re: [PATCH 1/3] usb: musb: drop useless board_mode usage

2012-11-06 Thread Sergei Shtylyov
Hello. On 08/09/2012 12:47 PM, Felipe Balbi wrote: we are compiling the driver always with full OTG capabilities, so that board_mode trick becomes useless. Signed-off-by: Felipe Balbiba...@ti.com --- I would like to get Acks from blackfin, da8xx and davinci guys, please. After

Re: [PATCHv2 1/6] arch: Change defconfigs to point to g_mass_storage.

2012-11-06 Thread Felipe Balbi
Hi, On Tue, Nov 06, 2012 at 10:42:27AM -0800, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [121106 10:41]: * Felipe Balbi ba...@ti.com [121106 03:40]: Hi, On Fri, Nov 02, 2012 at 02:31:50PM +0100, Michal Nazarewicz wrote: From: Michal Nazarewicz min...@mina86.com

Re: [PATCHv2 1/6] arch: Change defconfigs to point to g_mass_storage.

2012-11-06 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [121106 12:40]: Hi, On Tue, Nov 06, 2012 at 10:42:27AM -0800, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [121106 10:41]: * Felipe Balbi ba...@ti.com [121106 03:40]: Hi, On Fri, Nov 02, 2012 at 02:31:50PM +0100, Michal Nazarewicz wrote:

[PATCH 0/2] Fix CDC_EEM with 802.1Q VLAN and 1500 MTU

2012-11-06 Thread Ian Coolidge
cdc_eem USB host driver and gadget driver both are broken in 1500 MTU case when using 802.1Q VLANs. In both cases, this is due to incomplete assumptions of Ethernet frame size. Ian Coolidge (2): usb: gadget: g_ether: fix frame size check net: usb: cdc_eem: Fix rx skb allocation for 802.1Q

[PATCH 1/2] usb: gadget: g_ether: fix frame size check

2012-11-06 Thread Ian Coolidge
Checking skb-len against ETH_FRAME_LEN assumes a 1514 ethernet frame size. With an 802.1Q VLAN header, ethernet frame length can now be 1518. Validate frame length against that. Signed-off-by: Ian Coolidge iancooli...@gmail.com --- drivers/usb/gadget/u_ether.c |3 ++- 1 files changed, 2

[PATCH 2/2] net: usb: cdc_eem: Fix rx skb allocation for 802.1Q VLANs

2012-11-06 Thread Ian Coolidge
cdc_eem frames might need to contain 802.1Q VLAN Ethernet frames. Provide this information as an override to usbnet-rx_urb_size Signed-off-by: Ian Coolidge iancooli...@gmail.com --- drivers/net/usb/cdc_eem.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git

[PATCHv3 0/6] Some USB gadget cleanups

2012-11-06 Thread Michal Nazarewicz
From: Michal Nazarewicz min...@mina86.com v2 has the first patch fixed as pointed by Alan. This patchset remove the following: - the File-backed Storage Gadget (g_file_storage), and - is_dualspeed file and line referenced in sysfs. Once g_file_storage is removed, it also does some cleanup

[PATCHv3 1/6] arch: Change defconfigs to point to g_mass_storage.

2012-11-06 Thread Michal Nazarewicz
From: Michal Nazarewicz min...@mina86.com The File-backed Storage Gadget (g_file_storage) is being removed, since it has been replaced by Mass Storage Gadget (g_mass_storage). This commit changes defconfigs point to the new gadget. Signed-off-by: Michal Nazarewicz min...@mina86.com Acked-by:

[PATCHv3 3/6] usb: gadget: storage_common: Remove FSG specific definitions.

2012-11-06 Thread Michal Nazarewicz
From: Michal Nazarewicz min...@mina86.com Since g_file_storage has been removed, this commit removes code from the storage_common.c file which has been used by file_storage.c only (and not by f_mass_storage.c). Signed-off-by: Michal Nazarewicz min...@mina86.com ---

[PATCHv3 4/6] usb: gadget: storage_common: Drop #ifdefs used for the sake of FSG.

2012-11-06 Thread Michal Nazarewicz
From: Michal Nazarewicz min...@mina86.com storage_common.c has been used by both file_storage.c and f_mass_storage.c which had some different requirements in a few places. To accomodate for that, storage_common.c provided configuratian macros which were to be defined (or not) prior to the file

[PATCHv3 5/6] usb: gadget: storage_common: Make fsg_lun_is_open() a function.

2012-11-06 Thread Michal Nazarewicz
From: Michal Nazarewicz min...@mina86.com Since function-line macros are to be avoided, this commit replaces the fsg_lun_is_open() macro with a static inline function. While at it, this commit also adds “inline” modifier to the fsg_lun_from_dev() function. Signed-off-by: Michal Nazarewicz

[PATCHv3 6/6] usb: gadget: Remove reference to is_dualspeed from sysfs.

2012-11-06 Thread Michal Nazarewicz
From: Michal Nazarewicz min...@mina86.com This commit removes the /sys/devices/platform/UDC/udc/UDC/is_dualspeed file and is_dualspeeed line from /sys/devices/platform/ci13xxx_*/udc/device file. The is_dualspeed file is superseded by maximum_speed in the same directory and is_dualspeed line in

Re: generic wireless mouse not working

2012-11-06 Thread Marco Biscaro
Is that sufficient? https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1021019/comments/42 Em 05-09-2012 04:23, Oliver Neukum escreveu: On Tuesday 04 September 2012 20:01:33 Marco Biscaro wrote: Hello all, I've opened a bug report about a wireless mouse problem [1], and Greg Kroah-Hartman

Re: HDD spins up to slow for USB and/or Mass-Storage Driver

2012-11-06 Thread Sarah Sharp
On Fri, Nov 02, 2012 at 10:42:19AM -0400, Alan Stern wrote: On Thu, 1 Nov 2012, Matthias Schniedermeyer wrote: Okay, Matthias, here's an updated version of that patch. The only difference is that it puts the usb_hcd_alloc_bandwidth() call _before_ the usb_disable_interface() calls.

Re: autodetect USB MTP device characteristics without libusb_open()

2012-11-06 Thread Linus Walleij
On Mon, Nov 5, 2012 at 11:31 PM, Bjørn Mork bj...@mork.no wrote: Linus Walleij linus.wall...@linaro.org writes: Excuse my lack of knowlegde here, but I have to ask why that is? I looked briefly at the MTP v1.1 spec from So all MTP devices manufactured before that spec, and numerous produced

Re: problem with Roseweil eusb3 enclosure

2012-11-06 Thread Sarah Sharp
On Sat, Nov 03, 2012 at 02:51:36AM -0400, cov...@ccs.covici.com wrote: OK, increasing the buffer size gives me the full syslog, which is enclosed. I am not sending the dmesg because I think we have it all now. Thanks, that helped. Your port is coming up in compliance mode shortly after it's

Re: [PATCH v4 1/6] mm: teach mm by current context info to not do I/O during memory allocation

2012-11-06 Thread Andrew Morton
On Sat, 3 Nov 2012 16:35:09 +0800 Ming Lei ming@canonical.com wrote: This patch introduces PF_MEMALLOC_NOIO on process flag('flags' field of 'struct task_struct'), so that the flag can be set by one task to avoid doing I/O inside memory allocation in the task's context. The patch trys

Re: [PATCH v4 2/6] PM / Runtime: introduce pm_runtime_set_memalloc_noio()

2012-11-06 Thread Andrew Morton
On Sat, 3 Nov 2012 16:35:10 +0800 Ming Lei ming@canonical.com wrote: The patch introduces the flag of memalloc_noio in 'struct dev_pm_info' to help PM core to teach mm not allocating memory with GFP_KERNEL flag for avoiding probable deadlock. As explained in the comment, any GFP_KERNEL

Re: [PATCH v4 3/6] block/genhd.c: apply pm_runtime_set_memalloc_noio on block devices

2012-11-06 Thread Andrew Morton
On Sat, 3 Nov 2012 16:35:11 +0800 Ming Lei ming@canonical.com wrote: This patch applyes the introduced pm_runtime_set_memalloc_noio on block device so that PM core will teach mm to not allocate memory with GFP_IOFS when calling the runtime_resume and runtime_suspend callback for block

Re: autodetect USB MTP device characteristics without libusb_open()

2012-11-06 Thread Bjørn Mork
Linus Walleij linus.wall...@linaro.org writes: On Mon, Nov 5, 2012 at 11:31 PM, Bjørn Mork bj...@mork.no wrote: Linus Walleij linus.wall...@linaro.org writes: Excuse my lack of knowlegde here, but I have to ask why that is? I looked briefly at the MTP v1.1 spec from So all MTP devices

Re: [PATCH 1/2] USB: PHY: Add support for USB 3.0 phy for exynos5250

2012-11-06 Thread Sylwester Nawrocki
Hi, I have a few comments. Please see below... On 11/06/2012 04:36 PM, Vivek Gautam wrote: Adding support for USB3.0 phy for dwc3 controller on exynso5250 SOC. exynso - exynos Signed-off-by: Vivek Gautamgautam.vi...@samsung.com --- drivers/usb/phy/samsung-usbphy.c| 337

How-to start reverse engineering serial communication

2012-11-06 Thread Markus Kolb
Hello, I've a bike computer SIGMA ROX 9.1 which can be connected via a small USB docking station to retrieve the collected data. However there is a proprietary software called Data Center (DaCe) which is not available for Linux and doesn't run with Wine. At least it doesn't find the connected

Re: 3TB Hard Drive in USB Enclosure Resetting

2012-11-06 Thread Jason J. Herne
I was comparing the two USB captures and I noticed the Windows capture uses a READ(16) and Linux is using a READ(10). I'm not sure how the kernel determines which read command to use, but I'm wondering if this could be the problem here? I was way wrong about the first read being in the 700's btw

[PATCH 2/3 v2] usb: renesas_usbhs: use transfer counter if IN direction bulk pipe

2012-11-06 Thread Kuninori Morimoto
received data will break if it was bulk pipe and large data size, because pipe kept BUF PID even though it doesn't have enough buffer. To avoid this issue, renesas_usbhs can use transfer counter. Pipe PID will be NAK if it didn't have enough buffer by this patch. renesas_usbhs has strange address

Re: How-to start reverse engineering serial communication

2012-11-06 Thread Bjørn Mork
Markus Kolb linux-usb...@tower-net.de writes: I've a bike computer SIGMA ROX 9.1 which can be connected via a small USB docking station to retrieve the collected data. [snip] But I don't see how to interpret the data. So do you have any idea how to go on? Not really, but googling the device

Re: [PATCHv3 1/6] arch: Change defconfigs to point to g_mass_storage.

2012-11-06 Thread Hans-Christian Egtvedt
Around Tue 06 Nov 2012 22:52:35 +0100 or thereabout, Michal Nazarewicz wrote: From: Michal Nazarewicz min...@mina86.com The File-backed Storage Gadget (g_file_storage) is being removed, since it has been replaced by Mass Storage Gadget (g_mass_storage). This commit changes defconfigs point

Re: How-to start reverse engineering serial communication

2012-11-06 Thread Markus Kolb
Bjørn Mork wrote on 07.11.2012 01:17: Markus Kolb linux-usb...@tower-net.de writes: I've a bike computer SIGMA ROX 9.1 which can be connected via a small USB docking station to retrieve the collected data. [snip] But I don't see how to interpret the data. So do you have any idea how to go

Re: autodetect USB MTP device characteristics without libusb_open()

2012-11-06 Thread Peter Stuge
Hej Linus! Linus Walleij wrote: - some devices bug out on libusb_open() Please send me a debug log from when this happens. Exact steps are at http://libusb.org/wiki/debug I have added code like below to libmtp to instead inspect sysfs *before* starting any libusb-based business. .. - Is

Re: [PATCH v4 1/6] mm: teach mm by current context info to not do I/O during memory allocation

2012-11-06 Thread Ming Lei
On Wed, Nov 7, 2012 at 7:23 AM, Andrew Morton a...@linux-foundation.org wrote: It's unclear from the description why we're also clearing __GFP_FS in this situation. If we can avoid doing this then there will be a very small gain: there are some situations in which a filesystem can clean

Re: [PATCH v4 2/6] PM / Runtime: introduce pm_runtime_set_memalloc_noio()

2012-11-06 Thread Ming Lei
On Wed, Nov 7, 2012 at 7:24 AM, Andrew Morton a...@linux-foundation.org wrote: checkpatch finds a number of problems with this patch, all of which should be fixed. Please always use checkpatch. Sorry for missing the check. + /* only clear the flag for one device if all +

Re: [PATCH v4 0/6] solve deadlock caused by memory allocation with I/O

2012-11-06 Thread Ming Lei
On Wed, Nov 7, 2012 at 7:23 AM, Andrew Morton a...@linux-foundation.org wrote: It generally looks OK to me. I have a few comments and I expect to grab v5. Andrew, thanks for your review, and I will prepare -v5 later. Thanks, -- Ming Lei -- To unsubscribe from this list: send the line

Re: [PATCH v4 1/6] mm: teach mm by current context info to not do I/O during memory allocation

2012-11-06 Thread Ming Lei
On Wed, Nov 7, 2012 at 11:48 AM, Andrew Morton a...@linux-foundation.org wrote: Firstly, the patch follows the policy in the system suspend/resume situation, in which the __GFP_FS is cleared, and basically the problem is very similar with that in system PM path. I suspect that code is

Re: generic wireless mouse not working

2012-11-06 Thread Greg KH
On Tue, Nov 06, 2012 at 08:23:43PM -0200, Marco Biscaro wrote: Is that sufficient? https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1021019/comments/42 Not in the slightest. Especially as there is no such thing as public domain. Please read Documentation/SubmittingPatches for what is