Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5706170ybl; Tue, 27 Aug 2019 08:33:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPdPqL0k6doGc8O1xam5kz/uU+giV4ikPC0qMlL2Hyuz/d5HbNmzvk6Zt/pHtKcdroUa6O X-Received: by 2002:a17:90a:c24e:: with SMTP id d14mr10153809pjx.129.1566919985586; Tue, 27 Aug 2019 08:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566919985; cv=none; d=google.com; s=arc-20160816; b=swfiyTzsql8RH80oqSWkS0JGiTFQHc9r7ADattwZEp7F9z7Opmcidw4ln1U/GT/mGI oHMjJ9Jo8Sb75oPkiEQiqUeUhgXrqzvGhgmdzSYg2tQWWonZvxqhT41CaGlbPkOQ8NCS ++hS9aXR5cFSnIYwLuqTltCM8nVHM0cHmDJmMEhV3FP7Y/G+pdHPra58JnqZpw5IIFPU pvUiJdCFqr0LKxoGpSq++bYK+FOkgCxHXx6gnOwzjXebnngEpy3xQYAu5Jo6VYn2HWtf 1FXp8pmqZ9PwZtNdJwG71VZdIM5N/jCmH7Ra0y30si3vivXUomOFpPpIjRCtV+M/uCZw D4vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/HgbUtFwndyH1vX22I+mAxFENmMxjWhxrD057fYH91A=; b=CmmBKLAtxpqZtyTbNAeAUKydbV1uDRXLC3JB86BRZG2a8bSCffMO2FBFL/7kGtK9L0 3se+rsyzIrDaYkckePUczJ74CBQKWBR5edkoGkBgJfmD0ZFOQw+H2ofKbAS46fMFmLbS YhE7FNLK9x6BVXCGRvt64WQOeTpzorSYS6I1pq4lGrMVJFaLje6omaLuAd4vkTwINtlz Xw2rYbZlSc2bySSdrqyoJQXczA9jgwdbW4M/OOlTculg/JCANgheDKPQZb6vhsPqoL6g /+kSSFDmwQ0nR9xXCHB7ohc4dhhXsIQvi5E/VrwAPFhr2jCLeQoC8OgM/glAEY3w/lFO g5bA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22si11752353pgv.551.2019.08.27.08.32.49; Tue, 27 Aug 2019 08:33:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730075AbfH0Pac (ORCPT + 99 others); Tue, 27 Aug 2019 11:30:32 -0400 Received: from foss.arm.com ([217.140.110.172]:46802 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727910AbfH0Pac (ORCPT ); Tue, 27 Aug 2019 11:30:32 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CDB94337; Tue, 27 Aug 2019 08:30:31 -0700 (PDT) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 28B733F59C; Tue, 27 Aug 2019 08:30:31 -0700 (PDT) Date: Tue, 27 Aug 2019 16:30:29 +0100 From: Andrew Murray To: Vidya Sagar Cc: lorenzo.pieralisi@arm.com, bhelgaas@google.com, robh+dt@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, kishon@ti.com, gustavo.pimentel@synopsys.com, digetx@gmail.com, mperttunen@nvidia.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kthota@nvidia.com, mmaddireddy@nvidia.com, sagar.tv@gmail.com Subject: Re: [PATCH 3/6] PCI: tegra: Add support to configure sideband pins Message-ID: <20190827153029.GO14582@e119886-lin.cambridge.arm.com> References: <20190826073143.4582-1-vidyas@nvidia.com> <20190826073143.4582-4-vidyas@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190826073143.4582-4-vidyas@nvidia.com> User-Agent: Mutt/1.10.1+81 (426a6c1) (2018-08-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 26, 2019 at 01:01:40PM +0530, Vidya Sagar wrote: > Add support to configure sideband signal pins when information is present > in respective controller's device-tree node. > > Signed-off-by: Vidya Sagar > --- > drivers/pci/controller/dwc/pcie-tegra194.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c > index fc0dbeb31d78..8a27b25893c9 100644 > --- a/drivers/pci/controller/dwc/pcie-tegra194.c > +++ b/drivers/pci/controller/dwc/pcie-tegra194.c > @@ -1308,6 +1308,12 @@ static int tegra_pcie_config_rp(struct tegra_pcie_dw *pcie) > return ret; > } > > + ret = pinctrl_pm_select_default_state(pcie->dev); > + if (ret < 0) { > + dev_err(pcie->dev, "Failed to configure sideband pins\n"); I think you can just use dev instead of pcie->dev here. > + return ret; Don't you need to pm_runtime_put_sync and pm_runtime_disable here? Thanks, Andrew Murray > + } > + > tegra_pcie_init_controller(pcie); > > pcie->link_state = tegra_pcie_dw_link_up(&pcie->pci); > -- > 2.17.1 >