Re: Need help for hardware bug in Intel's EHCI implementation

2012-12-07 Thread Sarah Sharp
On Fri, Dec 07, 2012 at 05:51:55PM -0500, Alan Stern wrote: > Sarah: > > I just tracked down a tricky problem, which appears to be caused by a > genuine hardware bug. It's hard to believe this has escaped everyone's > notice for so many years -- maybe my results are wrong. But as far as > I can

Re: [PATCH] fs/configfs: allow to create groups on demand

2012-12-07 Thread Joel Becker
On Thu, Nov 29, 2012 at 05:41:23PM +0100, Sebastian Andrzej Siewior wrote: > This patch adds a function add a group to an existing one and its > counterart. The newly created group behaves as it would be created via > default_groups[] which means the user can't rmdir it. > This should be used by th

Re: [RFC][PATCH] fs: configfs: programmatically create config groups

2012-12-07 Thread Joel Becker
Hey Guys, Sorry I missed this for a while. I'll make a couple of inline comments, and then I'll summarize my (incomplete) thoughts at the bottom. On Wed, Nov 28, 2012 at 02:50:13PM +0100, Sebastian Andrzej Siewior wrote: > On 11/28/2012 02:05 PM, Michal Nazarewicz wrote: > >>On 11/27/2012

Need help for hardware bug in Intel's EHCI implementation

2012-12-07 Thread Alan Stern
Sarah: I just tracked down a tricky problem, which appears to be caused by a genuine hardware bug. It's hard to believe this has escaped everyone's notice for so many years -- maybe my results are wrong. But as far as I can tell, they aren't. Anyway, I don't know what to do about it. Can you f

Re: [RFC v2 10/11] USB: Rip out recursive call on warm port reset.

2012-12-07 Thread Alan Stern
On Fri, 7 Dec 2012, Sarah Sharp wrote: > > > 2. It doesn't consider a connect status change to be a failed reset. If > > > multiple warm resets needed to be issued, the connect status may have > > > changed, so we need to ignore that and look at the port link state > > > instead. hub_port_reset

Re: [RFC v2 06/11] USB: Handle warm reset failure on empty port.

2012-12-07 Thread Alan Stern
On Fri, 7 Dec 2012, Sarah Sharp wrote: > On Wed, Dec 05, 2012 at 12:14:07PM -0500, Alan Stern wrote: > > On Tue, 4 Dec 2012, Sarah Sharp wrote: > > > > > An empty port can transition to either Inactive or Compliance Mode if a > > > newly connected USB 3.0 device fails to link train. In that case

[PATCH 3/5] staging: usbip: userspace: eliminate glib dependency

2012-12-07 Thread Ilija Hadzic
USBIP daemon relies on functions available in glib2 library to spawn handler code for incoming connection. This makes the whole program dependent on glib2 library, which is a GNOME library that on systems that don't have GNOME results in pulling more dependency, only to be able to run a relatively

[PATCH 2/5] staging: usbip: userspace: add gitignore file

2012-12-07 Thread Ilija Hadzic
There are a bunch of automatically generated files that git should not care about. Signed-off-by: Ilija Hadzic --- drivers/staging/usbip/userspace/.gitignore | 28 1 file changed, 28 insertions(+) create mode 100644 drivers/staging/usbip/userspace/.gitignore diff -

[PATCH 5/5] staging: usbip: userspace: suppress a bogus error

2012-12-07 Thread Ilija Hadzic
If mkdir() of VHCI_STATE_PATH fails because the directory already exists, that's not an error. This patch fixes annoying "record connection" errors that would typically come up on attach. Signed-off-by: Ilija Hadzic --- drivers/staging/usbip/userspace/src/usbip_attach.c | 15 +-- 1 f

Re: [RFC v2 10/11] USB: Rip out recursive call on warm port reset.

2012-12-07 Thread Sarah Sharp
On Wed, Dec 05, 2012 at 02:41:11PM -0500, Alan Stern wrote: > On Tue, 4 Dec 2012, Sarah Sharp wrote: > > > When a hot reset fails on a USB 3.0 port, the current port reset code > > recursively calls hub_port_reset inside hub_port_wait_reset. This isn't > > ideal, since we should avoid recursive c

[PATCH 1/5] staging: usbip: userspace: fix build breakage in doc directory

2012-12-07 Thread Ilija Hadzic
File doc/usbip_bind_driver.8 does not exist any more but it is listed in dist_man_MANS. This breaks the build of the userspace. Remove the file from the list. Signed-off-by: Ilija Hadzic --- drivers/staging/usbip/userspace/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH 4/5] staging: usbip: userspace: add option to turn fortify on or off

2012-12-07 Thread Ilija Hadzic
This comes handy when hacking with different cross compilers, some of which may or may not have _FORTIFY_SOURCE turned on by default. This patch allows us to turn _FORTIFY_SOURCE on by specifying --with-fortify option at configuration time (or to turn it off by specifying --without-fortify). If no

various fixes to usbip userspace

2012-12-07 Thread Ilija Hadzic
The following patch series contains a few random fixes that I did along the way, while bringing up usbip on my machines. Please review and consider for inclusion upstream. The patches are based on staging-next branch in Greg KH's repository. If you would prefer me to rebase to something else, I'll

Re: [RFC v2 07/11] xhci: Avoid "dead ports", add roothub port polling.

2012-12-07 Thread Sarah Sharp
On Wed, Dec 05, 2012 at 01:50:46PM -0500, Alan Stern wrote: > On Tue, 4 Dec 2012, Sarah Sharp wrote: > > > The USB core hub thread (khubd) is designed with external USB hubs in > > mind. It expects that if a port status change bit is set, the hub will > > continue to send a notification through t

Re: [RFC v2 06/11] USB: Handle warm reset failure on empty port.

2012-12-07 Thread Sarah Sharp
On Wed, Dec 05, 2012 at 12:14:07PM -0500, Alan Stern wrote: > On Tue, 4 Dec 2012, Sarah Sharp wrote: > > > An empty port can transition to either Inactive or Compliance Mode if a > > newly connected USB 3.0 device fails to link train. In that case, we > > issue a warm reset. Some devices, such a

Re: [RFC v2 03/11] USB: Allow USB 3.0 ports to be disabled.

2012-12-07 Thread Sarah Sharp
On Wed, Dec 05, 2012 at 11:55:59AM -0500, Alan Stern wrote: > On Tue, 4 Dec 2012, Sarah Sharp wrote: > > +static int hub_set_port_link_state(struct usb_hub *hub, int port1, > > + unsigned int link_status) > > +{ > > + return set_port_feature(hub->hdev, > > + po

Re: Unreliable USB3 with NEC uPD720200 and Delock Cardreader

2012-12-07 Thread Rafael J. Wysocki
On Thursday, December 06, 2012 04:28:08 PM Sarah Sharp wrote: > On Thu, Dec 06, 2012 at 01:43:32AM +0100, Rafael J. Wysocki wrote: > > On Wednesday, December 05, 2012 04:33:44 PM Sarah Sharp wrote: > > > Wakeup from D3 works fine on the 3.5.0 kernel, but fails on 3.6.2. I > > > haven't fully bisec

[no subject]

2012-12-07 Thread JC2TInvite
-- 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

[PATCH] USB: misc: Add USB3503 High-Speed Hub Controller

2012-12-07 Thread tobetter
From: Dongjin Kim This patch adds new driver of SMSC USB3503 USB 2.0 hub controller with HSIC upstream connectivity and three USB 2.0 downstream ports. The specification can be found from 'http://www.smsc.com/index.php?tid=295&pid=325'. The current version have been tested very basic features sw

[PATCH] usb: dwc3: decrease event buffer size

2012-12-07 Thread Felipe Balbi
Currently we're allocating an entire page to serve as our event buffer. Provided our events are 4 bytes long, it's very unlikely we will even trigger 1k events at once. Even in the worst case scenario where every endpoint triggers one event and we still have a couple of error events, that would st

Re: Random MAC address from smsc75xx: How to permanently set?

2012-12-07 Thread Dan Williams
On Fri, 2012-12-07 at 15:27 +, Cunningham, Robert wrote: > > From: Dan Williams [mailto:d...@redhat.com] > > Sent: Friday, December 07, 2012 7:17 AM > > Subject: Re: Random MAC address from smsc75xx: How to permanently set? > > > > On Fri, 2012-12-07 at 14:13 +, Cunningham, Robert wrote: >

RE: Random MAC address from smsc75xx: How to permanently set?

2012-12-07 Thread Cunningham, Robert
> From: Dan Williams [mailto:d...@redhat.com] > Sent: Friday, December 07, 2012 7:17 AM > Subject: Re: Random MAC address from smsc75xx: How to permanently set? > > On Fri, 2012-12-07 at 14:13 +, Cunningham, Robert wrote: > > > -Original Message- > > > From: Jassi Brar [mailto:jassisin

Re: [PATCH 08/10] usb: add usb port auto power off mechanism

2012-12-07 Thread Alan Stern
On Fri, 7 Dec 2012, Lan Tianyu wrote: > > Maybe you really need two flags. Do whatever is best; I'm sure you can > > figure out a good scheme. > Yeah. Two flags maybe good. In this situation, it should be call > "power_is_on", right? power_is_on can be used to avoid to sending > redundant PORT_PO

Re: [Suggestion] drivers/usb/core: dev-config and dev->rawdescriptors, when processing failure.

2012-12-07 Thread Alan Stern
On Fri, 7 Dec 2012, Chen Gang wrote: > but I still not quite be sure, please help checking (total 3 steps, below). > > thanks. > > -- > Step 1: > > in drivers/usb/core/sysfs.c: > > for the same device, can usb_de

Re: Random MAC address from smsc75xx: How to permanently set?

2012-12-07 Thread Dan Williams
On Fri, 2012-12-07 at 14:13 +, Cunningham, Robert wrote: > > -Original Message- > > From: Jassi Brar [mailto:jassisinghb...@gmail.com] > > Sent: Thursday, December 06, 2012 10:21 PM > > Subject: Re: Random MAC address from smsc75xx: How to permanently set? > > > > On Fri, Dec 7, 2012 a

Re: [Suggestion] drivers/usb/renesas_usbhs: pkt is still in use, after it was already free.

2012-12-07 Thread Greg KH
On Fri, Dec 07, 2012 at 08:42:25PM +0800, Chen Gang wrote: > Hello Greg Kroah-Hartman: > > in drivers/usb/renesas_usbhs/mod_host.c, in function usbhsh_queue_done: > > get ureq from pkt, by using the macro usbhsh_pkt_to_ureq (at line 637) > pkt is the sub-object of ureq (line 73..76, l

RE: Random MAC address from smsc75xx: How to permanently set?

2012-12-07 Thread Cunningham, Robert
> -Original Message- > From: Jassi Brar [mailto:jassisinghb...@gmail.com] > Sent: Thursday, December 06, 2012 10:21 PM > Subject: Re: Random MAC address from smsc75xx: How to permanently set? > > On Fri, Dec 7, 2012 at 12:21 AM, Dan Williams wrote: > > On Thu, 2012-12-06 at 12:44 -0600, D

[Suggestion] drivers/usb/renesas_usbhs: pkt is still in use, after it was already free.

2012-12-07 Thread Chen Gang
Hello Greg Kroah-Hartman: in drivers/usb/renesas_usbhs/mod_host.c, in function usbhsh_queue_done: get ureq from pkt, by using the macro usbhsh_pkt_to_ureq (at line 637) pkt is the sub-object of ureq (line 73..76, line 157..158) free ureq, by calling function usbhsh_ureq_free (at

Re: Linux USB mass storage gadget insmod error

2012-12-07 Thread Michal Nazarewicz
On Fri, Dec 07 2012, victor wrote: > I can build linux USB mass storage gadget. When I want to insmod it, the > following errors are reported. I have the file g_mass_storage.ko, why can't > I insmod the file? > > # ls /lib/modules/3.4.4\+/kernel/drivers/usb/gadget/ > g_mass_storage.ko > # insmod /

RE: [RFC v5 0/3] configfs integration

2012-12-07 Thread Andrzej Pietrasiewicz
O Friday, December 07, 2012 11:48 AM Sebastian Andrzej Siewior wrote: > On 12/07/2012 11:17 AM, Andrzej Pietrasiewicz wrote: > > On Friday, December 07, 2012 10:15 AM Sebastian Andrzej Siewior wrote: > > > >> Subject: Re: [RFC v5 0/3] configfs integration > >> > >> On 12/07/2012 10:12 AM, Andrzej P

Linux USB mass storage gadget insmod error

2012-12-07 Thread victor
Hi, I can build linux USB mass storage gadget. When I want to insmod it, the following errors are reported. I have the file g_mass_storage.ko, why can't I insmod the file? # ls /lib/modules/3.4.4\+/kernel/drivers/usb/gadget/ g_mass_storage.ko # insmod /lib/modules/3.4.4\+/kernel/drivers/usb/gadge

Re: [RFC v5 0/3] configfs integration

2012-12-07 Thread Sebastian Andrzej Siewior
On 12/07/2012 11:17 AM, Andrzej Pietrasiewicz wrote: On Friday, December 07, 2012 10:15 AM Sebastian Andrzej Siewior wrote: Subject: Re: [RFC v5 0/3] configfs integration On 12/07/2012 10:12 AM, Andrzej Pietrasiewicz wrote: Dear All, This is the fifth version of what used to be called "USB F

RE: [RFC v5 0/3] configfs integration

2012-12-07 Thread Andrzej Pietrasiewicz
On Friday, December 07, 2012 10:15 AM Sebastian Andrzej Siewior wrote: > Subject: Re: [RFC v5 0/3] configfs integration > > On 12/07/2012 10:12 AM, Andrzej Pietrasiewicz wrote: > > Dear All, > > > > This is the fifth version of what used to be called "USB Functions > Gadget". > > It includes chan

Re: [RFC v5 0/3] configfs integration

2012-12-07 Thread Sebastian Andrzej Siewior
On 12/07/2012 10:12 AM, Andrzej Pietrasiewicz wrote: Dear All, This is the fifth version of what used to be called "USB Functions Gadget". It includes changes after Michal's and Sebastian's reviews - thanks, guys. I started slowly based coding based on feedback. Why do start over? Sebastian -

[RFC v5 3/3] usb: gadget: example port of mass storage to UFG: create storage_common.h and factor out code from storage_common.c

2012-12-07 Thread Andrzej Pietrasiewicz
Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park --- drivers/usb/gadget/Kconfig |4 + drivers/usb/gadget/Makefile |3 + drivers/usb/gadget/f_mass_storage.c | 825 +-- drivers/usb/gadget/f_mass_storage.h | 99 + dri

[RFC v5 2/3] usb: gadget: Add USB Functions Gadget

2012-12-07 Thread Andrzej Pietrasiewicz
Demonstrate a USB gadget configured entirely through configfs. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park --- Documentation/usb/ufg.txt |2 + drivers/usb/gadget/Kconfig | 13 + drivers/usb/gadget/Makefile|5 +- drivers/usb/gadget/udc-co

[RFC v5 0/3] configfs integration

2012-12-07 Thread Andrzej Pietrasiewicz
Dear All, This is the fifth version of what used to be called "USB Functions Gadget". It includes changes after Michal's and Sebastian's reviews - thanks, guys. This is what I have been working on since June'12 and starts looking usable. As an example I ported the mass storage function, which is

[RFC v5 1/3] usb: composite: add make_group and add_function operations

2012-12-07 Thread Andrzej Pietrasiewicz
Using configfs to create/configure a usb gadget requires providing a method to create config group for a usb function and a wrapper for usb_add_function. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park --- include/linux/usb/composite.h |6 ++ 1 files changed, 6 inserti

Re: [PATCH 08/10] usb: add usb port auto power off mechanism

2012-12-07 Thread Lan Tianyu
On 2012年12月06日 23:43, Alan Stern wrote: > On Thu, 6 Dec 2012, Lan Tianyu wrote: > >> Hi Alan: >> Doing port_dev->power_on = true in usb_hub_set_port_power() just after >> set PORT_POWER feature will cause device to be disconnected. If user set >> PM Qos NO_POWER_OFF flag after the device was