Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp234418ybi; Fri, 7 Jun 2019 07:14:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjXsqgoQllh/j20wi7dw45pvsjtFWs4aJvArgEf8IGwkZa5sSkDFovayIM7S4eWHmuCOZH X-Received: by 2002:a63:d2:: with SMTP id 201mr550273pga.121.1559916866330; Fri, 07 Jun 2019 07:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559916866; cv=none; d=google.com; s=arc-20160816; b=v10nz4tek4A/o5yX9kQGAtBFjyPNLLcmTu9UprsiPNyKNgL+X3ZimT01ImceUSiVnm jrs+YAvnhY6ZKT9LWNmO4jW0qs8bti4zV0HaYeOYESn7wDJVxsOzd+MgBVNbC1gUxTVm Y8PIQE5ABFpOyx5aPV9W/DDMY7G86WppTmlsAEnbZODZ46ODpkaRf5nkSMwX4pq047YU z4SHnSs07ceZZxKvShAX5TaT8aB2q6Wb4Yc7qSPmChkkuFK1nSCRiqJg1p6gm4ZnHJt8 Af7I8IYZgtJ5lhobfjmm4qOZT2jnZXZnvVppTa/GwBuB2Q4rMfjHsRTgiE9RndbslxTj QHqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=W+ai+CJP6DQE/Ctyp5KaGNd11C4l9zmX3Qfkru+c4+M=; b=T2Zp7AgpqIiN2u3O/CJCBcnBhfE2/0JuAdNQnvFztKJxSjvF6Za8JKwauVbCCW0T8l CfKveG0ltH3G+hZ+6DcvmaIUx0FBzfycNbY0vhqZwUwOrAEqkixlbqQW8XpxPVqdtTYD m0qc+PSP1Ch8FAEs0RnGmnEth5UlWUqTL+ea/+zSx3/OgOhNfQHqb6HqF3BnDRbA+SBS n0vrHWprvbt7CtBmqAGn9g7SsCjr7ff6SJJ37+Lrd+usrVbkJpSnwoLpq5hCs7N9ALUY wReYJnjIDx/e5ctpSnzXxwuS5Ph8a/KS2/tJu/IaHbBWRiVr5aFHyrn8JQWuJ6JVWf4Y 5fgA== 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 37si149781pld.231.2019.06.07.07.14.10; Fri, 07 Jun 2019 07:14:26 -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 S1729283AbfFGOBb (ORCPT + 99 others); Fri, 7 Jun 2019 10:01:31 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:34718 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1729262AbfFGOBb (ORCPT ); Fri, 7 Jun 2019 10:01:31 -0400 Received: (qmail 1660 invoked by uid 2102); 7 Jun 2019 10:01:30 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Jun 2019 10:01:30 -0400 Date: Fri, 7 Jun 2019 10:01:30 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Felipe Balbi cc: Greg Kroah-Hartman , David Howells , , , , , , , , , Subject: Re: [PATCH 09/10] usb: Add USB subsystem notifications [ver #3] In-Reply-To: <87imthdhjb.fsf@linux.intel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 Jun 2019, Felipe Balbi wrote: > Hi, > > Greg Kroah-Hartman writes: > > On Thu, Jun 06, 2019 at 10:55:24AM -0400, Alan Stern wrote: > >> On Thu, 6 Jun 2019, Greg Kroah-Hartman wrote: > >> > >> > On Thu, Jun 06, 2019 at 10:24:18AM -0400, Alan Stern wrote: > >> > > On Thu, 6 Jun 2019, David Howells wrote: > >> > > > >> > > > Add a USB subsystem notification mechanism whereby notifications about > >> > > > hardware events such as device connection, disconnection, reset and I/O > >> > > > errors, can be reported to a monitoring process asynchronously. > >> > > > >> > > USB I/O errors covers an awfully large and vague field. Do we really > >> > > want to include them? I'm doubtful. > >> > > >> > See the other patch on the linux-usb list that wanted to start adding > >> > KOBJ_CHANGE notifications about USB "i/o errors". > >> > >> That patch wanted to add notifications only for enumeration failures > >> (assuming you're talking about the patch from Eugeniu Rosca), not I/O > >> errors in general. > > > > Yes, sorry, I was thinking that as a "I/O failed in enumeration" :) > > > >> > So for "severe" issues, yes, we should do this, but perhaps not for all > >> > of the "normal" things we see when a device is yanked out of the system > >> > and the like. > >> > >> Then what counts as a "severe" issue? Anything besides enumeration > >> failure? > > > > Not that I can think of at the moment, other than the other recently > > added KOBJ_CHANGE issue. I'm sure we have other "hard failure" issues > > in the USB stack that people will want exposed over time. > > From an XHCI standpoint, Transaction Errors might be one thing. They > happen rarely and are a strong indication that the bus itself is > bad. Either bad cable, misbehaving PHYs, improper power management, etc. Don't you also get transaction errors if the user unplugs a device in the middle of a transfer? That's not the sort of thing we want to sent notifications about. Alan Stern