Re: Interfacing a camera to UVC

2017-09-13 Thread Rail Shafigulin
On Wed, Sep 13, 2017 at 2:28 PM, Greg KH wrote: > There is already a working UVC kernel driver that talks to the correct > userspace api (which is V4L), in the kernel tree. > > So I strongly recommend looking at the code we have today if you have > questions about it. What exactly is not working

Re: Interfacing a camera to UVC

2017-09-13 Thread Greg KH
On Wed, Sep 13, 2017 at 01:57:49PM -0700, Rail Shafigulin wrote: > I'm a little unclear about USB Video Class (UVC). In order to use the > camera, does it need to have a Video4Linux driver that "talks" to a > UVC class or it is possible to have a camera that doesn't have a > Video4Linux driver and

Interfacing a camera to UVC

2017-09-13 Thread Rail Shafigulin
I'm a little unclear about USB Video Class (UVC). In order to use the camera, does it need to have a Video4Linux driver that "talks" to a UVC class or it is possible to have a camera that doesn't have a Video4Linux driver and interfaces to a UVC directly? -- Rail Shafigulin Software Engineer Esen

Re: Bug 196559: xhci_hcd: kernel panic using thunderbolt dell dock TB16 on 4.12.4

2017-09-13 Thread Greg KH
On Wed, Sep 13, 2017 at 05:03:32PM +0300, Mathias Nyman wrote: > On 07.09.2017 18:16, Greg KH wrote: > > On Thu, Sep 07, 2017 at 09:12:53AM -0600, Jose Marino wrote: > > > I have tested Mathias' patch on top of v4.13 and it fixes the problem. I > > > was > > > able to suspend/resume a few times wi

Re: [PATCH v1 03/10] clk: at91: pmc: Support backup for programmable clocks

2017-09-13 Thread Alexandre Belloni
On 13/09/2017 at 14:29:35 +0200, Nicolas Ferre wrote: > On 08/09/2017 at 17:35, Romain Izard wrote: > > From: Romain Izard > > > > Save and restore the System Clock and Programmable Clock register for > > the backup use case. > > "System Clock" seems to be handled in another patch. > > > Signed

Re: [PATCH v2] uwb: properly check kthread_run return value

2017-09-13 Thread Dmitry Vyukov
On Wed, Sep 13, 2017 at 6:06 PM, Andrey Konovalov wrote: > uwbd_start() calls kthread_run() and checks that the return value is > not NULL. But the return value is not NULL in case kthread_run() fails, > it takes the form of ERR_PTR(-EINTR). > > Use IS_ERR() instead. > > Also add a check to uwbd_s

Re: [PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-13 Thread Guenter Roeck
On Wed, Sep 13, 2017 at 05:48:25PM +0200, Hans de Goede wrote: > Hi, > > On 13-09-17 17:07, Rob Herring wrote: > >On Wed, Sep 13, 2017 at 9:06 AM, Hans de Goede wrote: > >>Hi, > >> > >> > >>On 13-09-17 15:38, Rob Herring wrote: > >>> > >>>On Wed, Sep 13, 2017 at 3:56 AM, Hans de Goede > >>>wrote

[PATCH v2] uwb: properly check kthread_run return value

2017-09-13 Thread Andrey Konovalov
uwbd_start() calls kthread_run() and checks that the return value is not NULL. But the return value is not NULL in case kthread_run() fails, it takes the form of ERR_PTR(-EINTR). Use IS_ERR() instead. Also add a check to uwbd_stop(). Signed-off-by: Andrey Konovalov --- drivers/uwb/uwbd.c | 5 +

Re: [PATCH] uwb: properly check kthread_run return value

2017-09-13 Thread Andrey Konovalov
On Wed, Sep 13, 2017 at 5:06 PM, Andrey Konovalov wrote: > uwbd_start() calls kthread_run() and checks that the return value is > not NULL. But the return value is not NULL in case kthread_run() fails, > it takes the form of ERR_PTR(-EINTR). > > Use IS_ERR() instead. This uncovers another issue,

Re: [PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-13 Thread Hans de Goede
Hi, On 13-09-17 17:07, Rob Herring wrote: On Wed, Sep 13, 2017 at 9:06 AM, Hans de Goede wrote: Hi, On 13-09-17 15:38, Rob Herring wrote: On Wed, Sep 13, 2017 at 3:56 AM, Hans de Goede wrote: Hi, On 13-09-17 00:20, Rob Herring wrote: On Tue, Sep 05, 2017 at 06:42:20PM +0200, Hans d

Re: USB mouse

2017-09-13 Thread Bruce Korb
Hi, On Tue, Sep 12, 2017 at 8:48 PM, Alan Stern wrote: > On Tue, 12 Sep 2017, Bruce Korb wrote: >> >> So, I unplugged and re-plugged my G400 mouse into that switch. >> I then made sure the mouse was still responded to (it was) >> and finally unplugged it again. >> I did that over a 14 second peri

Re: usb/uwb: GPF in uwbd_start

2017-09-13 Thread Andrey Konovalov
On Tue, Sep 12, 2017 at 9:55 PM, Greg Kroah-Hartman wrote: > On Tue, Sep 12, 2017 at 07:10:07PM +0200, Andrey Konovalov wrote: >> Hi! >> >> I've got the following crashes while fuzzing the kernel with syzkaller. >> >> On commit 81a84ad3cb5711cec79f4dd53a4ce026b092c432 (Sep 3). >> >> uwbd_start() c

Re: [PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-13 Thread Rob Herring
On Wed, Sep 13, 2017 at 9:06 AM, Hans de Goede wrote: > Hi, > > > On 13-09-17 15:38, Rob Herring wrote: >> >> On Wed, Sep 13, 2017 at 3:56 AM, Hans de Goede >> wrote: >>> >>> Hi, >>> >>> >>> On 13-09-17 00:20, Rob Herring wrote: On Tue, Sep 05, 2017 at 06:42:20PM +0200, Hans de Goe

[PATCH] uwb: properly check kthread_run return value

2017-09-13 Thread Andrey Konovalov
uwbd_start() calls kthread_run() and checks that the return value is not NULL. But the return value is not NULL in case kthread_run() fails, it takes the form of ERR_PTR(-EINTR). Use IS_ERR() instead. Signed-off-by: Andrey Konovalov --- drivers/uwb/uwbd.c | 2 +- 1 file changed, 1 insertion(+),

Re: usb/uwb: WARNING in hwarc_neep_init/usb_submit_urb

2017-09-13 Thread Alan Stern
On Wed, 13 Sep 2017, Dmitry Vyukov wrote: > On Tue, Sep 12, 2017 at 9:57 PM, Greg Kroah-Hartman > wrote: > > On Tue, Sep 12, 2017 at 08:53:11PM +0200, Andrey Konovalov wrote: > >> Hi! > >> > >> I've got the following crash while fuzzing the kernel with syzkaller. > >> > >> On commit 81a84ad3cb571

Re: symbol DS6708 - problems under new kernels

2017-09-13 Thread Alan Stern
On Wed, 13 Sep 2017, Nikola Ciprich wrote: > Hi fellow linux USB users and developers, > > we've spent lots of time trying to resolve issue with very little > progress so I'd like to try asking for help here.. > > we're migrating big amount of users from SUSE running i386 2.6.13 > kernel to x86_

xhci_hcd HC died; cleaning up with TUSB7340 and µPD720201

2017-09-13 Thread Chris Welch
We are developing a product based on the TI AM5728 EVM.  The product utilizes a  TUSB7340 PCIe USB host for additional ports.  The TUSB7340 is detected and setup properly and works OK with low data rate devices.  However, hot plugging a Realtek USB network adapter and doing Ethernet transfer band

Re: [PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-13 Thread Hans de Goede
Hi, On 13-09-17 15:38, Rob Herring wrote: On Wed, Sep 13, 2017 at 3:56 AM, Hans de Goede wrote: Hi, On 13-09-17 00:20, Rob Herring wrote: On Tue, Sep 05, 2017 at 06:42:20PM +0200, Hans de Goede wrote: Add mux support to the fusb302 driver, call devm_tcpc_gen_mux_create() to let the gener

Re: Bug 196559: xhci_hcd: kernel panic using thunderbolt dell dock TB16 on 4.12.4

2017-09-13 Thread Mathias Nyman
On 07.09.2017 18:16, Greg KH wrote: On Thu, Sep 07, 2017 at 09:12:53AM -0600, Jose Marino wrote: I have tested Mathias' patch on top of v4.13 and it fixes the problem. I was able to suspend/resume a few times with no kernel panics. Yeah! Thanks for testing. Mathias, care to send me a "real"

Re: [PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-13 Thread Rob Herring
On Wed, Sep 13, 2017 at 3:56 AM, Hans de Goede wrote: > Hi, > > > On 13-09-17 00:20, Rob Herring wrote: >> >> On Tue, Sep 05, 2017 at 06:42:20PM +0200, Hans de Goede wrote: >>> >>> Add mux support to the fusb302 driver, call devm_tcpc_gen_mux_create() >>> to let the generic tcpc_mux_dev code creat

Re: [PATCH v1 03/10] clk: at91: pmc: Support backup for programmable clocks

2017-09-13 Thread Nicolas Ferre
On 08/09/2017 at 17:35, Romain Izard wrote: > From: Romain Izard > > Save and restore the System Clock and Programmable Clock register for > the backup use case. "System Clock" seems to be handled in another patch. > Signed-off-by: Romain Izard > --- > drivers/clk/at91/pmc.c | 5 + > 1 fi

Re: [PATCH v1 01/10] clk: at91: pmc: Wait for clocks when resuming

2017-09-13 Thread Nicolas Ferre
On 08/09/2017 at 17:35, Romain Izard wrote: > Wait for the syncronization of all clocks when resuming, not only the > UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() > when interrupts are masked, which is the case in here. > > Signed-off-by: Romain Izard > --- > drivers/cl

Re: [PATCH v1 02/10] clk: at91: pmc: Save SCSR during suspend

2017-09-13 Thread Nicolas Ferre
On 08/09/2017 at 17:35, Romain Izard wrote: > The contents of the System Clock Status Register (SCSR) needs to be > restored into the System Clock Enable Register (SCER). > > As the bootloader will restore some clocks by itself, the issue can be > missed as only the USB controller, the LCD control

Re: [PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-13 Thread Hans de Goede
Hi, On 13-09-17 00:20, Rob Herring wrote: On Tue, Sep 05, 2017 at 06:42:20PM +0200, Hans de Goede wrote: Add mux support to the fusb302 driver, call devm_tcpc_gen_mux_create() to let the generic tcpc_mux_dev code create a tcpc_mux_dev for us. Also document the mux-names used by the generic tcp

Re: Fwd: RH Bugzilla - Bug 1482649 - Logitech USB Unified Receiver+M570 need 'waking' up by click after kernel update

2017-09-13 Thread Michael Simms
Hi, thanks for recreating and looking into this. What I've done is disabled powertop auto tunables as a system service and then looked at that value. With powertop not running it is indeed set to ON for both kernels. With powertop running it gets set to AUTO. So I think as was alluded to earlier po

Re: g_hid loading unloading crash

2017-09-13 Thread Felipe Balbi
Hi, prabhu kalyan writes: > Dear Fabio, > > My main objective is to switch between HID, VCP, Mass storage mode. > But as the g_hid.ko crashes i am not able to switch mode. > > I am using nxp kernel Linux cpu49-ub 4.4.0-31-generic ask for help from NXP. This forum only deals with the mainline ke

Re: usb/uwb: WARNING in hwarc_neep_init/usb_submit_urb

2017-09-13 Thread Dmitry Vyukov
On Tue, Sep 12, 2017 at 9:57 PM, Greg Kroah-Hartman wrote: > On Tue, Sep 12, 2017 at 08:53:11PM +0200, Andrey Konovalov wrote: >> Hi! >> >> I've got the following crash while fuzzing the kernel with syzkaller. >> >> On commit 81a84ad3cb5711cec79f4dd53a4ce026b092c432 (Sep 3). >> >> gadgetfs: bound