Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1452654pxu; Thu, 17 Dec 2020 10:14:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+lTXMuxVLS4W+2iPFnEQyPdMaHdl3pFDnAOVxdLvvOqvQzJ0e5REaDGfHpPfwoKyYSySY X-Received: by 2002:a05:6402:190c:: with SMTP id e12mr603114edz.388.1608228860557; Thu, 17 Dec 2020 10:14:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608228860; cv=none; d=google.com; s=arc-20160816; b=N3cbuKZIgpRVcx63RBfFxm9pvjq7GvlF9amSd5B/P6yOjHBNUQ0RKtuAbGGCZ7WnKi JAFa+ZbvTKSJn/PfYqjkJ2BCtr1bsnOp5vmC8z6qhAljaLiagwBayq11pAUJpjD9T4iV d8SVXO8/h5qN6TH+ivEHLJoRZ0d2HruTItgbcUov6y1IZTETyYW3bmQIAATBTf8ED5Yt 6A3HtCHyJhnL7KOV/8n7eTI1HWU7+xFmYQ8bNCv01/eDqzDVK3hg3mvAkHIr6+9sgRmq JdZ3ZDqFT8nxTNx5jGRXbrQE6oFvo+oZ60zhy2A4X2H9+YsPWA8gn3r/e1jh+PCiFq2C WRJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6bihTvUOG89oM9Y/xPaskNMPx8lkVh3OwDTHQ+rUz0Q=; b=o0J+CEBURzBDxN3un1ffzO/e7XK9sNnD163Ju3WFCx0J2/ASD56pgRN22wdlLefl+5 ARS9xzxcIgXPnkUfnXMIU+g5r0S3ReznVgmxlUw95A5gxXt1Mks81kZzl9noq2ihp37f ABLuOcibPG9EGvnqcJ/rBidr1wQNB628/V08eoTd0PBK87qDcCgnRClxKB135RbaZUwr dq8OM3gYhyeQrTTC9VrCEo3uPuJ/9YhES3DvgqYHGarACvFjnPJ0aIgM4HZu5pXRqk/N kI83G4Vg6l4AVKhPtkzCHbw85P7JJOeRUn/+HZcJxjAZrVYpGSmGo7zQ9DOwfTr7rypa 9M1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YgQsVYIn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yr3si3068541ejb.190.2020.12.17.10.13.57; Thu, 17 Dec 2020 10:14:20 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YgQsVYIn; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730272AbgLQSMa (ORCPT + 99 others); Thu, 17 Dec 2020 13:12:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730362AbgLQSI5 (ORCPT ); Thu, 17 Dec 2020 13:08:57 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F7B8C0617A7; Thu, 17 Dec 2020 10:07:50 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id o17so56901752lfg.4; Thu, 17 Dec 2020 10:07:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6bihTvUOG89oM9Y/xPaskNMPx8lkVh3OwDTHQ+rUz0Q=; b=YgQsVYInkk2m03hroKiBAdfDFB0PzOxzZdQWbW80OhGLnIy3SbqjhUVrhoSZeXa/0W QptR34QOdICKwEMJUmDxpjneCiq75Y7dTMq7ocCew51i7k6af4lsmH5StFCUi9OTDhVb fkffM7TvBqgMrqtPjxPVzHIrvwZiJjnMgj7xb07gyClRUZltKNMvyRF6okcKk1aStAZd mp728vEPg8JQCyoih6cV4ja0h8WnBc1s6FIBhCFwdaw3v0fMvuWj2P6nkduHjFPSOjQS keUpNhEJqrXcP7lE7tFFikb8lcCmKC63UC7B+C+1vO13XTwgbK+khXS51cmtHSOxZQKa Bzbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6bihTvUOG89oM9Y/xPaskNMPx8lkVh3OwDTHQ+rUz0Q=; b=di3oLX7dDgGVCI5lsfOBXq10DP5clK2XOB6EjRflxBPDSRffBPqf2Nu6bG3wyHtnsk apuxOhVVErbOrrbOUqxrm3V1vhWOAfRvTazzFbsL6k90eBaWrV08T5ai5XzWN/KqDEfu K47dcx7C5XA1bIoRdsNUM1GsL7ISMktlaG+X9WmMMbp3dXewO/wfv/0JsbipN+Gbk9cc xFgF/bGMqjm0qfKiGpADb/XvinuTQbQu+PQd5BJ9sXfLTi6ffTE/gLuKuulYGXZtKIdC jXIx3djUNM4NV64dGz7bxy5EUtcK9/oAXTa6UHCps58xfJUoZarSNzvCOp0NK6350ZTq 7eng== X-Gm-Message-State: AOAM530LY0pQlcEdt7lPKKuapRBdLEdWe0XtlcVtp2Snt0mQTSGtXj6C xA36ZyQfDoxQC8zov4ZYE9SprQ3Gp9w= X-Received: by 2002:ac2:5547:: with SMTP id l7mr7724553lfk.313.1608228468872; Thu, 17 Dec 2020 10:07:48 -0800 (PST) Received: from localhost.localdomain (109-252-192-57.dynamic.spd-mgts.ru. [109.252.192.57]) by smtp.gmail.com with ESMTPSA id u5sm655596lff.78.2020.12.17.10.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 10:07:48 -0800 (PST) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Mark Brown , Liam Girdwood , Ulf Hansson , Mauro Carvalho Chehab , Rob Herring , Peter Geis , Nicolas Chauvet , Krzysztof Kozlowski , "Rafael J. Wysocki" , Kevin Hilman , Peter De Schrijver , Viresh Kumar , Stephen Boyd , Michael Turquette Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 25/48] soc/tegra: pmc: Print out domain name when reset fails to acquire Date: Thu, 17 Dec 2020 21:06:15 +0300 Message-Id: <20201217180638.22748-26-digetx@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201217180638.22748-1-digetx@gmail.com> References: <20201217180638.22748-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Print out domain name when reset fails to acquire for debugging purposes and to make formatting of GENPD errors consistent in the driver. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 8edcd5b319f6..4f96dc7745c4 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -821,7 +821,8 @@ static int tegra_genpd_power_off(struct generic_pm_domain *domain) err = reset_control_acquire(pg->reset); if (err < 0) { - pr_err("failed to acquire resets: %d\n", err); + dev_err(dev, "failed to acquire resets for PM domain %s: %d\n", + pg->genpd.name, err); return err; } -- 2.29.2