Received: by 10.213.65.68 with SMTP id h4csp652769imn; Fri, 6 Apr 2018 06:49:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx48+vXSmtjZIfXvDxpKhNADwCE4xG3BVxM/MY06M8M/27ZOJivRKjtPHX0tg34QlJpkIAvi2 X-Received: by 2002:a17:902:8283:: with SMTP id y3-v6mr17380779pln.308.1523022549985; Fri, 06 Apr 2018 06:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523022549; cv=none; d=google.com; s=arc-20160816; b=TOkd74gub/XF52L4MUg1ZPI867XdffKvE9bmCqyq6v0uFOpVLhXg7PrCizBe8mZtDn T2k/Y60g7/+85QA2vxMkBak8L6IJwIqnKpDkc5O4YQl5mGEeVimof2X8sv89TqK+AHPx tfQ8wemTb1lRyK9sAlhnPp2FwVFWeP5bwhp1OMbt4EmH9vfVTrJzxlRoeDzXSo4vc4Gq I+BJIP5wN7vzj9mylzNFDsBz4jLbABrxyo57qQJ+fqARZn6iiRC4ySt877QAEQE4pbmB ElGt+1/CdrJI0PtSzTORKPaYi3Qq0pGzmQahqElKzVkbGzQBU3TAkkvNP9XdxkvB8Gs4 pRGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=/MpdpIPHE+610Vv4IhVR1l8wN4emMCX0naBPatQUosk=; b=OvSi61tJSqbncaZKox+fmfRaqXqUs/2A7zKPm0AO2MivW795xvd9WqZAoClbXyNx5L V8RLmsB09KuH5LYd7LwrOnAjUCUSYCz+Q0Cq7PpkLGymv65GwPlenMS/XzPviUSsOp6p r/mpJSdyM0V5ZcfD7VOwLONiXIlU+9vrpS5oqyP6xfGLOTDlN6W0eoJ+NsbQgOY4gBls TYyVukApcQktitazQZpANo/KsutlDDvZOVZLCEOhORpY+VmCQmjtgPL+dchc9HL6Tnk5 4cl0X3lVg/YqncZRPjAXR9lYdGhYGt4aBaqGLOQYA0HC1i8neF0LldXDaAGPd/YOuU3r bBrQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si8003382pfi.302.2018.04.06.06.48.56; Fri, 06 Apr 2018 06:49:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933125AbeDFNrQ (ORCPT + 99 others); Fri, 6 Apr 2018 09:47:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39172 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932397AbeDFNrN (ORCPT ); Fri, 6 Apr 2018 09:47:13 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2F4F8899; Fri, 6 Apr 2018 13:47:13 +0000 (UTC) Date: Fri, 6 Apr 2018 15:27:20 +0200 From: Greg Kroah-Hartman To: Paul Menzel Cc: Michael Tokarev , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Ben Caradoc-Davies , it+linux-input@molgen.mpg.de Subject: Re: Commit *driver core: emit uevents when device is bound to a driver* causes regression Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22ee8cb0-5793-6ad6-d8e0-3e83a8c1361c@molgen.mpg.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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