Received: by 10.223.164.202 with SMTP id h10csp426504wrb; Fri, 10 Nov 2017 08:31:04 -0800 (PST) X-Google-Smtp-Source: AGs4zMY+mTpTU/UiAiMicqZzSmHbe33o24X695/1Kcq7AFJyTs1FbR1atu9mD+LAxzkH8X0I1E+P X-Received: by 10.101.66.2 with SMTP id c2mr832594pgq.403.1510331464787; Fri, 10 Nov 2017 08:31:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510331464; cv=none; d=google.com; s=arc-20160816; b=FHI823FVEOCwYfKBG54fC7EtsK753yzGoq/B8EWLc9JXWMXKyNc98uioBDLWL8I4Fs 7yoovnjfQaByzjweDxzVAqHIW+Nh11tiHujYEOuQhsCqUZXIxHrA8vo56//ZgCt7nurA bF8Ud6/FKVHlOBI8h44Ufxh2w3Dp6iIb1Lq//VPnU2d6PQhzN3qN/zw6ynDTKqhwg6ta FINCjs8HqgpLjbspPWsC3EEmKjggRT7a6J+KAgaZg6vzlPiUWwVCXTRwCltU+Ag7Zztq nfdJLL3Myiz/WvJ0En7Rj8BnHfLpSQJp24u1LNNp9ZUPub/fEPob0kja+JF7svzgZI9g Pzkw== 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:arc-authentication-results; bh=4teSzwZTyKU7uiVB9k0PsUNbLPizToFHEFF3qRcFals=; b=U45KXDjq7YPlz4m8RRlAj4iA5PRlhqShMFs+1fTADTVnFitMwa9+k3lDc411tNwtX3 X12cK67yQBalTtG2fKHdE7LJiYCWHLXyOlC7RxBeSIsUoolA2wHFHY4clJ9eMXPuawrF efaD1cw2ugiU5PrTZEwWggOYlhEFpooSE/INa5j/RAFGS+LuTYH21cIjiBwmC2m4gNPm 8gyt181h0xBTR+IqvNaarQ8eu81eSnUvp4HyfwsWaQrySApF9Lt4MLL6T46mIqsNlVZs JtD6eHDpK/Ny7Xde63vrx7owMNeFc7y/b6opIErKxHAEr+sVLSx+JCYakj/hxtJl10Nq T5YQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16si6198007pll.573.2017.11.10.08.30.53; Fri, 10 Nov 2017 08:31:04 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753312AbdKJQaP (ORCPT + 82 others); Fri, 10 Nov 2017 11:30:15 -0500 Received: from netrider.rowland.org ([192.131.102.5]:47735 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752241AbdKJQaO (ORCPT ); Fri, 10 Nov 2017 11:30:14 -0500 Received: (qmail 15834 invoked by uid 500); 10 Nov 2017 11:30:13 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Nov 2017 11:30:13 -0500 Date: Fri, 10 Nov 2017 11:30:13 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Abhijeet@vger.kernel.org, cc: Greg Kroah-Hartman , Jaejoong Kim , Jonathan Corbet , Abhijeet Kumar , Mauro Carvalho Chehab , , Subject: Re: [PATCH] USB :core :Prevent USB devices to autosuspend while setting interface In-Reply-To: <1510329728-26491-1-git-send-email-abhijeet.kumar@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, 10 Nov 2017 Abhijeet@vger.kernel.org wrote: > From: Abhijeet Kumar > > Runtime resume USB device in order to ensure that PM framework knows > that the we might be using the device in a short time and doesn't > autosuspend the device while we update it's interface. Without this > change, if device autosuspends and the kernel polling for block > devices is disabled through sysfs at runtime or through bootargs, then > storage devices might never unmount since the disconnect IRQ wont be > kicked at all. > > Signed-off-by: Abhijeet Kumar I don't see any reason for doing this. The places that call this subroutine will already have made sure that the device is active. There's no need for an additional runtime_get. As for disconnect IRQs, they occur whether the device is suspended or not (they are generated by the host controller, not by the device). Alan Stern From 1583695921271455278@xxx Fri Nov 10 16:08:45 +0000 2017 X-GM-THRID: 1583683780321407589 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread