Re: [Bug 200917] 4.18 regression: I/O error on external icybox disk enclosures

2018-08-30 Thread Alan Stern
On Wed, 29 Aug 2018, Klaus Kusche wrote: > Hello, > > On 24/08/2018 19:28, Alan Stern wrote: > > On Fri, 24 Aug 2018, Klaus Kusche wrote: > >> On 24/08/2018 17:39, Alan Stern wrote: > >>> On Fri, 24 Aug 2018, Klaus Kusche wrote: > On 24/08/2018 16:15, Alan Stern wrote: > > On Fri, 24

Re: A few questions about gadgetfs

2018-08-30 Thread Alan Stern
On Thu, 30 Aug 2018, Andrey Konovalov wrote: > Hi Alan, > > I have a few questions about gadgetfs. > > According to documentation usb_gadget_driver->setup "queues a response > to ep0, or returns negative to stall". > > Do I understand correctly, that "stall" in this case means "retry the >

RE: [PATCH v3 2/2] usb: typec: ucsi: add support for Cypress CCGx

2018-08-30 Thread Ajay Gupta
Hi Andy, > > Latest NVIDIA GPU cards have a Cypress CCGx Type-C controller over I2C > > interface. > > > > This UCSI I2C driver uses I2C bus driver interface for communicating > > with Type-C controller. > > > > Few comments below. > > > +#include > > +#include > > +#include > > +#include >

[PATCH v4 1/2] i2c: buses: add i2c bus driver for NVIDIA GPU

2018-08-30 Thread Ajay Gupta
Latest NVIDIA GPU card has USB Type-C interface. There is a Type-C controller which can be accessed over I2C. This driver adds I2C bus driver to communicate with Type-C controller. I2C client driver will be part of USB Type-C UCSI driver. Signed-off-by: Ajay Gupta --- Changes from v1 -> v2

[PATCH v4 2/2] usb: typec: ucsi: add support for Cypress CCGx

2018-08-30 Thread Ajay Gupta
Latest NVIDIA GPU cards have a Cypress CCGx Type-C controller over I2C interface. This UCSI I2C driver uses I2C bus driver interface for communicating with Type-C controller. Signed-off-by: Ajay Gupta --- Changes from v1 -> v2 Fixed identation in drivers/usb/typec/ucsi/Kconfig Changes

Re: [PATCH v3 1/2] i2c: buses: add i2c bus driver for NVIDIA GPU

2018-08-30 Thread Wolfram Sang
On Wed, Aug 29, 2018 at 05:33:17PM -0700, ajayk...@gmail.com wrote: > From: Ajay Gupta Can you add your full name to the gmail address, too? That would make patch processing a tad easier. Thanks, Wolfram signature.asc Description: PGP signature

Re: A question about 'lsusb'

2018-08-30 Thread Alan Stern
On Thu, 30 Aug 2018, Faisal Mehmood wrote: > Based on my (limited) understanding if I were to disable udev, the > userspace should not be able to enumerate/interact with any newly > connected device since udev handles uevents generated by kernel. > (right?) That's not quite right. Yes, udev

A few questions about gadgetfs

2018-08-30 Thread Andrey Konovalov
Hi Alan, I have a few questions about gadgetfs. According to documentation usb_gadget_driver->setup "queues a response to ep0, or returns negative to stall". Do I understand correctly, that "stall" in this case means "retry the same request later" and it's unrelated to the STALL USB packet? Is

A question about 'lsusb'

2018-08-30 Thread Faisal Mehmood
Based on my (limited) understanding if I were to disable udev, the userspace should not be able to enumerate/interact with any newly connected device since udev handles uevents generated by kernel. (right?) So as a test, I disabled systemd-udevd and then plugged in a flash drive. I disabled

RE: [PATCH v3 1/2] i2c: buses: add i2c bus driver for NVIDIA GPU

2018-08-30 Thread Ajay Gupta
Hi Andy, > > Latest NVIDIA GPU card has USB Type-C interface. There is a Type-C > > controller which can be accessed over I2C. > > > > This driver adds I2C bus driver to communicate with Type-C controller. > > I2C client driver will be part of USB Type-C UCSI driver. > > > > Some small comments

Re: musb_hdrc HNP?

2018-08-30 Thread Takashi Matsuzawa
Hello. FYI. I made a progress on this, but no solution yet. >The smartphone does use HNP, it is not iPhone Carplay, correct? At this point, I am trying to see original HNP behavior between two pocketbeagles. (After seeing it works, I plan to replace B-device with a phone, and so customization

Re: usb: gadget: f_mass_storage: detect eject

2018-08-30 Thread Nuno Gonçalves
On Tue, Aug 28, 2018 at 5:09 PM Alan Stern wrote: > There is another way: modprobe g_file_storage with appropriate > parameters. Yes, but I am using a composite device, with ACM and UMS, and also g_multi (Ethernet+ACM+UMS) is not a option since my HW does not support enough endpoints for this

[REGRESSION, BISECTED] cdc-acm: problem with MCP2200

2018-08-30 Thread manio
Hello, I am using USB-UART optical serial converter [1], which is based on MCP2200. It is connected to my RaspberryPi and the other side is connected to my remeha gas boiller. My problems starts with this commit: commit a81cf9799ad7299b03a4dff020d9685f9ac5f3e0 Author: Oliver Neukum Date:

[PATCH] Revert "cdc-acm: implement put_char() and flush_chars()"

2018-08-30 Thread Oliver Neukum
This reverts commit a81cf9799ad7299b03a4dff020d9685f9ac5f3e0. The patch causes a regression, which I cannot find the reason for. So let's revert for now, as a revert hurts only performance. I was trying to resolve the problem with Oliver but we don't get any conclusion for 5 months, so I am now

Re: [PATCH v3 1/2] i2c: buses: add i2c bus driver for NVIDIA GPU

2018-08-30 Thread Andy Shevchenko
On Thu, Aug 30, 2018 at 3:35 AM wrote: > > From: Ajay Gupta > > Latest NVIDIA GPU card has USB Type-C interface. There is a > Type-C controller which can be accessed over I2C. > > This driver adds I2C bus driver to communicate with Type-C controller. > I2C client driver will be part of USB

Re: [PATCH v3 2/2] usb: typec: ucsi: add support for Cypress CCGx

2018-08-30 Thread Andy Shevchenko
On Thu, Aug 30, 2018 at 3:36 AM wrote: > > From: Ajay Gupta > > Latest NVIDIA GPU cards have a Cypress CCGx Type-C controller > over I2C interface. > > This UCSI I2C driver uses I2C bus driver interface for communicating > with Type-C controller. > Few comments below. > +#include > +#include

Re: [PATCH] usb: gadget: atmel: remove pointless retrieval of DT name property

2018-08-30 Thread Nicolas Ferre
On 29/08/2018 at 22:01, Rob Herring wrote: The name is always non-NULL and then is not used anywhere in this function, so remove it. Indeed. Cc: Nicolas Ferre Acked-by: Nicolas Ferre Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Alexandre Belloni Cc:

[PATCH v1] USB: wusbcore: Switch to bitmap_zalloc()

2018-08-30 Thread Andy Shevchenko
Switch to bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type instead of opaque void *. Signed-off-by: Andy Shevchenko --- drivers/usb/wusbcore/wa-rpipe.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git