Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3614842imm; Mon, 25 Jun 2018 01:24:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXCefH+tt3LYNAFS3sLWbRYeuh35hMOhxwg6iJSMfzIIqC3g53/Qr9mK3ge8bDT6SPKPWm X-Received: by 2002:a63:647:: with SMTP id 68-v6mr3511551pgg.205.1529915055914; Mon, 25 Jun 2018 01:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529915055; cv=none; d=google.com; s=arc-20160816; b=RMevCg5ovjso2kOYlTkMpbxDxnSAH05cO/HKADolydQvfiTGkWrAYaHSv8NT/QeeGv ym5iqPIrJ5aFW/nAXSRV0J4QV5K72GkMkL4P4GkBIKe7Ejqmx3BvGChIDheLM3UWudrh xtl428NrnNhclbGlQpuhWcCbjd/izDgfFqO9bXyTSYNQXtQKPVGw0QIWY34mqcVzMOj3 53Pjh3BHdElfl7WBa8hQTatucauqcjw/UN2dWLgXB8lEbrSmmGgQw8SaLBVO2gb4uqCh lepKXO7LIGWvoovVTqhxmsJD4VzABbLPo41inYimYcGIBinmpojCITLixylp0aPaVSpF LS3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=vzbNKQhIo6wLV9tyo9VuoFte+nRU1nfWoZ7ZqESur5I=; b=dIKwH1DljejMzm2F6Y2D2t+U94DzIGFTZ/wzyFh5w8iL+Az99B/aLIS5L84GKuYDVW 1EbxPu1wLrWJbr349g13DfQj024huipMyrUSgmeSYDsLs/0ElB1Wh1vyiNlbW4B+/YvB djtLnVTN2z5tiG7iJzmI2STfunlsPhK78uRdympj/bUuK6J6BILn/uV8oe8sBb1X92Bv HmQML49T2CsCfv1s8drYkph8zj4A0cgTKAhGdKBAXipTFU6ptcDSAHHPnW1616l/TAYV Yycvr3XS+gMQz5A5HIV6GLPYKxuMKiUcDKphuQg/8u8QqlsvynnP0+qLgDJAjTr9e4h+ uoww== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1-v6si10971912pgq.183.2018.06.25.01.24.01; Mon, 25 Jun 2018 01:24:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752625AbeFYIXU (ORCPT + 99 others); Mon, 25 Jun 2018 04:23:20 -0400 Received: from mga05.intel.com ([192.55.52.43]:40991 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbeFYIXS (ORCPT ); Mon, 25 Jun 2018 04:23:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2018 01:23:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,269,1526367600"; d="scan'208";a="235333664" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.164]) ([10.237.72.164]) by orsmga005.jf.intel.com with ESMTP; 25 Jun 2018 01:23:16 -0700 Subject: Re: [PATCH] usb: xhci: dbc: Don't decrement runtime PM counter if DBC is not started To: Kai-Heng Feng , mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180625052004.15298-1-kai.heng.feng@canonical.com> From: Mathias Nyman Message-ID: <59b5789b-a33d-6a61-af53-dc6feba8951f@linux.intel.com> Date: Mon, 25 Jun 2018 11:25:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180625052004.15298-1-kai.heng.feng@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.06.2018 08:20, Kai-Heng Feng wrote: > pm_runtime_put_sync() gets called everytime in xhci_dbc_stop(). > > If dbc is not started, this makes the runtime PM counter incorrectly > becomes 0, and calls autosuspend function. Then we'll keep seeing this: > [54664.762220] xhci_hcd 0000:00:14.0: Root hub is not suspended > > So only calls pm_runtime_put_sync() when dbc was started. > > Signed-off-by: Kai-Heng Feng Thanks, nice catch. Adding to queue -Mathias