All of lore.kernel.org
 help / color / mirror / Atom feed
* Commit *driver core: emit uevents when device is bound to a driver* causes regression
@ 2018-04-06 12:20 Paul Menzel
  2018-04-06 12:47 ` Ben Caradoc-Davies
  2018-04-06 13:18 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 6+ messages in thread
From: Paul Menzel @ 2018-04-06 12:20 UTC (permalink / raw)
  To: Michael Tokarev, Greg Kroah-Hartman
  Cc: linux-input, Linux Kernel Mailing List, Ben Caradoc-Davies

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

Dear Linux folks,


Commit 1455cf8 (driver core: emit uevents when device is bound to a
driver) [1], introduced in Linux 4.14-rc1, causes a regression in user 
space.

After disconnecting USB devices, they are still shown as plugged in [2][3].

> I seem to be having a similar issue, but with an iPhone X using USB
> to provide internet access. Even after the phone is disconnected, it
> still shows up as "loaded active plugged". The only way to fix this
> is to reboot or use a different USB port.

`git bisect` shows that commit 1455cf8 (driver core: emit uevents when 
device is bound to a driver) is at fault [4].

As user space should not break with newer Linux kernels, do you know 
what to do about that or can you think of a fix?


Kind regards,

Paul


[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1455cf8dbfd06aa7651dcfccbadb7a093944ca65
[2] https://github.com/systemd/systemd/issues/7587
[3] https://bugs.debian.org/883425
[4] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883425#68


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit *driver core: emit uevents when device is bound to a driver* causes regression
  2018-04-06 12:20 Commit *driver core: emit uevents when device is bound to a driver* causes regression Paul Menzel
@ 2018-04-06 12:47 ` Ben Caradoc-Davies
  2018-04-06 13:18 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 6+ messages in thread
From: Ben Caradoc-Davies @ 2018-04-06 12:47 UTC (permalink / raw)
  To: Paul Menzel, Michael Tokarev, Greg Kroah-Hartman
  Cc: linux-input, Linux Kernel Mailing List

Paul,

I agree that this is a regression in user space, but I would also like 
to note that, as I reported in Debian Bug#883425 ([3] and [4] below), I 
was able to restore user space functionality by upgrading to gvfs 
1.35.90-1. This later gvfs appears to support (i.e. survive) these uevents.

Kind regards,
Ben.

On 07/04/18 00:20, Paul Menzel wrote:
> Dear Linux folks,
> 
> 
> Commit 1455cf8 (driver core: emit uevents when device is bound to a
> driver) [1], introduced in Linux 4.14-rc1, causes a regression in user 
> space.
> 
> After disconnecting USB devices, they are still shown as plugged in [2][3].
> 
>> I seem to be having a similar issue, but with an iPhone X using USB
>> to provide internet access. Even after the phone is disconnected, it
>> still shows up as "loaded active plugged". The only way to fix this
>> is to reboot or use a different USB port.
> 
> `git bisect` shows that commit 1455cf8 (driver core: emit uevents when 
> device is bound to a driver) is at fault [4].
> 
> As user space should not break with newer Linux kernels, do you know 
> what to do about that or can you think of a fix?
> 
> 
> Kind regards,
> 
> Paul
> 
> 
> [1] 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1455cf8dbfd06aa7651dcfccbadb7a093944ca65 
> 
> [2] https://github.com/systemd/systemd/issues/7587
> [3] https://bugs.debian.org/883425
> [4] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883425#68
> 

-- 
Ben Caradoc-Davies <ben@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit *driver core: emit uevents when device is bound to a driver* causes regression
  2018-04-06 12:20 Commit *driver core: emit uevents when device is bound to a driver* causes regression Paul Menzel
  2018-04-06 12:47 ` Ben Caradoc-Davies
@ 2018-04-06 13:18 ` Greg Kroah-Hartman
  2018-04-06 13:24   ` Paul Menzel
  1 sibling, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2018-04-06 13:18 UTC (permalink / raw)
  To: Paul Menzel
  Cc: Michael Tokarev, linux-input, Linux Kernel Mailing List,
	Ben Caradoc-Davies

On Fri, Apr 06, 2018 at 02:20:40PM +0200, Paul Menzel wrote:
> Dear Linux folks,
> 
> 
> Commit 1455cf8 (driver core: emit uevents when device is bound to a
> driver) [1], introduced in Linux 4.14-rc1, causes a regression in user
> space.
> 
> After disconnecting USB devices, they are still shown as plugged in [2][3].
> 
> > I seem to be having a similar issue, but with an iPhone X using USB
> > to provide internet access. Even after the phone is disconnected, it
> > still shows up as "loaded active plugged". The only way to fix this
> > is to reboot or use a different USB port.
> 
> `git bisect` shows that commit 1455cf8 (driver core: emit uevents when
> device is bound to a driver) is at fault [4].
> 
> As user space should not break with newer Linux kernels, do you know what to
> do about that or can you think of a fix?

I thought we fixed this with follow-on patches, are you sure you are
using the latest 4.14.y kernel that has been released?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit *driver core: emit uevents when device is bound to a driver* causes regression
  2018-04-06 13:18 ` Greg Kroah-Hartman
@ 2018-04-06 13:24   ` Paul Menzel
  2018-04-06 13:27     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Menzel @ 2018-04-06 13:24 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Michael Tokarev, linux-input, linux-kernel, Ben Caradoc-Davies,
	it+linux-input

[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]

Dear Greg,


On 04/06/18 15:18, Greg Kroah-Hartman wrote:
> On Fri, Apr 06, 2018 at 02:20:40PM +0200, Paul Menzel wrote:

>> Commit 1455cf8 (driver core: emit uevents when device is bound to a
>> driver) [1], introduced in Linux 4.14-rc1, causes a regression in user
>> space.
>>
>> After disconnecting USB devices, they are still shown as plugged in [2][3].
>>
>>> I seem to be having a similar issue, but with an iPhone X using USB
>>> to provide internet access. Even after the phone is disconnected, it
>>> still shows up as "loaded active plugged". The only way to fix this
>>> is to reboot or use a different USB port.
>>
>> `git bisect` shows that commit 1455cf8 (driver core: emit uevents when
>> device is bound to a driver) is at fault [4].
>>
>> As user space should not break with newer Linux kernels, do you know what to
>> do about that or can you think of a fix?
> 
> I thought we fixed this with follow-on patches, are you sure you are
> using the latest 4.14.y kernel that has been released?

Here we are using Linux 4.14.30. We can try newer versions next week.


Kind regards,

Paul


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit *driver core: emit uevents when device is bound to a driver* causes regression
  2018-04-06 13:24   ` Paul Menzel
@ 2018-04-06 13:27     ` Greg Kroah-Hartman
  2018-04-06 18:26       ` Dmitry Torokhov
  0 siblings, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2018-04-06 13:27 UTC (permalink / raw)
  To: Paul Menzel
  Cc: Michael Tokarev, linux-input, linux-kernel, Ben Caradoc-Davies,
	it+linux-input

On Fri, Apr 06, 2018 at 03:24:39PM +0200, Paul Menzel wrote:
> Dear Greg,
> 
> 
> On 04/06/18 15:18, Greg Kroah-Hartman wrote:
> > On Fri, Apr 06, 2018 at 02:20:40PM +0200, Paul Menzel wrote:
> 
> > > Commit 1455cf8 (driver core: emit uevents when device is bound to a
> > > driver) [1], introduced in Linux 4.14-rc1, causes a regression in user
> > > space.
> > > 
> > > After disconnecting USB devices, they are still shown as plugged in [2][3].
> > > 
> > > > I seem to be having a similar issue, but with an iPhone X using USB
> > > > to provide internet access. Even after the phone is disconnected, it
> > > > still shows up as "loaded active plugged". The only way to fix this
> > > > is to reboot or use a different USB port.
> > > 
> > > `git bisect` shows that commit 1455cf8 (driver core: emit uevents when
> > > device is bound to a driver) is at fault [4].
> > > 
> > > As user space should not break with newer Linux kernels, do you know what to
> > > do about that or can you think of a fix?
> > 
> > I thought we fixed this with follow-on patches, are you sure you are
> > using the latest 4.14.y kernel that has been released?
> 
> Here we are using Linux 4.14.30. We can try newer versions next week.

Ah, no, 4.14.30 should be fine.

I saw the patch listed in the debian bug report, so this only happens
for the MTP type devices?  That was a really odd "filter" that it was
trying to use before.

So this is only for userspace programs, and one specifically?  And for
only one type of device?  What device, MTP devices?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Commit *driver core: emit uevents when device is bound to a driver* causes regression
  2018-04-06 13:27     ` Greg Kroah-Hartman
@ 2018-04-06 18:26       ` Dmitry Torokhov
  0 siblings, 0 replies; 6+ messages in thread
From: Dmitry Torokhov @ 2018-04-06 18:26 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Paul Menzel, Michael Tokarev, linux-input, lkml,
	Ben Caradoc-Davies, it+linux-input

On Fri, Apr 6, 2018 at 6:27 AM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Fri, Apr 06, 2018 at 03:24:39PM +0200, Paul Menzel wrote:
>> Dear Greg,
>>
>>
>> On 04/06/18 15:18, Greg Kroah-Hartman wrote:
>> > On Fri, Apr 06, 2018 at 02:20:40PM +0200, Paul Menzel wrote:
>>
>> > > Commit 1455cf8 (driver core: emit uevents when device is bound to a
>> > > driver) [1], introduced in Linux 4.14-rc1, causes a regression in user
>> > > space.
>> > >
>> > > After disconnecting USB devices, they are still shown as plugged in [2][3].
>> > >
>> > > > I seem to be having a similar issue, but with an iPhone X using USB
>> > > > to provide internet access. Even after the phone is disconnected, it
>> > > > still shows up as "loaded active plugged". The only way to fix this
>> > > > is to reboot or use a different USB port.
>> > >
>> > > `git bisect` shows that commit 1455cf8 (driver core: emit uevents when
>> > > device is bound to a driver) is at fault [4].
>> > >
>> > > As user space should not break with newer Linux kernels, do you know what to
>> > > do about that or can you think of a fix?
>> >
>> > I thought we fixed this with follow-on patches, are you sure you are
>> > using the latest 4.14.y kernel that has been released?
>>
>> Here we are using Linux 4.14.30. We can try newer versions next week.
>
> Ah, no, 4.14.30 should be fine.
>
> I saw the patch listed in the debian bug report, so this only happens
> for the MTP type devices?  That was a really odd "filter" that it was
> trying to use before.
>
> So this is only for userspace programs, and one specifically?  And for
> only one type of device?  What device, MTP devices?

So looking at reports, gvfs is fixed, upowerd simply uses g_warning()
for actions it does nto understand and I'll send a patch lowering this
to g_debug(); what else is having trouble with the new actions?

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-06 18:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06 12:20 Commit *driver core: emit uevents when device is bound to a driver* causes regression Paul Menzel
2018-04-06 12:47 ` Ben Caradoc-Davies
2018-04-06 13:18 ` Greg Kroah-Hartman
2018-04-06 13:24   ` Paul Menzel
2018-04-06 13:27     ` Greg Kroah-Hartman
2018-04-06 18:26       ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.