[PATCH 3/4] usb: usbtmc: uninitialized symbol 'actual' in usbtmc_ioctl_clear

2018-09-24 Thread Guido Kiener
From: Guido Kiener Fix uninitialized symbol 'actual' in function usbtmc_ioctl_clear. When symbol 'actual' is not initialized and usb_bulk_msg() fails, the subsequent kernel debug message shows a random value. Signed-off-by: Guido Kiener Fixes: dfee02ac4bce ("usb: usbtmc: Fix ioctl

[PATCH 1/4] usb: usbtmc: Fix memory leak in usbtmc_ioctl_request

2018-09-24 Thread Guido Kiener
From: Guido Kiener Kernel memory is allocated twice in new function usbtmc_ioctl_request and creates a memory leak. This fix removes the superfluous kmalloc(). Signed-off-by: Guido Kiener Fixes: 658f24f4523e ("usb: usbtmc: Add ioctl for generic requests on control") ---

[PATCH 0/4] usb: usbtmc: Fix changes for compatible IVI/VISA library

2018-09-24 Thread Guido Kiener
Fix memory leak and uninitialized symbol 'actual' in usbtmc driver of patch series: [v6,00/22] usb: usbtmc: Changes needed for compatible IVI/VISA library https://patchwork.kernel.org/cover/10596935/ Two errors are reported by 0-day service (smatch tool) when testing branch usb-testing: 1.

[PATCH 4/4] usb: usbtmc: uninitialized symbol 'actual' in usbtmc_ioctl_abort_bulk_in_tag

2018-09-24 Thread Guido Kiener
From: Guido Kiener Fix uninitialized symbol 'actual' in function usbtmc_ioctl_abort_bulk_in_tag(). When symbol 'actual' is not initialized and usb_bulk_msg() fails, the subsequent kernel debug message shows invalid data. Signed-off-by: Guido Kiener Fixes: cbe743f1333b ("usb: usbtmc: Fix ioctl

[PATCH 2/4] usb: usbtmc: uninitialized symbol 'actual' in usbtmc_read

2018-09-24 Thread Guido Kiener
From: Guido Kiener Fix uninitialized symbol 'actual' in function usbtmc_read. When symbol 'actual' is not initialized and usb_bulk_msg() fails, the subsequent kernel debug message shows a random value. Signed-off-by: Guido Kiener Fixes: d7604ff0dc01 ("usb: usbtmc: Optimize usbtmc_read") ---

Re: [PATCH 0/4] usb: gadget: uvc: Fix endianness and sign issues

2018-09-24 Thread Paul Elder
On Tue, Sep 18, 2018 at 03:32:43PM +0300, Laurent Pinchart wrote: > Hello, > > This series addresses endianness and sign issues in the configfs support > of the UVC gadget function driver. > > The first patch starts by fixing the endianness of various UVC > descriptors to match the USB little

Re: [PATCH 1/3] usb: gadget: uvc: Factor out video USB request queueing

2018-09-24 Thread Paul Elder
On Tue, Sep 18, 2018 at 01:35:30PM +0300, Laurent Pinchart wrote: > USB requests for video data are queued from two different locations in > the driver, with the same code block occurring twice. Factor it out to a > function. > > Signed-off-by: Laurent Pinchart For the whole series: Looks good

Re: [PATCH 1/3] usb: host: xhci: fix oops when removing hcd

2018-09-24 Thread Jack Pham
Hi Peter, On Fri, Sep 21, 2018 at 09:48:43AM +0800, Peter Chen wrote: > Type-C-to-A cable, and the USB3 HCD has already been NULL at that time. > The oops log like below: > > [681.782288] xhci-hcd xhci-hcd.1.auto: remove, state 1 > [681.787490] usb usb4: USB disconnect, device number 1 >

Re: [PATCH] usb: gadget: uvc: Remove uvc_set_trace_param() function

2018-09-24 Thread Kieran Bingham
Hi Laurent, On 18/09/18 13:25, Laurent Pinchart wrote: > The function is never called, remove it. It does seem that way :) > Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham > --- > drivers/usb/gadget/function/f_uvc.c | 6 -- > 1 file changed, 6 deletions(-) > > diff --git

Re: [PATCH v2 8/8] usb: gadget: uvc: configfs: Prevent format changes after linking header

2018-09-24 Thread Laurent Pinchart
Hi Kieran, On Monday, 24 September 2018 15:50:45 EEST Kieran Bingham wrote: > On 01/08/18 22:55, Laurent Pinchart wrote: > > From: Joel Pepper > > > > While checks are in place to avoid attributes and children of a format > > being manipulated after the format is linked into the streaming

Re: [PATCH v2 7/8] usb: gadget: uvc: configfs: Add bFrameIndex attributes

2018-09-24 Thread Kieran Bingham
Hi Laurent, On 24/09/18 17:00, Laurent Pinchart wrote: > Hi Kieran, > > On Monday, 24 September 2018 15:22:57 EEST Kieran Bingham wrote: >> On 01/08/18 22:55, Laurent Pinchart wrote: >>> From: Joel Pepper >>> >>> - Add bFrameIndex as a UVCG_FRAME_ATTR_RO for each frame size. >>> - Automatically

Re: [PATCH v2 7/8] usb: gadget: uvc: configfs: Add bFrameIndex attributes

2018-09-24 Thread Laurent Pinchart
Hi Kieran, On Monday, 24 September 2018 15:22:57 EEST Kieran Bingham wrote: > On 01/08/18 22:55, Laurent Pinchart wrote: > > From: Joel Pepper > > > > - Add bFrameIndex as a UVCG_FRAME_ATTR_RO for each frame size. > > - Automatically assign ascending bFrameIndex to each frame in a format. > >

Re: some question about ehci-sched.c

2018-09-24 Thread yoma sophian
hi Alan: > We don't _have_ to do it. It is a small optimization; an attempt to > avoid schedule collisions between interrupt transactions and > isochronous transactions. The effect of the "-" is that the code tries > frames in backward order when it is scheduling isochronous URBs -- as > opposed

Re: [PATCH -next] USB: core: remove set but not used variable 'udev'

2018-09-24 Thread Alan Stern
On Sat, 22 Sep 2018, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/usb/core/driver.c: In function 'usb_driver_claim_interface': > drivers/usb/core/driver.c:513:21: warning: > variable 'udev' set but not used [-Wunused-but-set-variable] > > Signed-off-by:

Re: [PATCH 0/3] add dwc2 support for px30

2018-09-24 Thread Heiko Stuebner
Am Donnerstag, 2. August 2018, 15:01:30 CEST schrieb Heiko Stuebner: > This is split out from the series adding the px30 support, due to > the dwc2 binding change not having landed yet in a maintainer tree. > > The Acked binding change should go through some usb tree, while > I'll pick up the dts

[PATCH] USB: serial: simple: add Motorola Tetra MTP6550 id

2018-09-24 Thread Johan Hovold
Add device-id for the Motorola Tetra radio MTP6550. Bus 001 Device 004: ID 0cad:9012 Motorola CGISS Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass0 (Defined at Interface level) bDeviceSubClass 0

Re: fixes for ioctl() of usbtmc in testing tree

2018-09-24 Thread Greg Kroah-Hartman
On Mon, Sep 24, 2018 at 12:20:42PM +, gu...@kiener-muenchen.de wrote: > > Zitat von Oliver Neukum : > > > On Mo, 2018-09-24 at 10:56 +, gu...@kiener-muenchen.de wrote: > > > Zitat von Greg Kroah-Hartman : > > > > > > > On Mon, Sep 24, 2018 at 11:24:10AM +0200, Oliver Neukum wrote: > > >

Re: [PATCH v2 7/8] usb: gadget: uvc: configfs: Add bFrameIndex attributes

2018-09-24 Thread Kieran Bingham
Hi Laurent, Joel On 01/08/18 22:55, Laurent Pinchart wrote: > From: Joel Pepper > > - Add bFrameIndex as a UVCG_FRAME_ATTR_RO for each frame size. > - Automatically assign ascending bFrameIndex to each frame in a format. > > Before all "bFrameindex" attributes were set to "1" with no way to >

Re: [PATCH v2 8/8] usb: gadget: uvc: configfs: Prevent format changes after linking header

2018-09-24 Thread Kieran Bingham
Hi Laurent, Joel, On 01/08/18 22:55, Laurent Pinchart wrote: > From: Joel Pepper > > While checks are in place to avoid attributes and children of a format > being manipulated after the format is linked into the streaming header, > the linked flag was never actually set, invalidating the

Re: fixes for ioctl() of usbtmc in testing tree

2018-09-24 Thread guido
Zitat von Oliver Neukum : On Mo, 2018-09-24 at 10:56 +, gu...@kiener-muenchen.de wrote: Zitat von Greg Kroah-Hartman : > On Mon, Sep 24, 2018 at 11:24:10AM +0200, Oliver Neukum wrote: > > Hi, > > > > how should I mark fixes intended for the testing branch? > > I got one for the usbtmc

Re: [PATCH v2 6/8] usb: gadget: uvc: configfs: Add bFormatIndex attributes

2018-09-24 Thread Kieran Bingham
Hi Laurent, On 01/08/18 22:55, Laurent Pinchart wrote: > The UVC format description are numbered using the descriptor's > bFormatIndex field. The index is used in UVC requests, and is thus > needed to handle requests in userspace. Make it dynamically discoverable > by exposing it in a

Re: [PATCH v2 5/8] usb: gadget: uvc: configfs: Add interface number attributes

2018-09-24 Thread Kieran Bingham
Hi Laurent, On 01/08/18 22:55, Laurent Pinchart wrote: > The video control and video streaming interface numbers are needed in > the UVC gadget userspace stack to reply to UVC requests. They are > hardcoded to fixed values at the moment, preventing configurations with > multiple functions. > >

Re: [PATCH v2 4/8] usb: gadget: uvc: configfs: Allocate groups dynamically

2018-09-24 Thread Kieran Bingham
Hi Laurent, On 01/08/18 22:55, Laurent Pinchart wrote: > The UVC configfs implementation creates all groups as global static > variables. This prevents creation of multiple UVC function instances, > as they would all require their own configfs group instances. > > Fix this by allocating all

Re: [PATCH v2 3/8] usb: gadget: uvc: configfs: Drop leaked references to config items

2018-09-24 Thread Kieran Bingham
Hi Laurent, On 01/08/18 22:55, Laurent Pinchart wrote: > Some of the .allow_link() and .drop_link() operations implementations > call config_group_find_item() and then leak the reference to the > returned item. Fix this by dropping those references where needed. > > Signed-off-by: Laurent

Re: fixes for ioctl() of usbtmc in testing tree

2018-09-24 Thread Oliver Neukum
On Mo, 2018-09-24 at 10:56 +, gu...@kiener-muenchen.de wrote: > Zitat von Greg Kroah-Hartman : > > > On Mon, Sep 24, 2018 at 11:24:10AM +0200, Oliver Neukum wrote: > > > Hi, > > > > > > how should I mark fixes intended for the testing branch? > > > I got one for the usbtmc driver. > > > >

Re: fixes for ioctl() of usbtmc in testing tree

2018-09-24 Thread guido
Zitat von Greg Kroah-Hartman : On Mon, Sep 24, 2018 at 11:24:10AM +0200, Oliver Neukum wrote: Hi, how should I mark fixes intended for the testing branch? I got one for the usbtmc driver. Just send it like normal. You can do a "Fixes:" tag with the sha1, that should be fine. I need to

Re: fixes for ioctl() of usbtmc in testing tree

2018-09-24 Thread Greg Kroah-Hartman
On Mon, Sep 24, 2018 at 11:24:10AM +0200, Oliver Neukum wrote: > Hi, > > how should I mark fixes intended for the testing branch? > I got one for the usbtmc driver. Just send it like normal. You can do a "Fixes:" tag with the sha1, that should be fine. I need to push out my testing branch now,

fixes for ioctl() of usbtmc in testing tree

2018-09-24 Thread Oliver Neukum
Hi, how should I mark fixes intended for the testing branch? I got one for the usbtmc driver. Regards Oliver