Re: [PATCH v2 Resend 9/9] usb: add usb_device_allow_power_off() function.

2013-01-07 Thread Oliver Neukum
On Saturday 05 January 2013 13:58:27 Alan Stern wrote: static int inline usb_device_prevent_power_off(struct usb_device *udev) { struct device *dev = usb_get_port_dev(udev); if(!dev) return -ENODEV; return pm_runtime_get_sync(dev); }

usb: multi phy support

2013-01-07 Thread Mohammed, Afzal
Hi Felipe, AM335x SoC's used in boards like beagle bone has two instances of USB modules (2.0) at the hardware level, each having a dedicated phy. Currently in mainline, only one instance of USB is supported (including a fix in your latest pull request). To support multi instance, the biggest

Re: Linux USB file storage gadget with new UDC

2013-01-07 Thread Alan Stern
On Mon, 7 Jan 2013, victor yeo wrote: Yes, usbmon requires usb host side support (i enable them both to use usbmon). So i disable the usbmon and usb host side support in menuconfig. Then i rebuild linux again. Subsequently, the /sys/bus does not contain usb folder. # ls /sys/bus/

Re: [PATCH 1/2] usbnet: allow status interrupt URB to always be active

2013-01-07 Thread Dan Williams
On Sat, 2013-01-05 at 12:01 +0100, Oliver Neukum wrote: On Friday 04 January 2013 19:26:33 Dan Williams wrote: On Fri, 2013-01-04 at 23:16 +0100, Oliver Neukum wrote: On Friday 04 January 2013 10:48:16 Dan Williams wrote: Some drivers (ex sierra_net) need the status interrupt URB

Re: usb serial driver: private data already deallocated when release function is called

2013-01-07 Thread Alan Stern
On Mon, 7 Jan 2013, Tilman wrote: Hello I am porting a usb test driver from kernel version 3.0.8 to kernel version 3.7.1. The release function was working on V3.0.0. On V3.7.1, the private data stored in serial-port.device-p-driver_data seems already to be deallocated (or never

Re: [PATCH 1/1] USB: OHCI: Fix definition overriding while registering Exynos OHCI driver

2013-01-07 Thread Alan Stern
On Mon, 7 Jan 2013, Sachin Kamat wrote: Exynos OHCI driver does not get registered if generic OHCI driver is also selected as the macro PLATFORM_DRIVER gets re-defined to 'ohci_platform_driver' instead of 'exynos_ohci_driver'. Hence define it separately. Also, silences the following

Re: [PATCH 22/25] usb/at91_udc: don't use [delayed_]work_pending()

2013-01-07 Thread Nicolas Ferre
On 12/22/2012 02:57 AM, Tejun Heo : There's no need to test whether a (delayed) work item in pending before queueing, flushing or cancelling it. Most uses are unnecessary and quite a few of them are buggy. Remove unnecessary pending tests from at91_udc. Only compile tested.

Re: [PATCH 2/2] USB: gadget: at91_adc: fix pullup pin validity check

2013-01-07 Thread Nicolas Ferre
On 12/23/2012 07:08 PM, Jean-Christophe PLAGNIOL-VILLARD : Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: linux-usb@vger.kernel.org --- drivers/usb/gadget/at91_udc.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH] usb: musb: ux500: use clk_prepare_enable and clk_disable_unprepare

2013-01-07 Thread Fabio Baltieri
This patch converts the module to use clk_prepare_enable and clk_disable_unprepare variants as required by common clock framework. Without this the system crash during probe function. Signed-off-by: Fabio Baltieri fabio.balti...@linaro.org --- drivers/usb/musb/ux500.c | 10 +- 1 file

Re: [PATCH v4 0/6] support other fsl SoCs with usbmisc + small fixes

2013-01-07 Thread Fabio Estevam
Hi Alexander, On Wed, Nov 28, 2012 at 12:52 AM, Peter Chen peter.c...@freescale.com wrote: I have tested it at i.mx6q sabrelite board, it works good. I have pushed your commit to my git, please cc me your coming chipidea patches, thanks. Alex, please add: Reviewed-by: Peter Chen

Re: [GIT PULL] USB fixes for v3.8-rc2

2013-01-07 Thread Greg KH
On Thu, Dec 13, 2012 at 04:58:36PM +0200, Felipe Balbi wrote: Hi Greg, Here's my first set of fixes for this -rc cycle. Let me know if you want any changes to this pull request. I'm basing it off of Linus' current master as there are no tags yet. If you want to wait until -rc1 is tagged,

Re: [Pull Request] usb-linus: USB core fixes for warm reset

2013-01-07 Thread Greg Kroah-Hartman
On Thu, Jan 03, 2013 at 02:28:08PM -0800, Sarah Sharp wrote: The following changes since commit a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565: Linux 3.8-rc1 (2012-12-21 17:19:00 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci.git

Re: [Pull Request] usb-next: Further warm reset improvements

2013-01-07 Thread Greg Kroah-Hartman
On Thu, Jan 03, 2013 at 02:28:30PM -0800, Sarah Sharp wrote: The following changes since commit c52804a472649b2e5005342308739434cbd51119: xhci: Avoid dead ports, add roothub port polling. (2013-01-03 14:10:29 -0800) are available in the git repository at:

Re: [PATCH v3 7/9] usb: add usb port auto power off mechanism

2013-01-07 Thread Alan Stern
On Sun, 6 Jan 2013, Lan Tianyu wrote: This patch is to add usb port auto power off mechanism. When usb device is suspending, usb core will suspend usb port and usb port runtime pm callback will clear PORT_POWER feature to power off port if all conditions were met. These conditions are remote

[RFC PATCH 0/6] DWC2 DesignWare HS OTG driver

2013-01-07 Thread Paul Zimmerman
Resending due to screwup in To: address line Hi Felipe, Ben, This is a host-mode driver for the Synopsys DesignWare HS OTG controller. This is the same controller whose peripheral mode is implemented by the existing s3c-hsotg driver. The idea is to add a dwc2/ directory alongside the existing

[RFC PATCH 0/6] DWC2 DesignWare HS OTG driver

2013-01-07 Thread Paul Zimmerman
Hi Felipe, Ben, This is a host-mode driver for the Synopsys DesignWare HS OTG controller. This is the same controller whose peripheral mode is implemented by the existing s3c-hsotg driver. The idea is to add a dwc2/ directory alongside the existing dwc3/ directory, initially to contain just

[RFC PATCH 4/6] PCI bus interface for the DWC2 driver

2013-01-07 Thread Paul Zimmerman
Signed-off-by: Paul Zimmerman pa...@synopsys.com --- drivers/usb/dwc2/pci.c | 591 1 files changed, 591 insertions(+), 0 deletions(-) create mode 100644 drivers/usb/dwc2/pci.c diff --git a/drivers/usb/dwc2/pci.c b/drivers/usb/dwc2/pci.c new

[RFC PATCH 3/6] HCD descriptor DMA support for the DWC2 driver

2013-01-07 Thread Paul Zimmerman
Signed-off-by: Paul Zimmerman pa...@synopsys.com --- drivers/usb/dwc2/hcd_ddma.c | 1168 +++ 1 files changed, 1168 insertions(+), 0 deletions(-) create mode 100644 drivers/usb/dwc2/hcd_ddma.c diff --git a/drivers/usb/dwc2/hcd_ddma.c

[RFC PATCH 5/6] Kconfig and Makefile for the DWC2 driver

2013-01-07 Thread Paul Zimmerman
Signed-off-by: Paul Zimmerman pa...@synopsys.com --- drivers/usb/dwc2/Kconfig | 25 + drivers/usb/dwc2/Makefile | 13 + 2 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 drivers/usb/dwc2/Kconfig create mode 100644

[PATCH 2/2] staging: usbip: replace the interrupt safe spinlocks with common ones.

2013-01-07 Thread Harvey Yang
Signed-off-by: Harvey Yang harvey.huawei.y...@gmail.com --- drivers/staging/usbip/vhci_hcd.c | 76 -- drivers/staging/usbip/vhci_rx.c | 10 ++--- drivers/staging/usbip/vhci_tx.c | 14 +++ 3 files changed, 42 insertions(+), 58 deletions(-) diff

[PATCH 0/2] staging: usbip: refine the lock

2013-01-07 Thread Harvey Yang
This patchset refines some spinlocks which maybe not used properly. [PATCH 1/2]: The function 'usbip_event_add()' may be called in interrupt context on the stub side: 'stub_complete'-'stub_enqueue_ret_unlink'-'usbip_event_add'. In this function it tries to get the lock 'ud-lock', so we should

Re: [PATCH 1/2] staging: usbip: use interrupt safe spinlock to avoid potential deadlock.

2013-01-07 Thread Greg Kroah-Hartman
On Tue, Jan 08, 2013 at 01:49:01PM +0800, Harvey Yang wrote: Signed-off-by: Harvey Yang harvey.huawei.y...@gmail.com You need to describe _why_ you did this, not just what you did. Why is this needed? What are you fixing by doing this? Is this something that older kernels need? Is it

Re: [PATCH 0/2] staging: usbip: refine the lock

2013-01-07 Thread Greg Kroah-Hartman
On Tue, Jan 08, 2013 at 01:49:00PM +0800, Harvey Yang wrote: This patchset refines some spinlocks which maybe not used properly. [PATCH 1/2]: The function 'usbip_event_add()' may be called in interrupt context on the stub side: 'stub_complete'-'stub_enqueue_ret_unlink'-'usbip_event_add'.

Re: [PATCH 11/16] usb/gadget: fix error path in uvc_function_bind()

2013-01-07 Thread Laurent Pinchart
Hi Bhupesh, On Tuesday 08 January 2013 12:00:43 Bhupesh SHARMA wrote: On Tuesday, January 08, 2013 2:13 AM Laurent Pinchart wrote: On Wednesday 31 October 2012 15:06:54 Felipe Balbi wrote: On Mon, Oct 22, 2012 at 10:15:05PM +0200, Sebastian Andrzej Siewior wrote: The video-minor = -1

Re: [PATCH v2 Resend 9/9] usb: add usb_device_allow_power_off() function.

2013-01-07 Thread Oliver Neukum
On Tuesday 08 January 2013 14:38:27 Lan Tianyu wrote: On 2013年01月07日 15:43, Oliver Neukum wrote: Please change the name. It looks like a contradiction in itself and would thereby almost beg for misuse. Hi Oliver: how about usb_device_control_power_off(struct usb_device *udev, bool