From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04EB8C54FCB for ; Fri, 24 Apr 2020 15:03:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DBA1D20706 for ; Fri, 24 Apr 2020 15:03:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbgDXPDt (ORCPT ); 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