Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp778287ybz; Fri, 24 Apr 2020 09:07:54 -0700 (PDT) X-Google-Smtp-Source: APiQypKTYHPnpitRFdDE3TPjQgSJnY/pF+NpqlC3Dg8DUOB2jFw1iUe71nlavSdpmeNpx/adpxJ/ X-Received: by 2002:a05:6402:16d5:: with SMTP id r21mr8383636edx.150.1587744474361; Fri, 24 Apr 2020 09:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587744474; cv=none; d=google.com; s=arc-20160816; b=yhfDvadktAqPkP6j5Xzjt4lg/bWnDKN11UtD9WzV9uLhey+qW36wnA3HkgseomPy9e F3MozBEz+5QhWC3h4Muj6F/uqdomqRnYPm6qM0fCghWoVk4N06X+kF3Iou8cBxbOI+Gx 9zPgBLD2j/2+CKMdMrV6u86/PuaPWHnxi7lbxsdR+br7qs6xRZf/vmcjLVoHe42ZMQRU vXSzfJWqElwa3dqhIwNTJ6ONZ8VFwmoiFxad+J973QilJ5Dx2sewFEYAjghwi7I5S5Fk pnYVRBKUFrm5KrNe2ryhbZpX+FUy1KrkWa39woeTA6kEebWYDz3lxW3FJv/ySBOU6lhT b9sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=A+p/LzwsB5sgoqpdicp5+qiJtUdKUGJdIYe0Ee/IjR8=; b=QpM0PNhGt8Bz8e9r0Fjb+VA7PknXXZZJbuiizGepMa6o382df1ahiMyeNPHxec2D98 fL9AcX1W16rt3I9Yk+2vLL5WE2siSQtY2Ixyazq2dM2VJTLMbmIKzFdQzbNIWs++GJ9z jOU4jvUpo8OeMtwAZ1xFZCzXrQ7Z05wMwWOqdGb6orgJmarDswO3d3ndkdFGlohHFS4O 697x68KUQ73FvTmBfdK6CopHzJLoXon9TlErPszmHy+ttQPCYfrrH7C36RG4r83It8Io MkVDGsmMrVgBGkIsbHyYAFA+1YtnvWbAlg83Z7+ZSidpcd97sMB3ahuokHmXoXFUYuwJ oZTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj27si3703114ejb.196.2020.04.24.09.07.24; Fri, 24 Apr 2020 09:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727946AbgDXQEl (ORCPT + 99 others); Fri, 24 Apr 2020 12:04:41 -0400 Received: from foss.arm.com ([217.140.110.172]:38704 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727089AbgDXQEk (ORCPT ); Fri, 24 Apr 2020 12:04:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 25B2831B; Fri, 24 Apr 2020 09:04:40 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C99553F68F; Fri, 24 Apr 2020 09:04:38 -0700 (PDT) From: Qais Yousef To: Alan Stern , "Rafael J . Wysocki" Cc: Qais Yousef , Tony Prisk , Greg Kroah-Hartman , Mathias Nyman , Oliver Neukum , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] usb/xhci-plat: Set PM runtime as active on resume Date: Fri, 24 Apr 2020 17:03:02 +0100 Message-Id: <20200424160302.18233-1-qais.yousef@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200424134800.4629-2-qais.yousef@arm.com> References: <20200424134800.4629-2-qais.yousef@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Follow suit of ohci-platform.c and perform pm_runtime_set_active() on resume. ohci-platform.c had a warning reported due to the missing pm_runtime_set_active() [1]. [1] https://lore.kernel.org/lkml/20200323143857.db5zphxhq4hz3hmd@e107158-lin.cambridge.arm.com/ Signed-off-by: Qais Yousef CC: Tony Prisk CC: Greg Kroah-Hartman CC: Mathias Nyman CC: Oliver Neukum CC: linux-arm-kernel@lists.infradead.org CC: linux-usb@vger.kernel.org CC: linux-kernel@vger.kernel.org --- drivers/usb/host/xhci-plat.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 1d4f6f85f0fe..05cafef702a9 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -407,7 +407,15 @@ static int __maybe_unused xhci_plat_resume(struct device *dev) if (ret) return ret; - return xhci_resume(xhci, 0); + ret = xhci_resume(xhci, 0); + if (ret) + return ret; + + pm_runtime_disable(dev); + pm_runtime_set_active(dev); + pm_runtime_enable(dev); + + return 0; } static int __maybe_unused xhci_plat_runtime_suspend(struct device *dev) -- 2.17.1