Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4464516ybi; Tue, 11 Jun 2019 07:07:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8y0QAeZ7gvxWn1FA+DEnVlsB2tP01dmk4vAFBeNso3UCvoduzBVe/WyjRVXwWnLZFYpp8 X-Received: by 2002:a17:902:9a82:: with SMTP id w2mr57911863plp.291.1560262036065; Tue, 11 Jun 2019 07:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560262036; cv=none; d=google.com; s=arc-20160816; b=MVsYkecMak8xW3bvgF9kpPTJRyNg+H6ImBAkF5UhkgtKfBB9xuMtXgJpGwfUsJWBhi eRbeSpiigeJDvfO5ZEYJkGneUpe7LKnn92UddjrCpbR4n6z65mpzaKCskLkNm7dLw/4/ h2xP+Fu7JAKuth6+rrPRlLS0bUn8HPLGskDr6duweWE5Rhpy4oS50gmV1ElVsrFGF3M/ SrRH7S/gxgta5B1s+7mi0c2Ihs7pWlcEpNjGIBmIl5e9nCbMoWJagqhigDTmJL02f/mV YspxVZb3YwcB1xxvpGi17g8SJG8DEAM49WWKit2AuNyQ2PwOl8LGLd7W2hNzZVk4W8O5 YQWg== 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=wGQlBEpEQ9Bfv3AFN7i10QiM+1PLBkgzt8gW1ufl9hU=; b=OGi/kTRGuAqlHapW2xN13jrR73YpTxkuLPmzFEjAiKfM+AjiPCyTBnaKXO30X42Zin yeKYdIF/qLajvGoIK62BjI6Z0SLs7AXOx1+PT3GOWw/tjPNPQVvl82GW/On4yqWs+HQR 2MIygdXs5uT0UZXKa01N93uk7x7HR9l1/Wj1LJNcxXJ3qN/V3SKOHmef6hXZRdyK2oOW 7WK91Gh61HxvVamUMRgpkntbaV8m166cy4Cg7rFJ/TZbJMoqySn8+xO7cuanLUVbJkU/ B/hLOH4+oysUyVhMqHJQHslqC6p5bMrUNgfPdsHVk6R9s0A7GEctBDDYHVSuWy2KDDJb 6l+g== 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 d16si13105148pfr.229.2019.06.11.07.06.59; Tue, 11 Jun 2019 07:07:16 -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 S2391363AbfFKNxF (ORCPT + 99 others); Tue, 11 Jun 2019 09:53:05 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:35686 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1729011AbfFKNxE (ORCPT ); Tue, 11 Jun 2019 09:53:04 -0400 Received: (qmail 1733 invoked by uid 2102); 11 Jun 2019 09:53:03 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 11 Jun 2019 09:53:03 -0400 Date: Tue, 11 Jun 2019 09:53:03 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Felipe Balbi cc: Mathias Nyman , Greg Kroah-Hartman , David Howells , , , , , , , , , Subject: Re: [PATCH 09/10] usb: Add USB subsystem notifications [ver #3] In-Reply-To: <875zpcfxfk.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 Tue, 11 Jun 2019, Felipe Balbi wrote: > >> >> > 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. > > Mathias, do we get Transaction Error if user removes cable during a > transfer? I thought we would just get Port Status Change with CC bit > cleared, no? Even if xHCI doesn't give Transaction Errors when a cable is unplugged during a transfer, other host controllers do. Sometimes quite a lot -- they continue to occur until the kernel polls the parent hub's interrupt ep and learns that the port is disconnected, which can take up to 250 ms. Alan Stern