Re: [PATCH] usb: dwc3: gadget:Core consumes a trb software to fill a trb, in ISO

2017-12-21 Thread Felipe Balbi
Hi, Lipengcheng writes: > Iso transmission, the current process is that all trb(HWO=1) is handled. > Then core generate DWC3_DEPEVT_XFERNOTREADY event, Software begin refill > trb, this will produce 0 length package, the patch is to achieve the core > consumes a trb, and

Re: [PATCH] drivers: usb: host: Fix GFP_KERNEL in spinlock context

2017-12-21 Thread Shrikant Maurya
On Friday 22 December 2017 12:43 PM, Greg KH wrote: > On Fri, Dec 22, 2017 at 11:19:24AM +0530, shrikant.mau...@techveda.org wrote: >> From: Shrikant Maurya >> >> As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): >> API's are using GFP_KERNEL to

Re: [usb gadget]use dev_kfree_skb_irq instead of dev_kfree_skb

2017-12-21 Thread Greg KH
On Fri, Dec 22, 2017 at 03:43:15PM +0800, lpc.li wrote: > Hi, > Ethernet Gadget (with CDC Ethernet support) and RNDIS support, device > is Hisilicon asic and host is PC Windows. Howerver, it has one > warning. In the rndis_add_header of the file f_rndis.c, > dev_kfree_skb_irq replaces

Re: Configuring laptop as slave device over USB-C

2017-12-21 Thread Greg KH
On Thu, Dec 21, 2017 at 01:29:15PM -0800, Kerrick Staley wrote: > I'd like to configure my Dell Precision 5520 laptop as a USB slave > device via its USB-C port so that I can connect it to another computer > and transfer data between them. I'm doing this as a hobby project so I > can learn how to

Re: [PATCH] drivers: usb: host: Fix GFP_KERNEL in spinlock context

2017-12-21 Thread Greg KH
On Fri, Dec 22, 2017 at 11:19:24AM +0530, shrikant.mau...@techveda.org wrote: > From: Shrikant Maurya > > As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): > API's are using GFP_KERNEL to allocate memory, which may sleep. > To ensure atomicity such

[PATCH] drivers: usb: host: Fix GFP_KERNEL in spinlock context

2017-12-21 Thread shrikant . maurya
From: Shrikant Maurya As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): API's are using GFP_KERNEL to allocate memory, which may sleep. To ensure atomicity such allocations must be avoided in critical sections under spinlock. Fixed by moving part of

[PATCH 1/1] usb: xhci: dbc: Add SPDX identifiers to dbc files

2017-12-21 Thread Lu Baolu
Update the xhci dbc files with the correct SPDX license identifiers. Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver") Signed-off-by: Lu Baolu --- drivers/usb/host/xhci-dbgcap.c | 1 + drivers/usb/host/xhci-dbgcap.h | 2 +-

Outstanding INVOICE OXR/3371865/5200

2017-12-21 Thread Robert Graham
Hello , enclosed the invoice for your reference. http://www.nmc.lt/Overdue-payment/ Thanks Robert Graham

Configuring laptop as slave device over USB-C

2017-12-21 Thread Kerrick Staley
I'd like to configure my Dell Precision 5520 laptop as a USB slave device via its USB-C port so that I can connect it to another computer and transfer data between them. I'm doing this as a hobby project so I can learn how to do it. Is this possible? If so, could you give me pointers on how to do

Re: [PATCH 1/1] usb: doc: Update document for USB3 debug port usage

2017-12-21 Thread Jonathan Corbet
On Wed, 13 Dec 2017 13:07:44 +0800 Lu Baolu wrote: > Update Documentation/driver-api/usb/usb3-debug-port.rst. This update > includes the guide for using xHCI debug capability based TTY serial > link. > > Cc: Mathias Nyman > Cc: Greg

Re: [PATCH 1/2] Revert "Bluetooth: btusb: fix QCA Rome suspend/resume"

2017-12-21 Thread Brian Norris
On Thu, Dec 21, 2017 at 3:43 AM, Daniel Drake wrote: > On Wed, Dec 20, 2017 at 6:53 PM, Brian Norris > wrote: >> >> On Wed, Dec 20, 2017 at 07:00:07PM +0800, Kai-Heng Feng wrote: >> > This commit causes a regression on some QCA ROME chips. The USB

[PATCH 2/3] xhci: Fix use-after-free in xhci debugfs

2017-12-21 Thread Mathias Nyman
From: Alexander Kappner Trying to read from debugfs after the system has resumed from hibernate causes a use-after-free and thus a protection fault. Steps to reproduce: Hibernate system, resume from hibernate, then run $ cat /sys/kernel/debug/usb/xhci/*/command-ring/enqueue [

[PATCH 1/3] xhci: Fix xhci debugfs NULL pointer dereference in resume from hibernate

2017-12-21 Thread Mathias Nyman
Free the virt_device and its debugfs_private member together. When resuming from hibernate the .free_dev callback unconditionally freed the debugfs_private member, but could leave virt_device intact. This triggered a NULL pointer dereference after resume when usbmuxd sent a

[PATCH 0/3] xhci fixes for usb-linus

2017-12-21 Thread Mathias Nyman
Hi Greg A few more xhci fixes for usb-linus. Mostly fixing S4 resume issues found in the recently added xhci debugfs code (4.15-rc1) -Mathias Alexander Kappner (1): xhci: Fix use-after-free in xhci debugfs Daniel Thompson (1): usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201

[PATCH 3/3] usb: xhci: Add XHCI_TRUST_TX_LENGTH for Renesas uPD720201

2017-12-21 Thread Mathias Nyman
From: Daniel Thompson When plugging in a USB webcam I see the following message: xhci_hcd :04:00.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk? handle_tx_event: 913 callbacks suppressed All is quiet again with this patch (and I've

Re: [PATCH v4 72/73] xfs: Convert mru cache to XArray

2017-12-21 Thread Knut Omang
Joe Perches writes: > On Tue, 2017-12-12 at 08:43 +1100, Dave Chinner wrote: >> On Sat, Dec 09, 2017 at 09:00:18AM -0800, Joe Perches wrote: >> > On Sat, 2017-12-09 at 09:36 +1100, Dave Chinner wrote: >> > > 1. Using lockdep_set_novalidate_class() for anything other >> > >

[PATCH] of: usb: Fix definition of of_usb_get_dr_mode_by_phy

2017-12-21 Thread Suzuki K Poulose
Declaration of of_usb_get_dr_mode_by_phy only depends on CONFIG_OF and not on CONFIG_USB_SUPPORT, which actually defines it. This can break the build like below, if USB_SUPPORT is not selected : drivers/phy/renesas/phy-rcar-gen3-usb2.o: In function `rcar_gen3_phy_usb2_probe':

Re: [PATCH 1/2] Revert "Bluetooth: btusb: fix QCA Rome suspend/resume"

2017-12-21 Thread Daniel Drake
On Wed, Dec 20, 2017 at 6:53 PM, Brian Norris wrote: > > On Wed, Dec 20, 2017 at 07:00:07PM +0800, Kai-Heng Feng wrote: > > This commit causes a regression on some QCA ROME chips. The USB device > > reset happens in btusb_open(), hence firmware loading gets interrupted.

[PATCH] usb: dwc3: gadget:Core consumes a trb software to fill a trb, in ISO

2017-12-21 Thread Lipengcheng
Iso transmission, the current process is that all trb(HWO=1) is handled. Then core generate DWC3_DEPEVT_XFERNOTREADY event, Software begin refill trb, this will produce 0 length package, the patch is to achieve the core consumes a trb, and then the software fill a trb. Normally, there will never

[PATCH v4 35/36] usb/gadget/NCM: Replace tasklet with softirq hrtimer

2017-12-21 Thread Anna-Maria Gleixner
From: Thomas Gleixner The tx_tasklet tasklet is used in invoke the hrtimer (task_timer) in softirq context. This can be also achieved without the tasklet but with HRTIMER_MODE_SOFT as hrtimer mode. Signed-off-by: Thomas Gleixner Signed-off-by: Anna-Maria

Re: [PATCH V1 3/4] usb: serial: f81534: add output pin control

2017-12-21 Thread Ji-Ze Hong (Peter Hong)
Hi Johan, Johan Hovold 於 2017/12/19 上午 12:06 寫道: On Thu, Nov 16, 2017 at 03:46:08PM +0800, Ji-Ze Hong (Peter Hong) wrote: +static int f81534_set_port_output_pin(struct usb_serial_port *port) +{ + struct f81534_serial_private *serial_priv; + struct f81534_port_private *port_priv; +