Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-05-28 Thread Pali Rohár
On Thursday 28 May 2015 18:34:31 Felipe Balbi wrote: On Thu, May 28, 2015 at 04:59:18PM +0200, Pali Rohár wrote: On Thursday 28 May 2015 16:51:07 Krzysztof Opasiak wrote: On 05/28/2015 04:31 PM, Pali Rohár wrote: On Thursday 28 May 2015 16:27:44 Krzysztof Opasiak wrote: On 05/28/2015

Re: USB Host Controller no PCD interrupt and CCS and CSC update on the device disconnect

2015-05-28 Thread Alan Stern
On Thu, 28 May 2015, Rong Wang wrote: Thanks for this Device side information. But there's one thing I'm still not quite sure What's the behavior of the USB device when the VBUS is always present while the D+/D- differential signal amplitude exceeds the disconnection threshold (525 mV)? I

Re: Disk access keeps causing serial/USB failures?

2015-05-28 Thread Alan Stern
On Thu, 28 May 2015, Marc MERLIN wrote: On Tue, May 19, 2015 at 10:56:39AM -0700, Marc MERLIN wrote: On Tue, May 19, 2015 at 01:21:30PM -0400, Alan Stern wrote: This strongly suggests that the problem lies in the hubs (or in one of them). Something caused a hub to disconnect, and when

Re: ehci_bus_suspend system halt

2015-05-28 Thread Alan Stern
On Thu, 28 May 2015, Michael Trimarchi wrote: Hi Alan we are working on a samsung exysnos5430 device and we have some problem during suspend. The only way to solve it seems this patch. We don't really know what could be the problem. Do you have any suggestion to debug it? diff --git

[PATCH v1] usb: dwc2: gadget: fix a memory use-after-free bug

2015-05-28 Thread Yunzhi Li
When s3c_hsotg_handle_unaligned_buf_complete() hs_req-req.buf already destroyed, in s3c_hsotg_unmap_dma(), it touches hs_req-req.dma again, so s3c_hsotg_unmap_dma() should be called before s3c_hsotg_handle_unaligned_buf_complete(). Otherwise, it will cause a bad_page BUG, when allocate this memory

Re: [PATCH 8/9] bus: brcmstb_gisb: Honor the big-endian and native-endian DT properties

2015-05-28 Thread Florian Fainelli
Le 11/25/14 16:49, Kevin Cernekee a écrit : On chips strapped for BE, we'll need to use ioread32be/iowrite32be instead of ioread32/iowrite32. Signed-off-by: Kevin Cernekee cerne...@gmail.com Applied to soc/next, thanks! -- Florian -- To unsubscribe from this list: send the line unsubscribe

[PATCH] drivers:usb:fsl: Fix compilation error for fsl ehci drv

2015-05-28 Thread Ramneek Mehresh
Fix compilation error in fsl ehci drv because ehci_reset() and ehci_adjust_port_wakeup_flags() were not exported, and are used when PM is enabled Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com --- drivers/usb/host/ehci-hcd.c | 3 ++- drivers/usb/host/ehci-hub.c | 3 ++-

RE: [PATCH v1] usb: dwc2: gadget: fix a memory use-after-free bug

2015-05-28 Thread Kaukab, Yousaf
-Original Message- From: Yunzhi Li [mailto:l...@rock-chips.com] Sent: Friday, May 29, 2015 1:22 PM To: johny...@synopsys.com Cc: he...@sntech.de; c...@rock-chips.com; h...@rock-chips.com; yk@rock- chips.com; gaura...@google.com; albe...@google.com; w...@rock-chips.com;

[PATCH v4 08/11] usbip: letting connection establishment replaceable

2015-05-28 Thread Nobuo Iwata
To introduce some application protocols like WebSocket, this patch allows to substitute connection establishment and termination. In combination with previous patch, both connection and transmission can be replaced. usbip_connection_operations_t includes open and close operation. Open method

[PATCH v4 07/11] usbip: letting send and receive replaceable

2015-05-28 Thread Nobuo Iwata
This patch allows to substitute send, receive and shutdown routines for both a) request/response PDUs among utilities and b) user space URBs transmission. usbip_sock_t is introduced instead of sockfd. it includes function pointers of send/receive/shutdown routines, an argument for the

[PATCH v4 06/11] usbip: readme about user space URBs transmission

2015-05-28 Thread Nobuo Iwata
Addition to README regarding user space URBs transmission. Signed-off-by: Nobuo Iwata nobuo.iw...@fujixerox.co.jp --- tools/usb/usbip/README | 22 ++ 1 file changed, 22 insertions(+) diff --git a/tools/usb/usbip/README b/tools/usb/usbip/README index 74f4afb..6b61da5 100644

Re: USB: OOPS 4.1.0-rc5-next-20150527 on boot usb-stick-plugged

2015-05-28 Thread Chris Ruehl
On Thu, May 28, 2015 at 11:15:47AM +0800, Chris Ruehl wrote: Hi, this is an other OOPS happen when the memory stick is plugged while boot its hits a problem in the usb_hub_wq. If you need more details please let me know. [6.258589] Unhandled fault: external abort on non-linefetch (0x008)

Re: [PATCH 9/9] usb: chipidea: update ci_otg_is_fsm_mode conditions

2015-05-28 Thread Peter Chen
On Thu, May 28, 2015 at 11:33:14AM +0800, Li Jun wrote: On Thu, May 28, 2015 at 09:37:47AM +0800, Peter Chen wrote: On Wed, May 27, 2015 at 07:50:09PM +0800, Li Jun wrote: After introduce usb otg properties, update ci_otg_is_fsm_mode conditions to be depending on both usb hardware

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-28 Thread Sudip Mukherjee
On Thu, May 28, 2015 at 12:54:59AM -0500, Felipe Balbi wrote: On Thu, May 28, 2015 at 11:09:38AM +0530, Sudip Mukherjee wrote: On Wed, May 27, 2015 at 08:21:16AM -0700, Greg KH wrote: On Wed, May 27, 2015 at 11:16:34AM -0400, Alan Stern wrote: On Wed, 27 May 2015, Heikki Krogerus wrote:

Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-05-28 Thread Pali Rohár
On Saturday 31 January 2015 10:53:30 Pali Rohár wrote: This patch adds removable mass storage support to g_nokia gadget (for N900). It means that at runtime block device can be exported or unexported. So it does not export anything by default and thus allows to use MyDocs partition as

ehci_bus_suspend system halt

2015-05-28 Thread Michael Trimarchi
Hi Alan we are working on a samsung exysnos5430 device and we have some problem during suspend. The only way to solve it seems this patch. We don't really know what could be the problem. Do you have any suggestion to debug it? diff --git a/drivers/usb/host/ehci-hub.c

Re: USB: OOPS 4.1.0-rc5-next-20150527 after lsusb -v

2015-05-28 Thread Chris Ruehl
On Thursday, May 28, 2015 01:51 PM, Felipe Balbi wrote: On Thu, May 28, 2015 at 11:10:47AM +0800, Chris Ruehl wrote: Hi, I'm port from 3.17 to 4.1-rc5 with imx27, Chipidea and ISP1504 When I plug a memory stick to the usb-port it do not detect so I used a lsusb -v call with triggers the

Re: [PATCH] usb: gadget: atmel: fix build warning

2015-05-28 Thread Nicolas Ferre
Le 26/05/2015 22:38, Felipe Balbi a écrit : This patch fixes the following build warning: drivers/usb/gadget/udc/atmel_usba_udc.c:707:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘dma_addr_t’ [-Wformat=] Signed-off-by: Felipe Balbi ba...@ti.com

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-28 Thread Sudip Mukherjee
On Thu, May 28, 2015 at 12:12:56PM +0530, Sudip Mukherjee wrote: On Thu, May 28, 2015 at 12:54:59AM -0500, Felipe Balbi wrote: On Thu, May 28, 2015 at 11:09:38AM +0530, Sudip Mukherjee wrote: On Wed, May 27, 2015 at 08:21:16AM -0700, Greg KH wrote: On Wed, May 27, 2015 at 11:16:34AM

Re: [PATCH v4 00/11] usbip: features to USB over WebSocket

2015-05-28 Thread Oliver Neukum
On Thu, 2015-05-28 at 14:56 +0900, Nobuo Iwata wrote: Dear all, This series of patches introduces WebSocket to USB/IP. Hi, how do you avoid deadlocking under memory pressure? It seems to me that under these semantics you can no longer guarantee GFP_NOIO if usb-storage or UAS are used,

Re: USB: OOPS 4.1.0-rc5-next-20150527 on boot usb-stick-plugged

2015-05-28 Thread Chris Ruehl
On Thu, May 28, 2015 at 11:15:47AM +0800, Chris Ruehl wrote: Hi, this is an other OOPS happen when the memory stick is plugged while boot its hits a problem in the usb_hub_wq. If you need more details please let me know. [6.258589] Unhandled fault: external abort on non-linefetch (0x008)

[PATCH v4 10/11] usbip: added const qualifier to arguments of some functions

2015-05-28 Thread Nobuo Iwata
This patch adds 'const' qualifier to 'char*' arguments of library interfaces to make acceptable std::string.c_str(). Essentially, these qualifiers are better to be used even if not to use C++. Although, I just added to functions related to previous patch. Also, it changes C++ reserved words

[PATCH v4 09/11] usbip: deriving functions as libraries

2015-05-28 Thread Nobuo Iwata
To utilize core parts of USB/IP to application protocol implementations, this patch derives libraries by exposing some functions of utilities and removing some unnecessary portions. Following functions are exposed. For command: - usbip_attach_device() - usbip_detach_port() - usbip_bind_device()

[PATCH v4 11/11] usbip: USB over WebSocket

2015-05-28 Thread Nobuo Iwata
This patch adds utilities transmit packets via WebSocket protocol. WebSocket version of utilities as following. usbws : command usbwsa : application-side daemon usbwsd : device-side daemon The command supports all sub-command (ie. list, connect, disconnect, port, bind, unbind, attach and

Re: USB Host Controller no PCD interrupt and CCS and CSC update on the device disconnect

2015-05-28 Thread Rong Wang
Hi Alan, On Tue, May 26, 2015 at 11:32 PM, Alan Stern st...@rowland.harvard.edu wrote: On Tue, 26 May 2015, Rong Wang wrote: It seems that your customer wants to change the hardware, not the software. Yes. We plan to do a hardware modification. But we want to make as little change as

[PATCH v2] usb: gadget: dbgp: Supply config descriptor and accept set config command.

2015-05-28 Thread Vladimir 'φ-coder/phcoder' Serbinenko
commit 6d1e47017e322b09ee3c0d42e7c05babfc2a4cc7 Author: Vladimir Serbinenko phco...@gmail.com Date: Tue May 26 21:35:06 2015 +0200 dbgp: Supply config descriptor and accept set config command. This descriptor and commands are part of core USB specification and every USB device

RE: [PATCH v4 00/11] usbip: features to USB over WebSocket

2015-05-28 Thread fx IWATA NOBUO
Hi, how do you avoid deadlocking under memory pressure? It seems to me that under these semantics you can no longer guarantee GFP_NOIO if usb-storage or UAS are used, because you have no control over memory allocations user space makes. Sorry, I haven't cared the case. I found GFP_NOIO

DWC3 linux driver query

2015-05-28 Thread sundeep subbaraya
Hi Felipe and Paul, I am seeing an issue while testing iperf for USB ethernet gadget with dwc3 controller in 2.0 mode. After debugging I figured out that: 1. Network gadget queues say 3 requests. (for IN endpoint) 2. It turns out with req.no_interrupt flag, DWC3 driver issues START_TRANSFER

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-28 Thread Sasha Levin
On 05/28/2015 01:39 AM, Sudip Mukherjee wrote: diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 4eabfe2..1acae5b 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -150,6 +150,11 @@ int driver_register(struct device_driver *drv) int ret; struct

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-28 Thread Heikki Krogerus
On Thu, May 28, 2015 at 08:36:46AM -0400, Sasha Levin wrote: On 05/28/2015 01:39 AM, Sudip Mukherjee wrote: diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 4eabfe2..1acae5b 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -150,6 +150,11 @@ int

Re: USB: OOPS 4.1.0-rc5-next-20150527 on boot usb-stick-plugged

2015-05-28 Thread Felipe Balbi
On Thu, May 28, 2015 at 03:43:23PM +0800, Chris Ruehl wrote: On Thu, May 28, 2015 at 11:15:47AM +0800, Chris Ruehl wrote: Hi, this is an other OOPS happen when the memory stick is plugged while boot its hits a problem in the usb_hub_wq. If you need more details please let me know. [

Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-05-28 Thread Krzysztof Opasiak
On 05/28/2015 09:47 AM, Pali Rohár wrote: On Saturday 31 January 2015 10:53:30 Pali Rohár wrote: This patch adds removable mass storage support to g_nokia gadget (for N900). It means that at runtime block device can be exported or unexported. So it does not export anything by default and thus

Re: Disk access keeps causing serial/USB failures?

2015-05-28 Thread Marc MERLIN
On Tue, May 19, 2015 at 10:56:39AM -0700, Marc MERLIN wrote: On Tue, May 19, 2015 at 01:21:30PM -0400, Alan Stern wrote: This strongly suggests that the problem lies in the hubs (or in one of them). Something caused a hub to disconnect, and when that happened all of the serial ports

[PATCH] usb: phy: add static inline wrapper for devm_usb_get_phy_by_node

2015-05-28 Thread Arnd Bergmann
The newly introduced devm_usb_get_phy_by_node function only has an extern declaration, but no alternative for the case that CONFIG_USB_PHY is disabled, which leads to a build error when it is used anyway: drivers/power/twl4030_charger.c: In function 'twl4030_bci_probe':

Re: DWC3 linux driver query

2015-05-28 Thread Felipe Balbi
Hi, On Thu, May 28, 2015 at 04:53:09PM +0530, sundeep subbaraya wrote: Hi Felipe and Paul, btw, Paul has left Synopys :-) I am seeing an issue while testing iperf for USB ethernet gadget with dwc3 controller in 2.0 mode. After debugging I figured out that: 1. Network gadget queues say 3

Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-05-28 Thread Pali Rohár
On Thursday 28 May 2015 16:27:44 Krzysztof Opasiak wrote: On 05/28/2015 09:47 AM, Pali Rohár wrote: On Saturday 31 January 2015 10:53:30 Pali Rohár wrote: This patch adds removable mass storage support to g_nokia gadget (for N900). It means that at runtime block device can be exported or

Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-05-28 Thread Krzysztof Opasiak
On 05/28/2015 04:31 PM, Pali Rohár wrote: On Thursday 28 May 2015 16:27:44 Krzysztof Opasiak wrote: On 05/28/2015 09:47 AM, Pali Rohár wrote: On Saturday 31 January 2015 10:53:30 Pali Rohár wrote: This patch adds removable mass storage support to g_nokia gadget (for N900). It means that

Re: [PATCH 1/1] usb: Remove Vernier devices from lsusb and hid_ignore_list

2015-05-28 Thread Jiri Kosina
On Thu, 21 May 2015, Dennis O'Brien wrote: From: Dennis O'Brien dennis.obr...@eqware.net Removes Vernier Software Technology devices from the ldusb driver and the hid_ignore_list table of the usbhid driver in the Linux tree. These devices will now be supported via the hidraw driver. A

Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-05-28 Thread Pali Rohár
On Thursday 28 May 2015 16:51:07 Krzysztof Opasiak wrote: On 05/28/2015 04:31 PM, Pali Rohár wrote: On Thursday 28 May 2015 16:27:44 Krzysztof Opasiak wrote: On 05/28/2015 09:47 AM, Pali Rohár wrote: On Saturday 31 January 2015 10:53:30 Pali Rohár wrote: This patch adds removable mass

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-28 Thread Greg KH
On Thu, May 28, 2015 at 11:09:38AM +0530, Sudip Mukherjee wrote: On Wed, May 27, 2015 at 08:21:16AM -0700, Greg KH wrote: On Wed, May 27, 2015 at 11:16:34AM -0400, Alan Stern wrote: On Wed, 27 May 2015, Heikki Krogerus wrote: Maybe we need to test for this in the driver core, not

Re: [PATCH 1/1] usb: Remove Vernier devices from lsusb and hid_ignore_list

2015-05-28 Thread Greg KH
On Thu, May 28, 2015 at 04:58:54PM +0200, Jiri Kosina wrote: On Thu, 21 May 2015, Dennis O'Brien wrote: From: Dennis O'Brien dennis.obr...@eqware.net Removes Vernier Software Technology devices from the ldusb driver and the hid_ignore_list table of the usbhid driver in the Linux

Re: [PATCH] usb: gadget: nokia: Add mass storage driver to g_nokia

2015-05-28 Thread Felipe Balbi
On Thu, May 28, 2015 at 04:59:18PM +0200, Pali Rohár wrote: On Thursday 28 May 2015 16:51:07 Krzysztof Opasiak wrote: On 05/28/2015 04:31 PM, Pali Rohár wrote: On Thursday 28 May 2015 16:27:44 Krzysztof Opasiak wrote: On 05/28/2015 09:47 AM, Pali Rohár wrote: On Saturday 31

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-28 Thread Alan Stern
On Thu, 28 May 2015, Felipe Balbi wrote: On Thu, May 28, 2015 at 11:09:38AM +0530, Sudip Mukherjee wrote: On Wed, May 27, 2015 at 08:21:16AM -0700, Greg KH wrote: On Wed, May 27, 2015 at 11:16:34AM -0400, Alan Stern wrote: On Wed, 27 May 2015, Heikki Krogerus wrote: Maybe we need