Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp716878ybz; Fri, 24 Apr 2020 08:07:38 -0700 (PDT) X-Google-Smtp-Source: APiQypKFE5jv6GkF29WwesmXj5Kp+MCIciv0e547kg88RhVzogSnZFyCjgiM0sGz5TTeeZ48oGv4 X-Received: by 2002:a05:6402:1717:: with SMTP id y23mr7096458edu.361.1587740857980; Fri, 24 Apr 2020 08:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587740857; cv=none; d=google.com; s=arc-20160816; b=V16/4R0+jGIWnxGPy2W5RmAEdCZzKqz8Ql0RLUv5NQMKCFtDidbYxmwXFmJTz6dmww +Fx1YSABRlmxn33kwGrz3lwwvAshZH+LL05BZXJedqUnunNjka+JKGn9KBzhDimuXCvW BFJxExK8nRVVtJ7Uxia8Ws+s7ZqBBQYP5y2gkTMwDkV6Ob4ZofAkHHS3MajFj9Mh92Hg pvlXtL9T8VTdTZKYOx6GSFeiHnzGnA0hHGR5UgAKOyHN+cp7IG+fCoP1vXc0MI2QSYRB S1V3bp5b/6S+xqi5CccJe6MYgBn4sKR+FFF8pJbXSXYHm5NXhYHXWOR5rZSo/0xlw6y8 Czug== 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=X1BAwj3Ae1Cu5rX7wsUch/YpppMQsN/aRkKCycJiysw=; b=M7RYf4nftBy4+cwMqAYke7IQ5JQhVzVXM/J1Ufq8gp+PwyZjYGPtzaWzgpaqackGkP udy1bAAueC3NXRWTiSExX1X1/3H4dPXS6Dm1duVxK6MG7JnVgfihpbwwkvsIMEuj2Hj3 77CRUGbwf6VH0MYx5QvOH4ZEiZjUHDWiwp4xhHP4WZG4zB5GlRPHEpkx/Pd1mHiVLyd/ NDFHRb9U13oSVooaNC86QKyu7WFz6BnR1r3dqT5sal9sPRqtUyRgNnQh01cTTmoY0WA1 Bm6TaqMpTKRum97NVwyQcc25f1KqoJwuTB4IzixW7RofxF1kxrXzhhvD6EAeGALhvrWz SD+g== 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 g15si3156296eds.159.2020.04.24.08.07.10; Fri, 24 Apr 2020 08:07:37 -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 S1727056AbgDXPDt (ORCPT + 99 others); Fri, 24 Apr 2020 11:03:49 -0400 Received: from netrider.rowland.org ([192.131.102.5]:45297 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726998AbgDXPDs (ORCPT ); Fri, 24 Apr 2020 11:03:48 -0400 Received: (qmail 5128 invoked by uid 500); 24 Apr 2020 11:03:47 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 24 Apr 2020 11:03:47 -0400 Date: Fri, 24 Apr 2020 11:03:47 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Qais Yousef cc: "Rafael J . Wysocki" , Tony Prisk , Greg Kroah-Hartman , Mathias Nyman , Oliver Neukum , , , Subject: Re: [PATCH 2/3] usb/xhci-plat: Set PM runtime as active on resume In-Reply-To: <20200424134800.4629-2-qais.yousef@arm.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, 24 Apr 2020, Qais Yousef wrote: > 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 > --- > > xhci_resume() here could fail, I wasn't sure if we need to call > pm_runtime_set_active() unconditionally. I assumed not. > > There was another function xhci_plat_resume(), I think we just care about the > PM runtime resume callback only. > > Please have a closer look. No, it's the other way around. The function you want to change is the one used for system resume, not runtime resume. Alan Stern