USB Gadget driver for USB screen?

2018-06-29 Thread Sebastian Nielsen
Does anyone know of a USB Gadget kernel driver for a USB screen? So I can have a linux USB gadget emulate as a USB screen to the host PC, and aquire it's picture as a picture stream? I looked in the gadget documentation and found a "video" device, but apparently this emulates a web camera to the

Re: usb: dwc2: crash regression in commit 3bc04e28a030 (bisected)

2018-06-29 Thread Doug Anderson
Hi, On Fri, Jun 29, 2018 at 11:29 AM, Antti Seppälä wrote: > Hi Doug, John and linux-usb. > > I'd like to report a regression in commit 3bc04e28a030 (usb: dwc2: > host: Get aligned DMA in a more supported way) Seems unlikely, but any chance that

Re: [usb:usb-next 36/38] drivers/usb/typec/tcpci.c:549: undefined reference to `__devm_regmap_init_i2c'

2018-06-29 Thread Guenter Roeck
On Fri, Jun 29, 2018 at 12:52:34PM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git > usb-next > head: aaf3f4e925dc2bdc4715142103660285632a245c > commit: 990da41530b31ed7de29340ce1d78c04bee9670c [36/38] staging: typec: > tcpci: move tcpci

Re: [PATCH 1/2 ] cdc_ncm: Handle multicast Ethernet traffic

2018-06-29 Thread Oliver Neukum
On Fr, 2018-06-29 at 16:45 +0200, Miguel Rodríguez Pérez wrote: > Subject: [PATCH 1/2] Hook into usbnet_change_mtu respecting usbnet > driver_info > > Change the way cdc_ncm_change_mtu hooks into the netdev_ops > structure so that changes into usbnet driver_info operations > can be respected.

Re: USB Type-C hub detection is flaky

2018-06-29 Thread Timur Kristóf
Hi Heikki, On Fri, 2018-06-29 at 14:42 +0300, Heikki Krogerus wrote: > Hi Tim, > > On Tue, Jun 26, 2018 at 02:10:57PM +0200, Timur Krist?f wrote: > > > Can you send the dmesg output after you have plugged the powered > > > and > > > non-powered hubs: > > > > Right now I have the Dell Type-C to

Re: [PATCH v6] USB: serial: ftdi_sio: Add MTP NVM support

2018-06-29 Thread Ajay Gupta
Hi Loic. Thanks for fixing comments. Looks good to me now. On 6/26/18, Loic Poulain wrote: > Most of FTDI's devices have an EEPROM which records FTDI devices > configuration setting (e.g. the VID, PID, I/O config...) and user > data. For example, FT232R and FTX chips have 128-byte and 2048-byte

usb: dwc2: crash regression in commit 3bc04e28a030 (bisected)

2018-06-29 Thread Antti Seppälä
Hi Doug, John and linux-usb. I'd like to report a regression in commit 3bc04e28a030 (usb: dwc2: host: Get aligned DMA in a more supported way) Apparently the patch does something nasty that the Lantiq platform really does not like as whenever I plug my usb 3g modem into the usb port of my BT

Re: [PATCH 1/2 ] cdc_ncm: Handle multicast Ethernet traffic

2018-06-29 Thread Greg KH
On Fri, Jun 29, 2018 at 04:47:28PM +0200, Miguel Rodríguez Pérez wrote: > Some CDC_NCM devices are used as docks for laptops. In this case, it > makes sense to accept multicast Ethernet traffic, as these devices > can reside in a proper LAN. Without this, mDNS or IPv6 simply do not > work. > >

[PATCH] USB: gadget: Document that certain ep operations can be called in interrupt context

2018-06-29 Thread Alan Stern
This documentation patch specifies that certain USB gadget endpoint operations may be called in interrupt context: usb_ep_queue, usb_ep_dequeue, usb_ep_set_halt, usb_ep_clear_halt, usb_ep_set_wedge, usb_ep_fifo_status, and usb_ep_fifo_flush; while others must be called in

Re: [PATCH 1/2 ] cdc_ncm: Handle multicast Ethernet traffic

2018-06-29 Thread Miguel Rodríguez Pérez
Some CDC_NCM devices are used as docks for laptops. In this case, it makes sense to accept multicast Ethernet traffic, as these devices can reside in a proper LAN. Without this, mDNS or IPv6 simply do not work. Signed-off-by: Miguel Rodríguez Pérez --- drivers/net/usb/cdc_ncm.c | 28

Re: [PATCH 1/2 ] cdc_ncm: Handle multicast Ethernet traffic

2018-06-29 Thread Miguel Rodríguez Pérez
Subject: [PATCH 1/2] Hook into usbnet_change_mtu respecting usbnet driver_info Change the way cdc_ncm_change_mtu hooks into the netdev_ops structure so that changes into usbnet driver_info operations can be respected. Without this, is was not possible to hook into usbnet_set_rx_mode.

[PATCH 0/2 ] cdc_ncm: Handle multicast Ethernet traffic

2018-06-29 Thread Miguel Rodríguez Pérez
Dell D6000 dock (and I guess other docks too) exposes a CDC_NCM device for Ethernet traffic. However, multicast Ethernet traffic is not processed making IPv6 not functional. Other services, like mDNS used for LAN service discovery are also hindered. The actual reason is that CDC_NCM driver was

Re: USB Type-C hub detection is flaky

2018-06-29 Thread Heikki Krogerus
Hi Tim, On Tue, Jun 26, 2018 at 02:10:57PM +0200, Timur Krist?f wrote: > > Can you send the dmesg output after you have plugged the powered and > > non-powered hubs: > > Right now I have the Dell Type-C to USB 3.0 Type-A adapter with the USB > 2.0 hub here. There is a Logitech received plugged

[PATCH] cdc_ncm: Handle multicast Ethernet traffic

2018-06-29 Thread Miguel Rodríguez Pérez
Dell D6000 dock (and I guess other docks too) exposes a CDC_NCM device for Ethernet traffic. However, multicast Ethernet traffic is not processed making IPv6 not functional. Other services, like mDNS used for LAN service discovery are also hindered. The actual reason is that CDC_NCM driver was

Re: usb: gadget: ffs: Fix BUG when userland exits with submitted AIO transfers

2018-06-29 Thread Felipe Balbi
Hi, Alan Stern writes: > On Thu, 21 Jun 2018, Roger Quadros wrote: > >> >> Can we avoid the spin_lock() and the work-queue and call usb_ep_dequeue() >> >> directly from here? >> >>> What is the purpose of the spin_lock()? >> > >> > I agree that the lock doesn't seem to be necessary. But I

Re: 答复: make a confirm for [usb: dwc3: gadget: skip Set/Clear Halt when invalid]

2018-06-29 Thread Felipe Balbi
(no top-posting!!) liangshengjun writes: > Hi balbi, > > It means that the mainline keep checking stall status first before > handle clear-halt request? as usb spec, it's actually okay to send > Clear Halt at any time. But dwc3 core hanging with macOS adb > application, so I think there is