Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1165441ybi; Fri, 14 Jun 2019 09:41:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9GEo5cXg0Hj9krhlg8zAan6giqw9B7T82b+1njo2belLmdVi76MYj2EAB63ay8Pwxxz67 X-Received: by 2002:a17:902:294a:: with SMTP id g68mr96140856plb.169.1560530473997; Fri, 14 Jun 2019 09:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560530473; cv=none; d=google.com; s=arc-20160816; b=H+x9Ioz4BpRzqlRwcRVke1D7jsY1ptj0F4i7fDQiN3tvFVOULwuLWlkn12hPn6hK2P Sd5JqV2e5cC8xChjSEkXIcSKdQ0M8Qe93bDGubKWULx5vS4f7aAzQF7XxPzspRCtCz/o 0OCg1Vz0vN1e0OXBym/SwPe/5G/hbte/iX3gHtHue0ERGH3DwrWRIDFtINbwQRFhWTyM X5T6nxmG/oQskdcP7ZVj9nXgc688udX66ODx7QEkMNVjYB0kUCrCbrhYEZd+x4J8Ofzt 1Jhj2y9Fp1CAhrhhLRJ8FWaBuUb22Xlz0xFNVXYkPxzMmsE1aT30fuOxhZW04IhJNhJx KFQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=JXewWE1/k64Bh0+FBbmbCYEvsXTB95yMYrlVGc+MDwc=; b=FPq8lPZGJq4xg4oOgbCGn5Wqt1i+501SZS27eMouE0K+I9v2r037vDp6zyqkwgys98 nnpb9W5DsCaNkbGiecEaIHbPtMhTSVFnJrGxNbSA+t75fbz+H85G64swL0ZU/E7XoZ+a L2Qipbxht3zLhe04wtk53gDKCVQp7cbrkHMJK2WOecNijoUyXmEKoxGIyNIIfJhANgP5 3JDqosJaoL9Y3DWCtjfCNIxrmYz6lj3ihR8kNE0fMuSykpmB+1dtoZ9kIkOP25AU1X4c f+11cgethxeQzR4TpGHB0GIhawyVkV1ubgW4fHGj5KlFPeE5tJlP1KACAv31foEoFhxG YGrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=asNuK6NE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si2626100plo.306.2019.06.14.09.40.58; Fri, 14 Jun 2019 09:41:13 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=asNuK6NE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726071AbfFNQkz (ORCPT + 99 others); Fri, 14 Jun 2019 12:40:55 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:17406 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbfFNQkz (ORCPT ); Fri, 14 Jun 2019 12:40:55 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 14 Jun 2019 09:40:54 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 14 Jun 2019 09:40:54 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 14 Jun 2019 09:40:54 -0700 Received: from [10.19.65.14] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 14 Jun 2019 16:40:51 +0000 Subject: Re: [PATCH V1] firmware: tegra: early resume bpmp To: Thierry Reding CC: Thierry Reding , Jonathan Hunter , Timo Alho , Sivaram Nair , Allison Randal , Thomas Gleixner , , References: <1560515499-1015-1-git-send-email-bbiswas@nvidia.com> <20190614154827.GA26922@ulmo> From: Bitan Biswas Message-ID: <577c405d-249b-00ce-221e-bff7cc9ed8b7@nvidia.com> Date: Fri, 14 Jun 2019 09:40:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190614154827.GA26922@ulmo> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1560530454; bh=JXewWE1/k64Bh0+FBbmbCYEvsXTB95yMYrlVGc+MDwc=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=asNuK6NEBQdEkejjWhw9wKcCjS33xAOIuIBTbbjJW/RuFEQbz1P4ET7jPOuzCUMGo +EMTw5gLMXj0rmVyLwp6IpoWXWmIW7O0dB9GDoPm+3t0ZCtgI08qeYt8tcSLFElFDo f6+TxNrcTrIMlVg/ZU/YLTBQHRINn9qz5VCvfQwAUg0RrL7ETKmB370GJAopggyxTM zknI5sEZfH6+xX6t2aTmLXULQ+g05oJlJelOTT/CMjQlnRfWIRd4Ovtw95rnreeS19 P+Z308rpYuT5CsbsijwZHDakeC+izWAaLuwUnFXIO3rmQdCHS/hjXCKyibC95tevXK YulTK3oy71V5Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/14/19 8:48 AM, Thierry Reding wrote: > On Fri, Jun 14, 2019 at 05:31:39AM -0700, Bitan Biswas wrote: >> Early resume Tegra bpmp to fix Xavier clock rate error as follows: >> [ 159.017101] of_serial 3110000.serial: calling platform_pm_resume+0x0/0x58 @ 317, parent: cbb >> [ 159.025501] of_serial 3110000.serial: platform_pm_resume+0x0/0x58 returned 0 after 14 usecs >> [ 159.033694] tegra-i2c 31c0000.i2c: calling platform_pm_resume+0x0/0x58 @ 317, parent: cbb >> [ 159.042254] tegra-i2c 31c0000.i2c: failed changing clock rate: -22 >> [ 159.048216] PM: dpm_run_callback(): platform_pm_resume+0x0/0x58 returns -22 >> [ 159.055553] tegra-i2c 31c0000.i2c: platform_pm_resume+0x0/0x58 returned -22 after 13072 usecs >> [ 159.063875] PM: Device 31c0000.i2c failed to resume: error -22 >> >> Signed-off-by: Bitan Biswas >> --- >> drivers/firmware/tegra/bpmp.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c >> index dd775e8..de09036 100644 >> --- a/drivers/firmware/tegra/bpmp.c >> +++ b/drivers/firmware/tegra/bpmp.c >> @@ -811,7 +811,9 @@ static int __maybe_unused tegra_bpmp_resume(struct device *dev) >> return 0; >> } >> >> -static SIMPLE_DEV_PM_OPS(tegra_bpmp_pm_ops, NULL, tegra_bpmp_resume); >> +const struct dev_pm_ops tegra_bpmp_pm_ops = { >> + .resume_early = tegra_bpmp_resume >> +}; > > I've changed this to be static while applying to for-5.3/firmware. Is this patch already part of some other patch? In that case I can abandon the patch. Else, I shall add static keyword. -regards, Bitan