Re: [PATCH] Replace a single-value sscanf() call with a call to kstrtou32(), as recommended by checkpatch.pl.

2014-08-30 Thread Greg KH
On Sat, Aug 16, 2014 at 07:41:07PM -0400, Lars R. Damerow wrote: > Signed-off-by: Lars R. Damerow > --- > drivers/staging/usbip/vhci_sysfs.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/usbip/vhci_sysfs.c > b/drivers/staging/usbip/vhci_sysfs.c >

Detecting removed ttyUSBn device with poll().

2014-08-30 Thread Dave Mielke
is there any way to detect that a ttyUSBn serial device has gone away when monitoring it for input with poll() (i.e. with POLLIN set)? I've tried also setting POLLHUP and POLLERR, although the documentation says that isn't necessary. I've also tried setting POLLRDHUP. I've tried enabling the HUP

Re: Detecting removed ttyUSBn device with poll().

2014-08-30 Thread Greg KH
On Sat, Aug 30, 2014 at 04:56:52PM -0400, Dave Mielke wrote: > is there any way to detect that a ttyUSBn serial device has gone away when > monitoring it for input with poll() (i.e. with POLLIN set)? I've tried also > setting POLLHUP and POLLERR, although the documentation says that isn't > nece

Re: Problem with USB-to-SATA adapters (was: AS2105-based enclosure size issues with >2TB HDDs)

2014-08-30 Thread Alan Stern
On Fri, 29 Aug 2014, Matthew Dharm wrote: > Is there an 'easy' way to override the detected size of a storage > device from userspace? If we had that, someone could write a helper > application which looked for this particular fubar and try to Do The > Right Thing(tm), or at least offer the user

Re: [PATCH v2 6/9] usb: xhci: Add NVIDIA Tegra xHCI host-controller driver

2014-08-30 Thread Greg Kroah-Hartman
On Mon, Aug 18, 2014 at 10:08:22AM -0700, Andrew Bresticker wrote: > Add support for the on-chip xHCI host controller present on Tegra SoCs. > > The driver is currently very basic: it loads the controller with its > firmware, starts the controller, and is able to service messages sent > by the con

Re: Problem with USB-to-SATA adapters (was: AS2105-based enclosure size issues with >2TB HDDs)

2014-08-30 Thread Douglas Gilbert
On 14-08-30 05:15 PM, Alan Stern wrote: On Fri, 29 Aug 2014, Matthew Dharm wrote: Is there an 'easy' way to override the detected size of a storage device from userspace? If we had that, someone could write a helper application which looked for this particular fubar and try to Do The Right Thi

Re: Detecting removed ttyUSBn device with poll().

2014-08-30 Thread Dave Mielke
[quoted lines by Greg KH on 2014/08/30 at 14:08 -0700] >You should get a hangup signal on the device if it is removed, have you >tried that? SIGHUP isn't mentioned in the code, so it's not being blocked. I just ran the code with gdb to see, for sure, if any signal was being sent. Nothing happene

Re: Problem with USB-to-SATA adapters (was: AS2105-based enclosure size issues with >2TB HDDs)

2014-08-30 Thread Matthew Dharm
On Sat, Aug 30, 2014 at 2:15 PM, Alan Stern wrote: > On Fri, 29 Aug 2014, Matthew Dharm wrote: > >> Is there an 'easy' way to override the detected size of a storage >> device from userspace? If we had that, someone could write a helper >> application which looked for this particular fubar and tr

Re: Detecting removed ttyUSBn device with poll().

2014-08-30 Thread Greg KH
On Sat, Aug 30, 2014 at 07:29:18PM -0400, Dave Mielke wrote: > [quoted lines by Greg KH on 2014/08/30 at 14:08 -0700] > > >You should get a hangup signal on the device if it is removed, have you > >tried that? > > SIGHUP isn't mentioned in the code, so it's not being blocked. I just ran the > co

Re: [PATCH] Replace a single-value sscanf() call with a call to kstrtou32(), as recommended by checkpatch.pl.

2014-08-30 Thread Lars R. Damerow
Certainly, will do. > On Aug 30, 2014, at 13:13, Greg KH wrote: > >> On Sat, Aug 16, 2014 at 07:41:07PM -0400, Lars R. Damerow wrote: >> Signed-off-by: Lars R. Damerow >> --- >> drivers/staging/usbip/vhci_sysfs.c | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/d

Re: Detecting removed ttyUSBn device with poll().

2014-08-30 Thread Dave Mielke
[quoted lines by Greg KH on 2014/08/30 at 17:01 -0700] >What does strace say? Good suggestion - thanks. I should've tried that in the first place, and am sorry for having bothered you. In fact, both POLLHUP and POLLERR were being set, but the code was losing that fact. The code actually did res