Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3402412yba; Mon, 8 Apr 2019 18:35:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOP3C7/f2gldhcHJoKYO6WSXa6J2bcA6gcQNKM/yHsuPjGc8ddy0IlDGD0jNGgiTgiDsQQ X-Received: by 2002:a63:155d:: with SMTP id 29mr30777296pgv.389.1554773723591; Mon, 08 Apr 2019 18:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554773723; cv=none; d=google.com; s=arc-20160816; b=VINuEcV7sbkQ2H46oDaSQXWRegVuiTAymonXoQFqUrnLDFYvmEDWwke1NdAmen1QxW SBfRWBsfbF3hYCFWZSeR+eXuxJHy+d5CKxm36A9yy6AI+84blpXotmqgSxldaMcdV/cg N/ZdDQ1KXioyCky/4/hcHSzr8lRd2nzzVIPWiyTn1BA2R6o0pVUQ7rEbgk/RkbzaF7vx g0kjSXZJm+iuBU5aURULdExvljjS46bosCp3YPZeGqnRaUHNyxJ/9+NDk5P5Um7RFimx Ez2smrac93n6pcluRgvkfImF6AC+uloct6Ub7Axa8wUz3iHATS9ABvguK8RfM3HR4Otj 30FQ== 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=0XfVuTBg7r7rGg7LmyKkMWM4BJb2i+r+aNGcfNAVd9g=; b=dvdhsrzZijzNicp7UnMhMGYtXpkTp3ScCAbSskfYTPTQSpGzgtMkF6HLPlqP1ZCbMr 6xI1+rXwSilhfUGqnTJNvKpCNUorI7eE+UIJ71Nm33A4WdXY3ZnxsaPDpQUnp0roPcCY KPXtGJ127oUUYtFu5VFDmNLQofiFIcPqB3NOPZJUSkE3GQWrQJekfMkN6cl+qWCYsAZQ vOfAk8sW3iWeAkvfaBApoyg1Btr+PyHqKIoIqlQMVk0tSQtDVcouGmcnMd+gp59eIfTj ro1dH6MfwiIRRQBt6+gG4G25JeQp6/tUVi4aZy0crkqUhKA/k1c4WFvg1jL4QgQ9769o SYDA== 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 h3si4763521pgk.424.2019.04.08.18.34.57; Mon, 08 Apr 2019 18:35:23 -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 S1726607AbfDIBVI (ORCPT + 99 others); Mon, 8 Apr 2019 21:21:08 -0400 Received: from netrider.rowland.org ([192.131.102.5]:51019 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726515AbfDIBVI (ORCPT ); Mon, 8 Apr 2019 21:21:08 -0400 Received: (qmail 1623 invoked by uid 500); 8 Apr 2019 21:21:07 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 8 Apr 2019 21:21:07 -0400 Date: Mon, 8 Apr 2019 21:21:07 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Kento.A.Kobayashi@sony.com cc: jejb@linux.ibm.com, , , , , , , , Subject: RE: [PATCH] usb: uas: fix usb subsystem hang after power off hub port In-Reply-To: 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, 9 Apr 2019 Kento.A.Kobayashi@sony.com wrote: > Hi, > > >So it looks as though the SCSI subsystem doesn't like to have a reset handler call scsi_remove_host. Commands dispatched by the removal routines are forced to wait for the reset recovery to finish, which won't happen until those commands have been completed. > > You mean reset handeler should not call scsi_remove_host, right? > But actually, scsi_remove_host is called from reset handler in this case. > > >Is this a bug in the SCSI core? > No, I think this is a bug in uas driver. Actually I was asking James and Martin, not you. In any case, even assuming the cause of the problem is on the USB side, it's not clear whether the bug is in uas or in usbcore. Alan Stern