Re: how to test g_webcam

2019-10-16 Thread Roger Quadros
Hi, On 15/10/2019 18:26, Gopal, Saranya wrote: Hi Quadros, I used the a different uvc-gadget application from this location [1] and it seems to work quite fine with builtin video pattern and jpg image but not with V4L2 capture source. So something is broken in uvc-gadget at [2] [1] https://

[PATCH v3 1/6] USB: Export generic USB device driver functions

2019-10-16 Thread Bastien Nocera
This will make it possible to implement device drivers which extend the generic driver without needing to reimplement it. Signed-off-by: Bastien Nocera Acked-by: Alan Stern --- drivers/usb/core/generic.c | 16 drivers/usb/core/usb.h | 6 ++ 2 files changed, 14 insertio

[PATCH v3 2/6] USB: Make it possible to "subclass" usb_device_driver

2019-10-16 Thread Bastien Nocera
The kernel currenly has only 2 usb_device_drivers, one generic one, one that completely replaces the generic one to make USB devices usable over a network. Use the newly exported generic driver functions when a driver declares to want them run, in addition to its own code. This makes it possible t

[PATCH v3 3/6] USB: Implement usb_device_match_id()

2019-10-16 Thread Bastien Nocera
Match a usb_device with a table of IDs. Signed-off-by: Bastien Nocera Acked-by: Alan Stern --- drivers/usb/core/driver.c | 14 ++ drivers/usb/core/usb.h| 2 ++ 2 files changed, 16 insertions(+) diff --git drivers/usb/core/driver.c drivers/usb/core/driver.c index d3787d084937..

[PATCH v3 5/6] USB: Fallback to generic driver when specific driver fails

2019-10-16 Thread Bastien Nocera
If ->probe fails for a device specific driver, ask the driver core to reprobe us, after having flagged the device for the generic driver to be forced. Signed-off-by: Bastien Nocera Acked-by: Alan Stern --- drivers/usb/core/driver.c | 5 - drivers/usb/core/generic.c | 3 +++ include/linux/u

[PATCH v3 4/6] USB: Select better matching USB drivers when available

2019-10-16 Thread Bastien Nocera
Now that USB device drivers can reuse code from the generic USB device driver, we need to make sure that they get selected rather than the generic driver. Add an id_table and match vfunc to the usb_device_driver struct, which will get used to select a better matching driver at ->probe time. This i

[PATCH v3 6/6] USB: Add driver to control USB fast charge for iOS devices

2019-10-16 Thread Bastien Nocera
iOS devices will not draw more than 500mA unless instructed to do so. Setting the charge type power supply property to "fast" tells the device to start drawing more power, using the same procedure that official "MFi" chargers would. Signed-off-by: Bastien Nocera Acked-by: Alan Stern --- MAINTAI

[PATCH v3 0/6] Add Apple MFi fastcharge USB device driver

2019-10-16 Thread Bastien Nocera
This is version 3 of the patch set. Changes in v3: - Add Alan's ack - don't export usb_device_match_id() Changes in v2: - checkpatch.pl is now quiet - fallback to the generic driver when driver ->probe() fails Bastien Nocera (6): USB: Export generic USB device driver functions USB: Make it p

Re: [PATCH] usbip: tools: Fix read_usb_vudc_device() error path handling

2019-10-16 Thread Greg KH
On Wed, Oct 16, 2019 at 01:38:25PM +0900, GwanYeong Kim wrote: > On Tue, 15 Oct 2019 17:14:32 -0600 > shuah wrote: > > > On 10/15/19 7:14 AM, GwanYeong Kim wrote: > > > cannot be less than 0 - fread() returns 0 on error. > > > > > > Signed-off-by: GwanYeong Kim > > > --- > > > tools/usb/usbip

Re: [PATCH 2/7] usb: musb: omap2430: Wait on enable to avoid babble

2019-10-16 Thread Tony Lindgren
* Sergei Shtylyov [191010 09:46]: > Hello! > > On 10.10.2019 0:21, Tony Lindgren wrote: > > > We can babble interrupt if we attempt to switch to USB host mode too > ^ verb missing? Thanks for catching it, it should say "We can get babble...". Bin, do you need a resend of the whole seri

[PATCH v2] usbip: tools: Fix read_usb_vudc_device() error path handling

2019-10-16 Thread GwanYeong Kim
cannot be less than 0 - fread() returns 0 on error. Signed-off-by: GwanYeong Kim --- tools/usb/usbip/libsrc/usbip_device_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/usb/usbip/libsrc/usbip_device_driver.c b/tools/usb/usbip/libsrc/usbip_device_driver.c i

Re: [PATCH v2] usbip: tools: Fix read_usb_vudc_device() error path handling

2019-10-16 Thread shuah
On 10/16/19 8:25 PM, GwanYeong Kim wrote: cannot be less than 0 - fread() returns 0 on error. This isn't really accurate right. fread() doesn't always return 0 in error. It could return < number of elements and set errno. Please make changes to reflect that. Signed-off-by: GwanYeong Kim --

I need Your Urgent assistance.

2019-10-16 Thread Beatrice Johnson
I need Your Urgent assistance. My name is Beatrice Johnson. The only daughter of the late Mr. Madou Johnson. Here in Burkina Faso, i got your profile while searching for contact on internet; I am contacting you to help me receive some amount of money in your country. So that I can travel To Americ

Re: [PATCH v2] usbip: tools: Fix read_usb_vudc_device() error path handling

2019-10-16 Thread GwanYeong Kim
On Wed, 16 Oct 2019 20:33:39 -0600 shuah wrote: > On 10/16/19 8:25 PM, GwanYeong Kim wrote: > > cannot be less than 0 - fread() returns 0 on error. > > > > This isn't really accurate right. fread() doesn't always > return 0 in error. It could return < number of elements > and set errno. > > Pl