Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp912180ybi; Fri, 14 Jun 2019 05:33:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYJpPp4uL/N6b0pNqmSlO6O9SdWUnPdKiHtBnshGCc6tdubWrYRaAmXxfbAtTdtcwra279 X-Received: by 2002:a63:1a5e:: with SMTP id a30mr34682080pgm.433.1560515609084; Fri, 14 Jun 2019 05:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560515609; cv=none; d=google.com; s=arc-20160816; b=fgFKEs2pSK8cVD/ywuBsDRPNzBcvhusbs9x2JTJONosg0BEg3qF2eDmar9/hMH38Kq tPYEMIx/A+VBkeprL4grZVQXjREdGnXV9HYn0bHtJ2aG5IGV4au//FaTm0cO9hxrV5kO auWk4zx1wsnNPBbSPUmjHZW5osn0GfugiZICx8ICFroit/CSvmJ8dJna9RELqX2za3Sc RQOr7xMSTYHr7+qvk6lpxf20wuAcBykMeqYLlnXK1Ulu2gVoSgtDjU+WpDuFFdMHH4zV GSlZaZaZzbzYp0+9CaEV//BowA6ghQtxWMmANTpXeil7QGnow7QUYVQLY/ScvUnFx1kR 1nTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:message-id :date:subject:cc:to:from; bh=exJ9JHFPJP+5N/mN9hpEt8WRKiK/ZQdiCxv0VhMcx2E=; b=XRYQiSor/5ZdupB95RMPOpp+ZqaRz1Zc2rx3VnkEd1Cc+1/noEfriMlp5Wv6/FjCGs mCvV07Sib2+bmZtBmxorj/yV16oFH9sGCgLGQ5HkFRGjaNwXEMRvIdSlf4QUfPfezGfz 7WThAlh/pZ9ytb66+SXbPHqJZTnCO7w7N2idSm6NJ7L5pnZD1R7xIUwDOlHDPg1u36wC Q4kcJjhnPGKH7UAZ8rpz7t3RZdPS9I5QKvdINjZISdvOZsZ8HCYOn0oVde8P9HypTqxa EWS7bEryApZoI4jfIszRHySxbYwNbLo/DCPpz/TJq3w058aGW1DBznZu/FdNkGBc9by2 VWxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=i2iXEMeu; 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 l2si2564837pgs.315.2019.06.14.05.33.13; Fri, 14 Jun 2019 05:33:29 -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=i2iXEMeu; 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 S1727908AbfFNMbq (ORCPT + 99 others); Fri, 14 Jun 2019 08:31:46 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:13611 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727544AbfFNMbq (ORCPT ); Fri, 14 Jun 2019 08:31:46 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 14 Jun 2019 05:31:45 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 14 Jun 2019 05:31:45 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 14 Jun 2019 05:31:45 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 14 Jun 2019 12:31:44 +0000 Received: from HQMAIL108.nvidia.com (172.18.146.13) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 14 Jun 2019 12:31:44 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 14 Jun 2019 12:31:43 +0000 Received: from dhcp-10-19-65-14.client.nvidia.com (Not Verified[10.19.65.14]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 14 Jun 2019 05:31:44 -0700 From: Bitan Biswas To: Thierry Reding , Jonathan Hunter , Timo Alho , Sivaram Nair , Allison Randal , Thomas Gleixner , , CC: Bitan Biswas Subject: [PATCH V1] firmware: tegra: early resume bpmp Date: Fri, 14 Jun 2019 05:31:39 -0700 Message-ID: <1560515499-1015-1-git-send-email-bbiswas@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1560515505; bh=exJ9JHFPJP+5N/mN9hpEt8WRKiK/ZQdiCxv0VhMcx2E=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=i2iXEMeuyb1JUvpjOVLCFhUjKeIu9f+3JyfYdf2Q1GK83hfu1fo5IxcIAZymXQfdg WveAlyu5pvBl76zU0kud2Gi4tUwtjPXZRpQZkFXo71oXYAN4jl+lww3/LZgihUOIz4 Od/CdXebOvfG9+ODlsh0rU1IgvORAO80a4mZHNMx1j7HNAiMStqBl26uNL2MDr7iPW VvMTPArzFW3UZoCfXT4pv0DabrQUpBtdr8oINBKXf+Lq9BbQk3jKJ/g2C63AKULkeM GwcaS7ggT1A51Hn3x0mryvVNGE26LEJ2LWdNfPKoSbGCdCc5WF531GPYYOyUVJQZm3 HjoBzzDfzfHmg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 +}; #if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC) || \ IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) -- 2.7.4