Re: [PATCH v2] PCI / PM: Avoid using device_may_wakeup() for runtime PM

2017-06-29 Thread Rafael J. Wysocki
On Friday, June 23, 2017 02:58:11 PM Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > pci_target_state() calls device_may_wakeup() which checks whether > or not the device may wake up the system from sleep states, but > pci_target_state() is used for runtime PM too. > > Since runtime PM is

Attaching multiple USB gadget devices per peripheral controller

2017-06-29 Thread Josh Litherland
I've been tinkering with developing a USB touchscreen gadget device on a board using a Mentor USB peripheral controller (driver musb-hdrc). The gadget I'm developing runs in userspace via gadgetfs. From what I've been able to tell, there's no way to run multiple gadget devices simultaneously using

Re: Moxa UPort 1150 and RS-422/485… what's the "proper" way to switch modes

2017-06-29 Thread Alan Cox
So IMHO there are two cases 1. The configuration is fixed in the hardware - in which case we should automatically set it in kernel, or from device tree. 2. The configuration is soft - in which case you need an ioctl you can use on the port to change it - irrespective of whether sysfs also handles

Re: Null Pointer Dereference in mceusb

2017-06-29 Thread Sebastian
Sorry for the long delay, Johan. 2017-06-01 9:20 GMT+02:00 Johan Hovold : > [ +CC: media list ] > > On Wed, May 31, 2017 at 08:25:42PM +0200, Sebastian wrote: > > What is the lsusb -v output for your device? And have you successfully > used this device with this driver before? > No, the device wa

Congratulations Lucky Winner WCL10***22

2017-06-29 Thread WCLC
Hello Lucky Winner, After a random automated selection of email addresses over the Internet, your email emerged as one of our special winners to receive $3,524,037.00 and is attached to the following details:. File Category:.

Re: [USB] f16443a034: EIP:arch_local_irq_restore

2017-06-29 Thread Alan Stern
Felipe: On Thu, 29 Jun 2017, kernel test robot wrote: > FYI, we noticed the following commit: > > commit: f16443a034c7aa359ddf6f0f9bc40d01ca31faea ("USB: gadgetfs, dummy-hcd, > net2280: fix locking for callbacks") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > in

RE: [PATCH 4/8] usb: bdc: Small code cleanup

2017-06-29 Thread David Laight
From: Al Cooper > Sent: 28 June 2017 15:56 > On Wed, Jun 28, 2017 at 4:47 AM, David Laight wrote: > >> > >> temp = bdc_readl(bdc->regs, BDC_BDCSC); > >> if ((temp & BDC_P64) && > >> !dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64))) { > >> - dev_dbg(bd

Warning dump on OMAP-L138 when g_zero module is removed

2017-06-29 Thread Sekhar Nori
4.12.0-rc7-next-20170629-10695-g3fb8ba638d53 #76 Hardware name: Generic DA850/OMAP-L138/AM18x Backtrace: [] (dump_backtrace) from [] (show_stack+0x18/0x1c) r7:0009 r6: r5:bf3a19f0 r4: [] (show_stack) from [] (dump_stack+0x20/0x28) [] (dump_stack) from [] (__warn+0xdc

possible circular locking dependency detected in musb_dsps in gadget mode

2017-06-29 Thread Tal Shorer
when unregistering the configfs driver on my beaglebone black (running linux-4.12-rc6), this happens: root@beaglebone:/sys/kernel/config/usb_gadget/g_ecm|0 # echo > UDC [ 39.074784] [ 39.076361] == [ 39.082815] WARNING: possible circular loc

Re: Crash in gs_write_room() in kernel 4.4, and your gs_start_tx() patch

2017-06-29 Thread Baolin Wang
On 29 June 2017 at 07:01, Stephen Warren wrote: > > > Baolin, > > I have a question about the following commit: > > 511a36d2f357 "usb: gadget: Add the gserial port checking in gs_start_tx()" > >> When usb gadget is set gadget serial function, it will be crash in below >> situation. >> >> It will c

[bug report] USB: add Freescale high-speed USB SOC device controller driver

2017-06-29 Thread Dan Carpenter
Hello Li Yang, The patch b504882da539: "USB: add Freescale high-speed USB SOC device controller driver" from Apr 23, 2007, leads to the following Smatch warning: drivers/usb/gadget/udc/fsl_udc_core.c:917 fsl_ep_queue() warn: variable dereferenced before check 'req' (see line 880)

Re: [PATCH 2/2] usb: dwc3: gadget: lazily map requests for DMA

2017-06-29 Thread Felipe Balbi
Hi, Jack Pham writes: >> Jack Pham writes: >> > On Wed, May 17, 2017 at 01:31:12PM +0300, Felipe Balbi wrote: >> >> Some functions might want to have very, very long request queues. We >> >> can't make any assumptions about how many requests we *are* able to >> >> map, so instead of mapping req

[PATCH] usb: dwc3: gadget: only unmap requests from DMA if mapped

2017-06-29 Thread Jack Pham
A recent optimization was made so that a request put on the pending_list wouldn't get mapped for DMA until just before preparing a TRB for it. However, this poses a problem in case the request is dequeued or the endpoint is disabled before the mapping is done as that would lead to dwc3_gadget_giveb

Re: [PATCH 2/2] usb: dwc3: gadget: lazily map requests for DMA

2017-06-29 Thread Jack Pham
Hi Felipe, On Thu, Jun 29, 2017 at 08:48:17AM +0300, Felipe Balbi wrote: > Hi Jack, > > Jack Pham writes: > > On Wed, May 17, 2017 at 01:31:12PM +0300, Felipe Balbi wrote: > >> Some functions might want to have very, very long request queues. We > >> can't make any assumptions about how many req

Re: Linux USB-Serial and DSR flow control

2017-06-29 Thread Johan Hovold
On Wed, Jun 28, 2017 at 08:57:10PM +0200, Zaerc wrote: > > On 2017-06-27 10:00, Johan Hovold wrote: > > > Sure, thanks. I'll send you my address. I assume the firmware is free > > software? > > Cool, you're welcome. As it's just a modified version of the LUFA > USBtoSerial example project, it

Re: [PATCH] usb: dwc2: gadget: Use ep->index in conext of FIFO registers

2017-06-29 Thread Felipe Balbi
Hi, Minas Harutyunyan writes: > It's reverting patch for commit "usb: dwc2: gadget: > use ep->fifo_index in context of FIFO registers". > DTXFSTSn indexation based on EP number not TxFIFO number. > > Signed-off-by: Minas Harutyunyan have a look at 'git revert' -- balbi signature.asc Descri

[PATCH] usb: dwc2: gadget: Use ep->index in conext of FIFO registers

2017-06-29 Thread Minas Harutyunyan
It's reverting patch for commit "usb: dwc2: gadget: use ep->fifo_index in context of FIFO registers". DTXFSTSn indexation based on EP number not TxFIFO number. Signed-off-by: Minas Harutyunyan --- drivers/usb/dwc2/gadget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/

Re: BUG: usb: dwc2: gadget: DTXFSTSn are actually endpoint indexed

2017-06-29 Thread Minas Harutyunyan
On 6/26/2017 9:55 PM, Jimmy Perchet wrote: > Hello, > > According to DWC2 databook( 3.20a in my case), DTXFSTSn registers are > indexed by endpoint number. This can be verified by comparing "fifo" and > "regdump" in debugfs (as long as the configuration is not trivial). > Therefore, in my humble op