Received: by 10.213.65.68 with SMTP id h4csp937176imn; Fri, 6 Apr 2018 11:29:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Chgv86zviAbdfW0HGRFu7jhk+QrRFWc81NR9KI30RxgNc3wwdN2vWqWGKFt3TNNVWTnCp X-Received: by 10.99.117.79 with SMTP id f15mr2122700pgn.47.1523039370519; Fri, 06 Apr 2018 11:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523039370; cv=none; d=google.com; s=arc-20160816; b=V6X4Z5bED/qVpc1ElXn4evj7vHf2HJTqWILVGY83x2lB8ssxA/x5eyGO8iEmxGOKyx R2gHxU7s2TJtDJQ6knLcaQZxO5NOgOXvBKXzfnYew/2l4SzBfOg6/tPLxdMuZJT0Fvq1 Cc8mGGtBrC11JAhFPz9zMz+I1905xA5H5QM0CIWGnt0r0CLFBkmwXsh2srsG3LZ1BSP+ VE0m+Ziff94yrwB/3RuniPZdee2S710CS8SFG30Umwa6FNs837rdrAkxIt/F9gupTRWg Uh09l4L7QYIvTOjFUrv0TFav8P/SnwiB9OWejNwECHbvdpzhhG7jynaed8rOXXDhyYRD lMbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=91jpanwu1HWijaJmkGRMLSjlu0a6nq2Wb+ll4ylTrH8=; b=hVd4/JDTdoUcxNWq8k9k2+/K1rCPb+DKphC/eyhu/5pxhpF866hdSooQxghur8eeKz ms0ZCRUHTGa6RVYejFrKLMgzr9KsLivuIipXFVtTyFYtKZwEpvKS7/7N4lt9/E623UGj NZyPLTjbupYSmXgjKaP2IQI4ban9M6ZGQXVaPxj7DILaJ8NQrYoXV/5flnnoVwZs0/Rt 1rv72JcNELhqkE0ymkPQIodDW85a3aZyJIlvAZGXFDUk/B+vaaxPskElmbnYntI1AuHq mP560pkGe7Li786GFExWZxXiuXg1YC5Pr77DNogLOw0LHq/S1c+LpD2/S9n3hkzTC3OK vxKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z082PW1U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y62si8389437pfd.309.2018.04.06.11.28.53; Fri, 06 Apr 2018 11:29:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z082PW1U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751743AbeDFS0E (ORCPT + 99 others); Fri, 6 Apr 2018 14:26:04 -0400 Received: from mail-ua0-f172.google.com ([209.85.217.172]:43627 "EHLO mail-ua0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417AbeDFS0C (ORCPT ); Fri, 6 Apr 2018 14:26:02 -0400 Received: by mail-ua0-f172.google.com with SMTP id u4so1257112uaf.10; Fri, 06 Apr 2018 11:26:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=91jpanwu1HWijaJmkGRMLSjlu0a6nq2Wb+ll4ylTrH8=; b=Z082PW1U1T5OIf/b9qcnf/XdL4KYyGd0RSawA1xGnKpHmiZRVcs0NfBsYOFvkqdUCX v5jvlhn1ZHVAD8U7a0SCjyQm0v5QUHRTB8NbT9jcZUnDa+UR5tXoNXA6RXvZiRZSYyIQ uAjED5xvbJ3Jr3GBYyA07u0KwcTKOBDpaF9SI9wK+H3gBUA71ZEJIVrUKEuT4FnAYBjf hir0kDvFE0v6ObIcb5XR3Xr46BdSbdcmDgPGUzvQIfOz91NJ1C3x0Fr8BAx12/QlctLu IhVCNUE4aco2l4Z3tMCkdtQZpR40CajWG7T2fTX1V+9zsmpu4nusuEhBptq+ZLqVh1GE SnPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=91jpanwu1HWijaJmkGRMLSjlu0a6nq2Wb+ll4ylTrH8=; b=RWRP2efH5MP9iP4jAVQrqqv6mpYeU9U3VihO9gxtTJ0qWc0tK7oZW9HLo5R5nuOKNI nYKoK9m16a0Jjseyex8Qg8juUfSAISSchAWsg5eLf1bYLTDYkyxuhlB+IUVyvWjA5R2R ym22X17arp9EHAFKiI+yZCcipzsviVV8KtkNMKd1VrQTbbkHNY8cu6iP51I2XQijSy6B XcAtrYN9v3Kfxaq6/maPo2/qb8RnFo+7t+xoB5gkfbdjrgOuqc61UF9t+mFO6HYvikcS AS9zhW6LCz/FBk3EadgEyDK4ILXD4UsALeHsDALycBm1XbRo70KRts39pf+vcAShpVC4 JdQA== X-Gm-Message-State: ALQs6tB+54RCsNBOG9ODPh9vZPo00Z6GXVCfqOXOwQIrloYZoThGCwYD jBCPQb+2uO191N03rgxGstCj7Ubd7c7seIahxw8SQg== X-Received: by 10.176.48.239 with SMTP id d15mr18029461uam.0.1523039161535; Fri, 06 Apr 2018 11:26:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.43.4 with HTTP; Fri, 6 Apr 2018 11:26:00 -0700 (PDT) In-Reply-To: <20180406132720.GA16189@kroah.com> References: <8d22cfe6-90b6-eb86-d82e-0e037bfbed4e@molgen.mpg.de> <20180406131820.GA4555@kroah.com> <22ee8cb0-5793-6ad6-d8e0-3e83a8c1361c@molgen.mpg.de> <20180406132720.GA16189@kroah.com> From: Dmitry Torokhov Date: Fri, 6 Apr 2018 11:26:00 -0700 Message-ID: Subject: Re: Commit *driver core: emit uevents when device is bound to a driver* causes regression To: Greg Kroah-Hartman Cc: Paul Menzel , Michael Tokarev , "linux-input@vger.kernel.org" , lkml , Ben Caradoc-Davies , it+linux-input@molgen.mpg.de Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 6, 2018 at 6:27 AM, Greg Kroah-Hartman 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