possible race condition for usb_stor_port_reset and usb_reset_and_verify_device

2015-05-05 Thread yoma sophian
hi all: I am writing a thread and it will call sd_check_events per 1 second. 1. before system goes to hibernate, the thread works fine 2. system hibernate and restore back. 3. udev->state will keep USB_STATE_SUSPENDED before finish_port_resume 4. during above 2) and 3) sd_check_events keep poll

Re: [RFC][PATCH 1/3] usb: add a hcd notify entry in hc_driver

2015-05-05 Thread Greg Kroah-Hartman
On Mon, May 04, 2015 at 11:15:30AM +0800, Lu Baolu wrote: > This patch adds a new entry pointer in hc_driver. With this new entry, > USB core can notify host driver when something happens and host driver > is willing to be notified. One use case of this interface comes from > xHCI compatible host c

Re: [PATCH v6 0/4] scsi: ufs & ums-* & esp_scsi: fix module reference counting

2015-05-05 Thread James Bottomley
On Tue, 2015-05-05 at 10:25 -0400, Alan Stern wrote: > On Mon, 4 May 2015, James Bottomley wrote: > > > On Mon, 2015-05-04 at 16:09 -0400, Alan Stern wrote: > > > On Mon, 4 May 2015, James Bottomley wrote: > > > > > > > However, it does also strike me that these three drivers have problems > > >

[PATCH 8/9] usb:fsl:otg: Resolve OTG crash issue with another host

2015-05-05 Thread Ramneek Mehresh
Resolves kernel crash issue when a USB flash drive is inserted into USB1 port with USB2 port configured as otg. Removing "else" block so that the controller coming up in "non-otg" mode doesn't return -ENODEV. Returning "ENODEV" results in platform framework unbinding platform-drv from controller re

Re: [PATCH] USB: usbmon: Remove timeval usage for timestamp

2015-05-05 Thread Arnd Bergmann
On Tuesday 05 May 2015 11:44:33 Tina Ruchandani wrote: > 'struct timeval' uses 32-bits for its seconds field and will overflow in > the year 2038 and beyond. This patch replaces the usage of 'struct timeval' > in mon_get_timestamp() with timespec64 which uses a 64-bit seconds field > and is y2038-s