Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp827823rdb; Thu, 19 Oct 2023 23:44:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGp01Ktww23lkaGaTK5LnAY6YGQ/3dCJGjPRgctWenOrHqK4nsVAFDS9T8YKYzRhGInNWuL X-Received: by 2002:a25:d3ca:0:b0:d9a:d29b:2631 with SMTP id e193-20020a25d3ca000000b00d9ad29b2631mr1027181ybf.26.1697784268230; Thu, 19 Oct 2023 23:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697784268; cv=none; d=google.com; s=arc-20160816; b=A4mxHxK2H7xdze4VYWFheHAuXJHLFB5HIzMIjIeVmiX13Kq2liUYjRW7Ji0FK/p3Aa 0ewl54FyxwqWdfmnMIgpTBz9FexGl9A9NFab23LHcs5tcrq4G4e2tAV3Z2qzIABrmN9u 0yRvdeSlSmnd0PQYydgyKr1AIYD5DQM5FHQJRa0gNL7Uc89ZUiM7Lj3G+a3p7iiLIWZu rK8h1vrkoS/mDgkIOnMBQ89LASi23pLCUoT5hLXNOLGHqah8uk0jo3tC7M5bMK0+sa23 PS/dY377vg3c0iMwAyxsyyLHb1twFBAu7jVHFt1zFqCqtxWg1AJGuzG7adzMxQDP9O88 lh/A== 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=RIRbF0ojAg9xFaalNOKQP8+O57Je1nCdZOHBfvcS3gw=; fh=zZlCCqN7aWEy9ELbOXxcc/bLOxxSSA1zzKLmboWMk+0=; b=lx3ZJwXXuG3djALli8VFoyc+EVT1JAX5Fz8jr9n1w2hT2jdO13A8nq+uEe7uY4DjSN FSjXu4ft3u3Ui0S7YKGc71YhrU46fxVw8+uahhlRw5pvUaproXNeDcu2gCkh+W54x3ql 89olhbnS+NbjxLazrNkp8UFcbSnOSg2LNGE7F7ImvPYtW6mJJXp+c8+nF5TayGD3ttLK 90QSUVRyZRrb4eX1wFudGJoJLU5w5CUGkgyinoud5IYRStn7c8tAVg0x5doccp5A4uMj cA+02VsDMUodgOOpylmCpoz0IVL2PMx2XhYznduX7t7aI2IekZZ8MKMxrICy+nVXKCxw n8dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mE1HReKC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 85-20020a630258000000b005b8817b3cb0si319979pgc.65.2023.10.19.23.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 23:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mE1HReKC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EC4F882B4840; Thu, 19 Oct 2023 23:44:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346966AbjJTGoS (ORCPT + 99 others); Fri, 20 Oct 2023 02:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347024AbjJTGoC (ORCPT ); Fri, 20 Oct 2023 02:44:02 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F401010E0 for ; Thu, 19 Oct 2023 23:43:48 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6bd32d1a040so474922b3a.3 for ; Thu, 19 Oct 2023 23:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697784228; x=1698389028; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RIRbF0ojAg9xFaalNOKQP8+O57Je1nCdZOHBfvcS3gw=; b=mE1HReKCTYK6dctPvKJEBs3VkoDnPFll0xkZEZuxES0bAJNigwC8+Dw3UVo5ADjK01 wgP6L40kAkgKsM6/5xeYTS3bMbNDG86khhjISe2nZ6/0BEInESka4+wAIhcfhdPZe6UU 2kjLil3+74wHzusBxUkuP8HYzCyJLHJcr3lUwUTUDPeW7k69ylJ/u55B7VXt1NVbok5L 10rTI/2BXTYqfWuNV0DW5NzTM7foNFL1YleARkyZq/8qi9gqF3uXF25j02Vq6PiyAz9z aeujbzOpipAAe29hVf4Ti3eckCBGOLpno5PjBUEiJPdjGm6/wEvqRS3cEOUbo91QAFin rfAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697784228; x=1698389028; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RIRbF0ojAg9xFaalNOKQP8+O57Je1nCdZOHBfvcS3gw=; b=dpdgND4iAFlT6HCPdCsGXFiuyhu9if1MD7F5aUkKVnShmYgg4vw8QrFqwkQXRYLX4G aqgALU/+gRVW0LvOXK/VF2yZiAREd4Fj+pGWQ2P8AVwSB+yp54P+v28frykPEl0C8P43 9UrQm3VuXgbLxqxdytGydxXeGJ4TEpBJXy+r/1sKwvV+VVnOQcA/+NX6RD8deTGfaHpj 6dSee+3Zx8wSlHw9orhEscXt+jlUvd5Mz3ip/RuoCvkA27kgP2LV71Y73HAp5jMatTEU elTqMcFrT7D7i7PwQfFnu68fCU7WbNjimubskuvcDUkBy4W6NFrNwkip8WpdE7m8xWSt mssA== X-Gm-Message-State: AOJu0YzA8E13Kw9Nm3rF+o3e8aD8cQlFpdeTNzdNemk75nIpY/7G237N HoEPJN8VzKJK2NPSGDk1oDV/ X-Received: by 2002:a05:6a21:4886:b0:16b:8498:d9bc with SMTP id av6-20020a056a21488600b0016b8498d9bcmr917350pzc.62.1697784228243; Thu, 19 Oct 2023 23:43:48 -0700 (PDT) Received: from localhost.localdomain ([117.202.186.40]) by smtp.gmail.com with ESMTPSA id t3-20020a170902bc4300b001c60ba709b7sm760951plz.125.2023.10.19.23.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 23:43:47 -0700 (PDT) From: Manivannan Sadhasivam To: jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, lpieralisi@kernel.org, robh@kernel.org, kw@linux.com, bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, vidyas@nvidia.com, Manivannan Sadhasivam Subject: [PATCH v6 2/3] PCI: qcom-ep: Refactor EP initialization completion Date: Fri, 20 Oct 2023 12:13:19 +0530 Message-Id: <20231020064320.5302-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231020064320.5302-1-manivannan.sadhasivam@linaro.org> References: <20231020064320.5302-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 23:44:27 -0700 (PDT) From: Vidya Sagar Instead of doing the initialization complete and notifying it to the EPF drivers at two different places, let's call the dw_pcie_ep_init_notify() function that takes care of both. Signed-off-by: Vidya Sagar [mani: removed ep_init_late() callback and modified commit message] Signed-off-by: Manivannan Sadhasivam --- drivers/pci/controller/dwc/pcie-qcom-ep.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c index 32c8d9e37876..3d5196291192 100644 --- a/drivers/pci/controller/dwc/pcie-qcom-ep.c +++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c @@ -447,7 +447,7 @@ static int qcom_pcie_perst_deassert(struct dw_pcie *pci) PARF_INT_ALL_LINK_UP | PARF_INT_ALL_EDMA; writel_relaxed(val, pcie_ep->parf + PARF_INT_ALL_MASK); - ret = dw_pcie_ep_init_complete(&pcie_ep->pci.ep); + ret = dw_pcie_ep_init_notify(&pcie_ep->pci.ep); if (ret) { dev_err(dev, "Failed to complete initialization: %d\n", ret); goto err_disable_resources; @@ -466,8 +466,6 @@ static int qcom_pcie_perst_deassert(struct dw_pcie *pci) val &= ~PARF_MSTR_AXI_CLK_EN; writel_relaxed(val, pcie_ep->parf + PARF_MHI_CLOCK_RESET_CTRL); - dw_pcie_ep_init_notify(&pcie_ep->pci.ep); - /* Enable LTSSM */ val = readl_relaxed(pcie_ep->parf + PARF_LTSSM); val |= BIT(8); -- 2.25.1