Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5594291pxj; Wed, 23 Jun 2021 05:00:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS6iwtWacp1vhPdSO7kX9arJAUpDGZaymmjvFAnacXzoSKiZd1ZDwk2jnIlWD/gN4ZBMgs X-Received: by 2002:a5e:8c14:: with SMTP id n20mr1937908ioj.49.1624449624412; Wed, 23 Jun 2021 05:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624449624; cv=none; d=google.com; s=arc-20160816; b=OKSe+LpXOPJVY8Yhal8Tj7g3G84NSknO6kYpvHh5OC5U9e6hTsdLukcTeAsrtcbt2y vqtPok9Z18yLUuiirGcwckJqd0SUYfTkZAbpBsbMpEXYEUhnM1+KHvN7z8TxhTWdHwGR bGppqUJMDmMQ7zXeHuFwTb7DvQYRmYojvDpDqvIHQRuLXfBxRaokN5H7k1CtXhQbVW8Z 3sZ/x0GjItKQuN5k4111xQEEKWt81ZBaINb+XnxFgjVSom98HlKQUjmeYGTEenOfpfIV oFbgdSHgmNJfBxXyLOrMa1Av49cRVvir3nofY9YxNPdj+5UGgyqAPn4NWK3FcHRVQstR kWFA== 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 :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=9Cr3FOxDCKFbZ45/SASs869fm2FT51Wxo7xPbqs8/OQ=; b=EtIKtU71YqqA1BaUDkWbQtioRNx01+AignLTmXAQlqa6RqPTJiA0nNbVNua/Nwt1mU c1T0lRgUOolgxYJL7923IFR9dAFuSdr/bAFWAA/CKn2W9FXImusaBFhHlIQdc1L1ndCP 9GlrJy3qQD1uu1tihQxaNMOhHUyKW/H3LuDeZ8rKVAcwb8YGwBREXlvSogmaQoeXScJU bFL+my2cR2xbUj4mEWWC88Mf/yvPlgvSMbMzh59Xj9woPLGEcZT/Aet1vgKGp6VMjFv7 Pi/HQcwnOyr1LBiIBHGgaIy9GF+H5Iz7TJG2zLbBMbykaoOpbWVKspI5+5sI3/DAoXhY Ha2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=gldfewNM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si28718010iov.82.2021.06.23.05.00.10; Wed, 23 Jun 2021 05:00:24 -0700 (PDT) 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=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=gldfewNM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230388AbhFWMBD (ORCPT + 99 others); Wed, 23 Jun 2021 08:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230357AbhFWMBC (ORCPT ); Wed, 23 Jun 2021 08:01:02 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A7E8C061574 for ; Wed, 23 Jun 2021 04:58:45 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id q14so3084895eds.5 for ; Wed, 23 Jun 2021 04:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9Cr3FOxDCKFbZ45/SASs869fm2FT51Wxo7xPbqs8/OQ=; b=gldfewNMLkyVBMH/zlJu9aDAy2GDCrb6OuSVrhBktnKvPzf2RNRk4cI1/bOCodlS10 3AaBKFrRULbImPzl78pRU2+0ZIzXteZASDPO6XkfLJKEf2FpPxXHOiAJEBCEd+zFb2lf R73DARnSiIkrpdW/FKTDnZhibzpFxEfy/7fFmuja4LzRTdCTxLLz5Rnc89dCnGEAooSS PudcjMDNYaO47DVWY5SzHxXqQqJ458XxBW390dDsDgQWEVwt4cFyX0PeCtaMkLev7fkz EZrJb88MnzFG2UUgo6QGFNt031UsJJ8PoZpR5xPo5wvuM9Pzb7Ych5z1D0jQJYmyiVyl e3ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=9Cr3FOxDCKFbZ45/SASs869fm2FT51Wxo7xPbqs8/OQ=; b=S/wYrj1D3op6eW7N3Zl6xJJpWKQoC9jdXanQASs4nnZoEi5N66MJYTaH2+30GMR2pW 1wiZ9iVZPYNnbuCW0Nmi93afcZRedRyaN3s8ak7VaBIiBZHOwBRAYKmxYIIuN/Z1fLge 7lEHcPZhDEnAbLm/uzuq/Zm7wQZdVu2NMRXKa2FZIOTExx/+mJAwAL6H6lDTU2B1h4We 5v7+6BziQ0AV6aa0UMCegq4fLfVAEbWA6BYcZzgIcKq/zmIuLqJgYd/a3BYZs6/IyCKG 7UmVYhQp27YzsirkjXbCPdzmIZ/1wkZRLO/NVuLZOkmqZE+8KtW2ScsQlDHXnIajieXE ZkLg== X-Gm-Message-State: AOAM5321T2XX0AKAtEFgjUoyIIK11hNps+CBNtrxL9EqkQTUZjr3buZY vb4UGZRafCLakYxfhkTvJtUIwAaWvQVRcrRm X-Received: by 2002:a05:6402:3138:: with SMTP id dd24mr11675698edb.92.1624449522943; Wed, 23 Jun 2021 04:58:42 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::648]) by smtp.gmail.com with ESMTPSA id i10sm6252318edt.25.2021.06.23.04.58.42 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jun 2021 04:58:42 -0700 (PDT) Sender: Michal Simek From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Hyun Kwon , Bjorn Helgaas , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Lorenzo Pieralisi , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org Subject: [PATCH] PCI: xilinx-nwl: Enable the clock through CCF Date: Wed, 23 Jun 2021 13:58:41 +0200 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hyun Kwon Simply enable clocks. There is no remove function that's why this should be enough for simple operation. Signed-off-by: Hyun Kwon Signed-off-by: Bharat Kumar Gogada Signed-off-by: Michal Simek --- drivers/pci/controller/pcie-xilinx-nwl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/pci/controller/pcie-xilinx-nwl.c b/drivers/pci/controller/pcie-xilinx-nwl.c index 8689311c5ef6..3afd4f89ba77 100644 --- a/drivers/pci/controller/pcie-xilinx-nwl.c +++ b/drivers/pci/controller/pcie-xilinx-nwl.c @@ -6,6 +6,7 @@ * (C) Copyright 2014 - 2015, Xilinx, Inc. */ +#include #include #include #include @@ -169,6 +170,7 @@ struct nwl_pcie { u8 last_busno; struct nwl_msi msi; struct irq_domain *legacy_irq_domain; + struct clk *clk; raw_spinlock_t leg_mask_lock; }; @@ -823,6 +825,11 @@ static int nwl_pcie_probe(struct platform_device *pdev) return err; } + pcie->clk = devm_clk_get(dev, NULL); + if (IS_ERR(pcie->clk)) + return PTR_ERR(pcie->clk); + clk_prepare_enable(pcie->clk); + err = nwl_pcie_bridge_init(pcie); if (err) { dev_err(dev, "HW Initialization failed\n"); -- 2.32.0