[PATCH 4/7] staging: usbip: add option for usbipd to save its process id.

2013-07-08 Thread Anthony Foiani
Introduce option -P / --pid to request that usbipd save its PID to a file while running. Signed-Off-By: Anthony Foiani anthony.foi...@gmail.com --- drivers/staging/usbip/userspace/src/usbipd.c | 38 +++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git

[PATCH 1/7] staging: usbip: clean up checkpatch warnings in usbipd.c

2013-07-08 Thread Anthony Foiani
A few whitespace changes allows the file to pass checkpatch --strict (other than ignoring the CamelCase derived from the USB standard.) Signed-Off-By: Anthony Foiani anthony.foi...@gmail.com --- drivers/staging/usbip/userspace/src/usbipd.c | 31 ++-- 1 file changed, 16

[PATCH 0/7] staging: usbip: features and a tiny fix

2013-07-08 Thread Anthony Foiani
In the course of adapting the USBIP tools to our project, I added a few features: * Configure TCP/IP port number * Save process id of 'usbipd' I did some minor cleaning along the way: some checkpatch, later to repair alignments broken while adding new options. Finally, the log option was not

[PATCH 3/7] staging: usbip: improve error reporting

2013-07-08 Thread Anthony Foiani
Give useful error messages when we can't create server sockets. Signed-Off-By: Anthony Foiani anthony.foi...@gmail.com --- drivers/staging/usbip/userspace/src/usbipd.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git

[PATCH 5/7] staging: usbip: set server port via option.

2013-07-08 Thread Anthony Foiani
Add an option -p / --port to specify the TCP port to listen on. Signed-Off-By: Anthony Foiani anthony.foi...@gmail.com --- drivers/staging/usbip/userspace/src/usbip.c| 9 +-- .../staging/usbip/userspace/src/usbip_network.c| 30 ++

[PATCH 6/7] staging: usbip: properly handle -l / --log option

2013-07-08 Thread Anthony Foiani
This option is checked for, and is in the long options list, but the optstring didn't include it. Signed-Off-By: Anthony Foiani anthony.foi...@gmail.com --- drivers/staging/usbip/userspace/src/usbip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 7/7] staging: usbip: fix up alignment in long options list

2013-07-08 Thread Anthony Foiani
Re-align the option lists. Signed-Off-By: Anthony Foiani anthony.foi...@gmail.com --- drivers/staging/usbip/userspace/src/usbip.c | 6 +++--- drivers/staging/usbip/userspace/src/usbipd.c | 10 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 2/7] staging: usbip: use local variable while setting up socket

2013-07-08 Thread Anthony Foiani
Using a simple integer makes the code easier to read and removes the need to blank out array elements in case of errors. Signed-Off-By: Anthony Foiani anthony.foi...@gmail.com --- drivers/staging/usbip/userspace/src/usbipd.c | 27 --- 1 file changed, 12 insertions(+), 15

[PATCH 1/1] usb: chipidea: fix the build error with randconfig

2013-07-08 Thread Peter Chen
Using below configs, the compile will have error: ERROR: ehci_init_driver undefined! .config: CONFIG_USB_CHIPIDEA=m CONFIG_USB_CHIPIDEA_HOST=y CONFIG_USB_CHIPIDEA_DEBUG=y The reason is chipidea host uses symbol from ehci, but ehci is not compiled. Let the chipidea host depend on ehci even it is

Re: [PATCH v3 4/4] USB: OMAP1: Tahvo USB transceiver driver

2013-07-08 Thread Felipe Balbi
Hi, On Tue, Jun 18, 2013 at 08:07:01PM +0300, Aaro Koskinen wrote: +static ssize_t vbus_state_show(struct device *device, +struct device_attribute *attr, char *buf) +{ + struct tahvo_usb *tu = dev_get_drvdata(device); + return sprintf(buf, %d\n,

Re: [PATCH] jacinto6 : usb3_phy: Updated dpll M,N values.

2013-07-08 Thread Felipe Balbi
On Fri, Jun 21, 2013 at 10:46:10AM -0500, Ruchika Kharwar wrote: Addition of the M and N recommended values for the USB3 PHY DPLL. Sysclk for DRA7xx is 20MHz. This yields: Clk = 20MHz * M/(N+1) = 20MHz * 1000 /(7+1) = 2.5 Ghz Signed-off-by: Nikhil Devshatwar nikhil...@ti.com Signed-off-by:

Re: [PATCH 1/4] usb: gadget: s3c-hsotg: Allow driver instantiation using device tree

2013-07-08 Thread Felipe Balbi
Hi, On Tue, Jun 25, 2013 at 05:38:23PM +0200, Tomasz Figa wrote: This patch adds OF match table to the driver to allow instantiating it using device tree. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com I will take this one only, the

[PATCH 2/2] usb: host: delete chipidea dependency

2013-07-08 Thread Peter Chen
Now, chipidea host has already depended on USB_EHCI_HCD Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/host/Kconfig |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 7d0aa5f..79b4503 100644

[PATCH 1/2] usb: chipidea: kconfig: using USB_EHCI_HCD instead of USB for dependency

2013-07-08 Thread Peter Chen
Chipidea controller is an EHCI compatible controller, with current kconfig, even CONIFG_USB_EHCI_HCD is not chosen, but CONFIG_USB is there, the chipidea code still will be compiled, in fact, it is useless. Signed-off-by: Peter Chen peter.c...@freescale.com --- drivers/usb/chipidea/Kconfig |

Re: musb: dsps: make it work with two instances

2013-07-08 Thread Sebastian Andrzej Siewior
On 07/06/2013 11:39 PM, Ezequiel Garcia wrote: Hi Sebastian, Hello Ezequiel, On Fri, Jul 5, 2013 at 10:32 AM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: This enables the two musb instances on am335x to work. I like a lot the idea of splitting the DT representation of the two

Re: [RFC 1/2] usb/musb dma: add cppi41 dma driver

2013-07-08 Thread Sebastian Andrzej Siewior
On 07/07/2013 04:55 PM, Sergei Shtylyov wrote: Hello. Hello Sergei, On 05-07-2013 20:12, Sebastian Andrzej Siewior wrote: This is a first shot of the cppi41 DMA driver. Where have you been when I submitted my drivers back in 2009? :-) Not here it seems :) There is a driver I got

[PATCH] Urgent fix for configfs-based RNDIS build

2013-07-08 Thread Andrzej Pietrasiewicz
Hello Greg, The USB_CONFIGFS_RNDIS depends on USB_U_RNDIS but does not select it. The patch fixes it. It was detected by Fengguag Wu's kbuild test robot. Thank you, Fengguang Wu! Sorry about the problem, Regards, Andrzej Andrzej Pietrasiewicz (1): usb/gadget: Kconfig: Fix configfs-based

[PATCH] usb/gadget: Kconfig: Fix configfs-based RNDIS function build

2013-07-08 Thread Andrzej Pietrasiewicz
USB_CONFIGFS_RNDIS depends on USB_U_RNDIS. Select it. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH 5/5] usb: musb: dsps: Remove the phy control from glue and add phy driver APIs

2013-07-08 Thread George Cherian
Remove usb phy control module access from platform glue. The same is now done using am phy driver and phy-omap-control. Signed-off-by: George Cherian george.cher...@ti.com --- drivers/usb/musb/musb_dsps.c | 105 +++ 1 file changed, 36 insertions(+), 69

[PATCH 0/5] Add phy support for AM335X platform using Generic PHy framework

2013-07-08 Thread George Cherian
This patch series adds phy support for AM335X platform. This patch series is based on Generic PHY framework [1]. This series has - adds dual musb instances support for am335x platform (just for testing) - adds phy-am-usb driver used in AM platforms - adds dt

[PATCH 1/5] usb: musb: dsps: enable dual instance support for am33xx platform

2013-07-08 Thread George Cherian
From: Ravi Babu ravib...@ti.com The dsps am33xx platform has two instances of musb controller, enable the support for dual musb instances Signed-off-by: Ravi Babu ravib...@ti.com --- drivers/usb/musb/musb_dsps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 4/5] arm: dts: Add USB phy nodes for AM33XX

2013-07-08 Thread George Cherian
Add DT bindings of phy nodes for AM33XX platform. Signed-off-by: George Cherian george.cher...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 8e1248f..4f3cca0

[PATCH 2/5] usb: phy: phy-omap-control: Add API to power on/off USB PHY for AM335X

2013-07-08 Thread George Cherian
Add API to power on/off USB PHY for AM335X. This API will be called from phy-am-usb driver. Signed-off-by: George Cherian george.cher...@ti.com --- drivers/usb/phy/phy-omap-control.c | 32 include/linux/usb/omap_control_usb.h | 11 +++ 2 files

[PATCH 3/5] phy: phy-amxxxx-usb: Add PHY driver for amxxxx platform

2013-07-08 Thread George Cherian
Adds phy driver support for am33xx platform, the host/device peripheral controller shall get this phy object to control the phy operations. Signed-off-by: George Cherian george.cher...@ti.com --- drivers/phy/Kconfig | 12 +++ drivers/phy/Makefile | 1 +

[PATCH] musb: omap: Fix: pass all the resources to musb core

2013-07-08 Thread Kishon Vijay Abraham I
commit 09fc7d (usb: musb: fix incorrect usage of resource pointer) assumes musb core will always have only 2 resources. But for OMAP platforms there can be 3 resources (2 irq resource and 1 iomem resource). Fixed it here. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com ---

[PATCH v2 2/4] usb: phy: add a new API to get PHY ref by label

2013-07-08 Thread Kishon Vijay Abraham I
After the devices are created using PLATFORM_DEVID_AUTO, devm_usb_get_phy_dev and usb_get_phy_dev can't be used reliably as it relies on the device_names passed in usb_bind_phy. So added a new API to get the PHY reference by PHY label (PHY label should be filled which creating the PHY).

[PATCH v2 3/4] usb: musb: omap: use the new API to get PHY reference by label

2013-07-08 Thread Kishon Vijay Abraham I
After the devices are created using PLATFORM_DEVID_AUTO, devm_usb_get_phy_dev and usb_get_phy_dev can't be used reliably as it relies on the device_names passed in usb_bind_phy. So used the new API devm_usb_get_phy_by_name to get the PHY reference. Signed-off-by: Kishon Vijay Abraham I

[PATCH v2 4/4] arm: omap: remove using usb_bind_phy for binding musb and phy

2013-07-08 Thread Kishon Vijay Abraham I
Now that MUSB for OMAP started using devm_usb_get_phy_by_name which does not require PHY library to already have the binding information, removed usb_bind_phy calls that binds the MUSB controller with the PHY from the board files. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Acked-by:

[PATCH v2 0/4] usb: musb: fix USB enumeration issue in OMAP3 platform

2013-07-08 Thread Kishon Vijay Abraham I
This series fixes the USB enumeration issue caused because of the controller not able to get a reference to the PHY because of incorrect binding in the board file. In the case of non-dt boot, the platform specific initialization file (board file) will do usb_bind_phy that binds the usb controller

[PATCH v2 1/4] arm: omap: Add phy binding info for musb in plat data

2013-07-08 Thread Kishon Vijay Abraham I
In order for controllers to get PHY in case of non dt boot, the phy binding information (phy label) should be added in the platform data of the controller. Signed-off-by: Kishon Vijay Abraham I kis...@ti.com Acked-by: Felipe Balbi ba...@ti.com Tested-by: Tomi Valkeinen tomi.valkei...@ti.com ---

Re: [PATCH 2/5] usb: phy: phy-omap-control: Add API to power on/off USB PHY for AM335X

2013-07-08 Thread Kishon Vijay Abraham I
Hi, On Monday 08 July 2013 04:13 PM, George Cherian wrote: Add API to power on/off USB PHY for AM335X. This API will be called from phy-am-usb driver. Signed-off-by: George Cherian george.cher...@ti.com --- drivers/usb/phy/phy-omap-control.c | 32

Re: [PATCH 3/5] phy: phy-amxxxx-usb: Add PHY driver for amxxxx platform

2013-07-08 Thread Kishon Vijay Abraham I
Hi, On Monday 08 July 2013 04:13 PM, George Cherian wrote: Adds phy driver support for am33xx platform, the host/device peripheral controller shall get this phy object to control the phy operations. Signed-off-by: George Cherian george.cher...@ti.com --- drivers/phy/Kconfig | 12

Re: [PATCH 4/5] arm: dts: Add USB phy nodes for AM33XX

2013-07-08 Thread Kishon Vijay Abraham I
Hi, On Monday 08 July 2013 04:13 PM, George Cherian wrote: Add DT bindings of phy nodes for AM33XX platform. Signed-off-by: George Cherian george.cher...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git

Re: [PATCH 5/5] usb: musb: dsps: Remove the phy control from glue and add phy driver APIs

2013-07-08 Thread Kishon Vijay Abraham I
Hi, On Monday 08 July 2013 04:13 PM, George Cherian wrote: Remove usb phy control module access from platform glue. The same is now done using am phy driver and phy-omap-control. Signed-off-by: George Cherian george.cher...@ti.com --- drivers/usb/musb/musb_dsps.c | 105

Re: [PATCH] musb: omap: Fix: pass all the resources to musb core

2013-07-08 Thread Sergei Shtylyov
Hello. On 08-07-2013 14:55, Kishon Vijay Abraham I wrote: commit 09fc7d (usb: musb: fix incorrect usage of resource pointer) assumes musb core will always have only 2 resources. But for OMAP platforms there can be 3 resources (2 irq resource and 1 iomem resource). Fixed it here.

question on skel_read func of usb_skeleton.c‏

2013-07-08 Thread 汪辰
hi, I'm reading latest usb_skeleton.c sample and compared with that with ldd3 book. Looks like the skel_read changed a lot against previous version. Why we now not use usb_bulk_msg, just due to we want to get chance to cancel the urb if any unexpected exit? Also in current skel_read function, I

Re: Audio I/O parameters

2013-07-08 Thread James Stone
On Sat, Jul 6, 2013 at 9:39 PM, James Stone jamesmst...@gmail.com wrote: On Sat, Jul 6, 2013 at 9:36 PM, James Stone jamesmst...@gmail.com wrote: On Sat, Jul 6, 2013 at 3:41 PM, Alan Stern st...@rowland.harvard.edu wrote: On Sat, 6 Jul 2013, James Stone wrote: The output when I try to start

Re: question on skel_read func of usb_skeleton.c‏

2013-07-08 Thread Oliver Neukum
On Monday 08 July 2013 13:09:05 汪辰 wrote: hi, I'm reading latest usb_skeleton.c sample and compared with that with ldd3 book. Looks like the skel_read changed a lot against previous version. Why we now not use usb_bulk_msg, just due to we want to get chance to cancel the urb if any

Re: [PATCH] jacinto6 : usb3_phy: Updated dpll M,N values.

2013-07-08 Thread Ruchika Kharwar
On 07/08/2013 02:28 AM, Felipe Balbi wrote: On Fri, Jun 21, 2013 at 10:46:10AM -0500, Ruchika Kharwar wrote: Addition of the M and N recommended values for the USB3 PHY DPLL. Sysclk for DRA7xx is 20MHz. This yields: Clk = 20MHz * M/(N+1) = 20MHz * 1000 /(7+1) = 2.5 Ghz Signed-off-by: Nikhil

Re: [PATCH] usb/gadget: Kconfig: Fix configfs-based RNDIS function build

2013-07-08 Thread Greg Kroah-Hartman
On Mon, Jul 08, 2013 at 11:18:16AM +0200, Andrzej Pietrasiewicz wrote: USB_CONFIGFS_RNDIS depends on USB_U_RNDIS. Select it. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/usb/gadget/Kconfig |1 + 1 files

Re: [xhci] null pointer dereference on ring_doorbell_for_active_rings

2013-07-08 Thread Sarah Sharp
On Sat, Jul 06, 2013 at 11:13:15AM +0200, Oleksij Rempel wrote: Hi Sarah, thanks you or who ever fixed this issue. With latest wireless-testing i can't reproduce my crash any more. Instead i get this messages: What kernel is your wireless-testing branch based on? It would be nice to know

Re: [PATCH 1/2] USB: OHCI: make ohci-ep93xx a separate driver

2013-07-08 Thread Alan Stern
On Mon, 8 Jul 2013, Manjunath Goudar wrote: @@ -79,7 +93,10 @@ static int usb_hcd_ep93xx_probe(const struct hc_driver *driver, ep93xx_start_hc(pdev-dev); - ohci_hcd_init(hcd_to_ohci(hcd)); + ohci = hcd_to_ohci(hcd); + ohci-next_statechange = jiffies; +

[PATCH 01/01] Drivers: MMB and PI ZigBee USB Device Support in cp210x.c

2013-07-08 Thread Sami Rahman
From: Sami Rahman sami.rah...@mmbresearch.com Kernel Version: 3.5.0-34-generic Added support for MMB Networks and Planet Innovation Ingeni ZigBee USB devices using customized Silicon Labs' CP210x.c USB to UART bridge drivers with PIDs: 88A4, 88A5. Signed-off-by: Sami Rahman

Re: [PATCH 2/2] USB: OHCI: make ohci-pxa27x a separate driver

2013-07-08 Thread Alan Stern
On Mon, 8 Jul 2013, Manjunath Goudar wrote: Several aspects of this are strange. For example, consider how you used the private part of the ohci_hcd structure and how the variable names are inconsistent with the other OHCI glue drivers. Here we are considering private date like clk

Re: [PATCH v3 4/4] USB: OMAP1: Tahvo USB transceiver driver

2013-07-08 Thread Aaro Koskinen
Hi, On Mon, Jul 08, 2013 at 10:21:09AM +0300, Felipe Balbi wrote: On Tue, Jun 18, 2013 at 08:07:01PM +0300, Aaro Koskinen wrote: +static ssize_t vbus_state_show(struct device *device, + struct device_attribute *attr, char *buf) +{ + struct tahvo_usb *tu =

Re: [PATCH 0/5] Add phy support for AM335X platform using Generic PHy framework

2013-07-08 Thread Sebastian Andrzej Siewior
On 07/08/2013 12:43 PM, George Cherian wrote: This patch series adds phy support for AM335X platform. This patch series is based on Generic PHY framework [1]. This series has - adds dual musb instances support for am335x platform (just for testing) - adds phy-am-usb

Re: [PATCH 0/5] Add phy support for AM335X platform using Generic PHy framework

2013-07-08 Thread Ezequiel Garcia
Hi, On Mon, Jul 08, 2013 at 09:44:33PM +0200, Sebastian Andrzej Siewior wrote: We need two nodes each one with a glue layer and a musb child node. The instances crap in kernel has to vanish. Also that means your phy nodes are wrong. This is not musb with two ports but two musb instances each

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-07-08 Thread Marek Vasut
Hi Peter, -Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Sunday, July 07, 2013 9:10 AM To: Chen Peter-B29397 Cc: shawn@linaro.org; Michael Grzeschik; maxime.ripard@free- electrons.com; Hector Palacios; linux-usb@vger.kernel.org; s.ha...@pengutronix.de;

RE: [PATCH] staging: dwc2: fix thinko in dwc2_hc_set_even_odd_frame()

2013-07-08 Thread Paul Zimmerman
From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Tuesday, July 02, 2013 7:41 PM On 07/02/2013 07:47 PM, Stephen Warren wrote: On 06/26/2013 02:20 PM, Paul Zimmerman wrote: ... I hope whoever is supporting the Pi in the mainline kernel will try adding dwc2 support now that it

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-07-08 Thread Chen Peter-B29397
-Original Message- From: Marek Vasut [mailto:ma...@denx.de] Sent: Sunday, July 07, 2013 9:10 AM To: Chen Peter-B29397 Cc: shawn@linaro.org; Michael Grzeschik; maxime.ripard@free- electrons.com; Hector Palacios; linux-usb@vger.kernel.org; s.ha...@pengutronix.de;

Re: [PATCH 4/7] staging: usbip: add option for usbipd to save its process id.

2013-07-08 Thread Anthony Foiani
Anthony Foiani anthony.foi...@gmail.com writes: Introduce option -P / --pid to request that usbipd save its PID to a file while running. I've already spotted one problem with this patch: + write_pid_file(pid_file); rc = do_standalone_mode(daemonize); +

Re: [PATCH 5/7] staging: usbip: set server port via option.

2013-07-08 Thread Anthony Foiani
Anthony Foiani anthony.foi...@gmail.com writes: Add an option -p / --port to specify the TCP port to listen on. This is unfortunate, as port is also used to indicate which usbip port is in use by a particular connection. So I might change this to -t / --tcp-port in v2. It's not a fatal flaw,

Re: Video corruption varies by system load

2013-07-08 Thread Ming Lei
On Mon, Jul 8, 2013 at 9:39 AM, Devin Heitmueller dheitmuel...@kernellabs.com wrote: Hi Alan, Thanks for taking the time to provide feedback. I'm just noticing now that I left off the subject line, which all the more reason makes me thankful that you bothered to read an email with as

Re: [RFC v3] xhci: fix dma mask setup in xhci.c

2013-07-08 Thread Sarah Sharp
Felipe, Andy, and Seb, I have a couple questions below. On Fri, Jul 05, 2013 at 08:24:56PM +0300, Xenia Ragiadakou wrote: The function dma_set_mask() tests internally whether the dma_mask pointer for the device is initialized and fails if the dma_mask pointer is NULL. On pci platforms, the

Re: [PATCH 0/5] Add phy support for AM335X platform using Generic PHy framework

2013-07-08 Thread George Cherian
On 7/9/2013 1:14 AM, Sebastian Andrzej Siewior wrote: On 07/08/2013 12:43 PM, George Cherian wrote: This patch series adds phy support for AM335X platform. This patch series is based on Generic PHY framework [1]. This series has - adds dual musb instances support for am335x platform

[PATCH] usb: renesas_usbhs: gadget: remove extra check on udc_stop

2013-07-08 Thread Kuninori Morimoto
usb_gadget_ops :: udc_stop might be called with driver = NULL since 511f3c5326eabe1ece35202a404c24c0aeacc246 (usb: gadget: udc-core: fix a regression during gadget driver unbinding) Because of that, 2nd times insmod goes fail. This patch fixes it up. Reported-by: Yusuke Goda