[PATCH/RFC] usb: dwc2: awake rt305x USB controller

2018-07-20 Thread John Crispin
From: Serge Vasilugin The Ralink uboot sets the USB controller into sleep mode. This patch checks this condition and awakes controller before any register access. Signed-off-by: Serge Vasilugin Signed-off-by: John Crispin --- Hi, we have been carrying this patch inside OpenWrt for half a decad

Re: [PATCH] usb: gadget: f_fs: Only return delayed status when len is 0

2018-07-20 Thread Greg Kroah-Hartman
On Thu, Jul 19, 2018 at 08:48:32AM +0300, Felipe Balbi wrote: > > Hi, > > Jerry Zhang writes: > > Commit 1b9ba000 ("Allow function drivers to pause control > > transfers") states that USB_GADGET_DELAYED_STATUS is only > > supported if data phase is 0 bytes. > > > > It seems that when the length

Re: [PATCH] usb: core: handle hub C_PORT_OVER_CURRENT condition

2018-07-20 Thread Alan Stern
On Thu, 19 Jul 2018, Bin Liu wrote: > Based on USB2.0 Spec Section 11.12.5, > > "If a hub has per-port power switching and per-port current limiting, > an over-current on one port may still cause the power on another port > to fall below specific minimums. In this case, the affected port is

[PATCH 1/1] usb: xhci: Fix memory leak in xhci_endpoint_reset()

2018-07-20 Thread Mathias Nyman
From: Zheng Xiaowei If td_list is not empty the cfg_cmd will not be freed, call xhci_free_command to free it. Signed-off-by: Zheng Xiaowei Cc: Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/ho

[PATCH 0/1] xhci fix for usb-linus

2018-07-20 Thread Mathias Nyman
Hi Greg Thanks for picking up xhci patches while I've been away This one small fix could be added to usb-linus still. -Mathias Zheng Xiaowei (1): usb: xhci: Fix memory leak in xhci_endpoint_reset() drivers/usb/host/xhci.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 -- To unsubscribe f

we provide editing

2018-07-20 Thread Scott
Hi, We provide image editing services like - photo cut out; photo clipping path; photo masking; photo shadow creation; photo color correction; photo retouching; beauty model retouching on skin, face, body; glamour retouching; products retouching and other image editing. We are also offering to d

[PATCH v1 1/2] dwc3: Describe 'wakeup_work' field of struct dwc3_pci

2018-07-20 Thread Andy Shevchenko
Describe 'wakeup_work' field of struct dwc3_pci to avoid a warning: drivers/usb/dwc3/dwc3-pci.c:59: warning: Function parameter or member 'wakeup_work' not described in 'dwc3_pci' Signed-off-by: Andy Shevchenko --- drivers/usb/dwc3/dwc3-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH v1 2/2] dwc3: Supply device properties via driver data

2018-07-20 Thread Andy Shevchenko
For now all PCI enumerated dwc3 devices require some properties to be present. This allows us to unconditionally append them and supply via driver_data. No functional change intended. Signed-off-by: Andy Shevchenko --- drivers/usb/dwc3/dwc3-pci.c | 145 +++- 1 fi

[GIT PULL] USB-serial updates for v4.19-rc1

2018-07-20 Thread Johan Hovold
The following changes since commit 7daf201d7fe8334e2d2364d4e8ed3394ec9af819: Linux 4.18-rc2 (2018-06-24 20:54:29 +0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git tags/usb-serial-4.19-rc1 for you to fetch changes up to c8acf

Re: [GIT PULL] USB-serial updates for v4.19-rc1

2018-07-20 Thread Greg Kroah-Hartman
On Fri, Jul 20, 2018 at 06:56:11PM +0200, Johan Hovold wrote: > The following changes since commit 7daf201d7fe8334e2d2364d4e8ed3394ec9af819: > > Linux 4.18-rc2 (2018-06-24 20:54:29 +0800) > > are available in the Git repository at: > > https://git.kernel.org/pub/scm/linux/kernel/git/johan/us

we provide editing

2018-07-20 Thread Scott
Hi, We provide image editing services like - photo cut out; photo clipping path; photo masking; photo shadow creation; photo color correction; photo retouching; beauty model retouching on skin, face, body; glamour retouching; products retouching and other image editing. We are also offering to d

[PATCH] usbip: Fix misuse of strncpy()

2018-07-20 Thread Ben Hutchings
gcc 8 reports: usbip_device_driver.c: In function ‘read_usb_vudc_device’: usbip_device_driver.c:106:2: error: ‘strncpy’ specified bound 256 equals destination size [-Werror=stringop-truncation] strncpy(dev->path, path, SYSFS_PATH_MAX); ^~~~ usbip_device_dri

RFC on OTi-2108 USB Data Link cable driver implementation

2018-07-20 Thread Urja Rannikko
Hi, This device presents itself as an USB CD Drive, and extends that "metaphor" (kinda) to how it transfers data (= ethernet frames in our case) between hosts. That is one SCSI vendor command (0xD8) over bulk-only mass-storage is used to poll whether data is available and another one (0xD9) is use

Re: [PATCH v2 01/29] usb: usbtmc: Support Read Status Byte with SRQ per file

2018-07-20 Thread Greg KH
On Wed, Jul 18, 2018 at 10:45:34AM +0200, Guido Kiener wrote: > } > - dev_warn(dev, "invalid notification: %x\n", > data->iin_buffer[0]); > + dev_warn(dev, "invalid notification: %x\n", > + data->iin_buffer[0]); > break; >

Re: [PATCH v2 03/29] usb: usbtmc: Add ioctls to set/get usb timeout

2018-07-20 Thread Greg KH
On Wed, Jul 18, 2018 at 10:45:36AM +0200, Guido Kiener wrote: > +/* > + * Set the usb timeout value > + */ > +static int usbtmc_ioctl_set_timeout(struct usbtmc_file_data *file_data, > + void __user *arg) > +{ > + u32 timeout; > + > + if (get_user(timeout, (__u32

Re: [PATCH v2 08/29] usb: usbtmc: Add ioctl for generic requests on control

2018-07-20 Thread Greg KH
On Wed, Jul 18, 2018 at 10:45:41AM +0200, Guido Kiener wrote: > Add USBTMC_IOCTL_CTRL_REQUEST to send arbitrary requests on the > control pipe. Used by specific applications of IVI Foundation, > Inc. to implement VISA API functions: viUsbControlIn/Out. > > The maximum length of control request is

Re: [PATCH v2 09/29] usb: usbtmc: Add ioctl for vendor specific write

2018-07-20 Thread Greg KH
On Wed, Jul 18, 2018 at 10:45:42AM +0200, Guido Kiener wrote: > The new ioctl USBTMC_IOCTL_WRITE sends a generic message to bulk OUT. > This ioctl is used for vendor specific or asynchronous I/O as well. > > The message is split into chunks of 4k (page size). > Message size is aligned to 32 bit bo