Message ID | 20230310040816.22094-1-manivannan.sadhasivam@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp678168wrd; Thu, 9 Mar 2023 20:20:40 -0800 (PST) X-Google-Smtp-Source: AK7set+zNxaO12+Uk7o0tFZ45Cc7K1Y+ag8F0TYN666lR7FAbQE9Dar4Szl+5T1Yng22MuimokXs X-Received: by 2002:a05:6a20:440c:b0:ce:5c14:2838 with SMTP id ce12-20020a056a20440c00b000ce5c142838mr33637052pzb.54.1678422040499; Thu, 09 Mar 2023 20:20:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678422040; cv=none; d=google.com; s=arc-20160816; b=DH2Axmw8K1Tnyu4Rg1vUSo/WP+xMiGLSXsWW2EQ0AsfrP9VPTD8HIn2JF1u9X6vtzt Dq1pS+zz+Kn+Rf03+V41cG5BRay3t4RMOKAwxmeccuaef2is1vTm8UpikgbMq4+PiPNC mwIEZn+rywSxkomd/fywuykksxItKcEyHBcb3mjxPL2xHbxfMBPZNkv3UKjD1M0PEbxb 9HomWeU/NDe1CC110Ndc0uZ9MR/uiDmhhhFBylXAurt/HQr3cVCoTRac1Sam5IYF3N5k wk2C9ObruUClwjR+Jvxi4G1zAZVuXqDEY0hZFtEebmlaaCVesz0Hg/2+zGsXDMwj+sGv buUA== 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:dkim-signature; bh=m47cP73h9+tUW+X/2AFChPVWpE3J+7t5tQOf5sCuZMY=; b=f0QwG0CBAa92RRhKDVG+C7qth3g8GqxGDYKzSRoWCG8P1wBBYzcrbvwX4ahBEaLcU3 J0KVj4ZGQ9eSOJtiozadnMTjdryRzAlAWPxDRkmHrlmOlLqBBtgjnO5Egxx5PAfhYIhF VjPT2Zn4u8WEWGVX0Ka0xQEg3uL6NUFn1nxAzbJ8qnA38EAmkdB3NdzmRsCc/P+Dogem 4qHvayi2iEqZeU13DEOM6lLhx+/W40yItYQTByXqkkoY+Fp+5iI8F/TJUEARliy4PJxJ yC6JFo5/AiXURD8BcqskieoF3y2QCLrexHqY+apcWZdEjgFtA/jHSgIS/vIURw1m2vQv IobA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YyX4jWg+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a634f01000000b004fbd4eb35d9si1036721pgb.156.2023.03.09.20.20.25; Thu, 09 Mar 2023 20:20:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YyX4jWg+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230195AbjCJEIn (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Thu, 9 Mar 2023 23:08:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbjCJEId (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 9 Mar 2023 23:08:33 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E40CC5C9FD for <linux-kernel@vger.kernel.org>; Thu, 9 Mar 2023 20:08:31 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id n5so2850854pfv.11 for <linux-kernel@vger.kernel.org>; Thu, 09 Mar 2023 20:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678421311; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=m47cP73h9+tUW+X/2AFChPVWpE3J+7t5tQOf5sCuZMY=; b=YyX4jWg+rcUcstIwvR5IvhqxffkzI8Ddp7NSv8c32jRCVzxOJVgnn8ecnxhD0drOH3 4sav29wg90Y7fwNMsJTekCsPSsKw6UBYtXnpfpiTFoICmJ/2S4MNUxQp9oWuAlyAW7bQ qAH9XJVoeyb4vxqzYHFoPUqPBbLRdmSRFfKrmSzNBy2YLtjv5p3fJP7X35l5evUU9XUJ bKLvB5JTpVDaW9016zEbuby+PGTULPlTiJY/yWWzTvVGg5zHA0MZaPd75C/86RsWOIGK CDm3M8D6HRO6DhkfVgIIelOuYB84imOlomPnIEVj73j0lk4DrS9l0BR+ZHfCZSzTiMnW ZWwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678421311; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=m47cP73h9+tUW+X/2AFChPVWpE3J+7t5tQOf5sCuZMY=; b=xfknc6HEBU78+Bp8WfP4UxFegyVFXdjS9IyNnGDA2HspjgbTjbOJNbEptiOcIzlRqg oXKsHEKYzh/5FVQMnlFbrK/ohBEz0kOjuq3petFgKmn7HuOjpKmUKkUZbulkNPlpOe3V goZVwFJjOGJ4/nXkfJa/mkz6XkefLsosRbkPP9vP1OConEMK3mrI5CbCMZdbJjuXP28O Ud6+aaDrEQIbsY0pdxEuddtPHGZz4UP/Ko7ttIjxK97bGUwjFQqInCGnKqHk647vslkR i30FYX3dofTw1AsThuk/BdOa0/BvwX2B8eOyORcs9lerwBm499NdxUyllMqE0Wm0imM+ XGJw== X-Gm-Message-State: AO0yUKUVyIXXbPeWsBuY2wQl5BVt/3o7LrMIwmqzp8QaIFmJFgOaHujl m1xnUpaadvVO4/FsO7fEU+y8 X-Received: by 2002:a62:18c1:0:b0:575:b783:b6b3 with SMTP id 184-20020a6218c1000000b00575b783b6b3mr18221453pfy.28.1678421311266; Thu, 09 Mar 2023 20:08:31 -0800 (PST) Received: from localhost.localdomain ([27.111.75.67]) by smtp.gmail.com with ESMTPSA id y26-20020aa7855a000000b0058d92d6e4ddsm361846pfn.5.2023.03.09.20.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 20:08:29 -0800 (PST) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: andersson@kernel.org, lpieralisi@kernel.org, kw@linux.com, krzysztof.kozlowski+dt@linaro.org, robh@kernel.org Cc: konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Subject: [PATCH v3 00/19] Qcom PCIe cleanups and improvements Date: Fri, 10 Mar 2023 09:37:57 +0530 Message-Id: <20230310040816.22094-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 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_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759953069339909026?= X-GMAIL-MSGID: =?utf-8?q?1759953069339909026?= |
Series |
Qcom PCIe cleanups and improvements
|
|
Message
Manivannan Sadhasivam
March 10, 2023, 4:07 a.m. UTC
Hi, This series brings in several code cleanups and improvements to the Qualcomm PCIe controller drivers (RC and EP). The cleanup part mostly cleans up the bitfield definitions and transitions to bulk APIs for clocks, and resets. The improvement part adds the debugfs entries to track link transition counts in RC driver. Testing ------- This series has been tested on SDM845, SM8250, SC8280XP, IPQ4019 based platforms. Merging Strategy ---------------- Binding and driver patches through PCI tree and DTS patches through Qcom tree. NOTE: For the sake of maintaining dependency, I've clubbed both cleanup and improvement patches in the same series. If any of the maintainers prefer to have them splitted, please let me know. Thanks, Mani Changes in v3: * Introduced init_debugfs callback for defining the debugfs interface specific to IP versions * Added a debugfs patch for v2.4.0 * Added a patch to rename qcom_pcie_config_sid_sm8250() function * Added tested-by for patch 11/19 Changes in v2: * Moved the "mhi" region to last in the binding and dtsi's * Dropped the patches renaming the "mmio" region Manivannan Sadhasivam (19): PCI: qcom: Remove PCIE20_ prefix from register definitions PCI: qcom: Sort and group registers and bitfield definitions PCI: qcom: Use bitfield definitions for register fields PCI: qcom: Add missing macros for register fields PCI: qcom: Use lower case for hex PCI: qcom: Use bulk reset APIs for handling resets for IP rev 2.1.0 PCI: qcom: Use bulk clock APIs for handling clocks for IP rev 1.0.0 PCI: qcom: Use bulk clock APIs for handling clocks for IP rev 2.3.2 PCI: qcom: Use bulk clock APIs for handling clocks for IP rev 2.3.3 PCI: qcom: Use bulk reset APIs for handling resets for IP rev 2.3.3 PCI: qcom: Use bulk reset APIs for handling resets for IP rev 2.4.0 PCI: qcom: Use macros for defining total no. of clocks & supplies PCI: qcom: Rename qcom_pcie_config_sid_sm8250() to reflect IP version dt-bindings: PCI: qcom: Add "mhi" register region to supported SoCs arm64: dts: qcom: sdm845: Add "mhi" region to the PCIe nodes arm64: dts: qcom: sm8250: Add "mhi" region to the PCIe nodes arm64: dts: qcom: sc8280xp: Add "mhi" region to the PCIe nodes PCI: qcom: Expose link transition counts via debugfs for v1.9.0 & v2.7.0 PCI: qcom: Expose link transition counts via debugfs for v2.4.0 .../devicetree/bindings/pci/qcom,pcie.yaml | 12 +- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 25 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 +- arch/arm64/boot/dts/qcom/sm8250.dtsi | 15 +- drivers/pci/controller/dwc/pcie-qcom.c | 1200 +++++++---------- 5 files changed, 521 insertions(+), 741 deletions(-)