From patchwork Thu Jan 7 09:11:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 12003253 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D89BC433E0 for ; Thu, 7 Jan 2021 09:04:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED26523357 for ; Thu, 7 Jan 2021 09:04:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED26523357 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=qo36nBG8XJ7ueg6waWU/IRuQBtW12mglA4edyQU3cyo=; b=HpUZg16FIJOfgVP16CPb4+mTEC 7kWktMb/NQysMbzFf0aCUetP3zw98bhw33nVdQ035hGJ2OgkBBEYpfuXMJoIpvfeCbTDrrSy6mTJF YKK8uW3L7X83y25ykQthAX/2mQVt218zyMGlmQAFaOWKohyjmBRHM9JfYG0ymmSQ1xktIHufDSjM3 lGqmxwmlgyvXVO/+PaYjxFWYNmMftM8OMXo4jDETFBNwZre7bjmFOxh3h0laM//lxFhA1DX1JSdNV s9hnmEp0bX5U5puabLR8C/vinfZu14tJoiyIMgdeRHQq8MntEwetDSKLSp96Z2Yj24KdpYlHGCQRc W158MMDA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxRBz-00049h-CB; Thu, 07 Jan 2021 09:02:51 +0000 Received: from mail-eopbgr140072.outbound.protection.outlook.com ([40.107.14.72] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxRBu-00045O-Qe for linux-arm-kernel@lists.infradead.org; Thu, 07 Jan 2021 09:02:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DVO4srd/TVQaRFDLAE9+Lx6FlYluU6eamnfK3Y4W07bZQoEOSjxksincufyEAGGGALA4dxbjctARycaS3yDcT35jWbTv2N32na0wyDmpDEprI+PIQ/yNkOyi57SChjE2aCbaStWyuaNus55u1rl84C55z3lMMlEhdNu4n9afhd6VRTb0THwtxxgpf5VeLf/hCxBXC2LHKVyfEh5x1ctQ14xudthwx0jij55xih2JRpv6XMWL2w2K4l5IxO9l+R3kWDuaCKbSqXvDtmwcUqjPyRcuLzYLyXUu6Nby3I60yju58brIi0X3nf748J3riFtOpbZeWCJAorGO+DjN2PfN5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NZSDK6CDrtWxVcnSPNlCMPqROCftudZh1zvB/4l8Uk8=; b=Iykl2U7TJJlTCGKbOAndMCH3WYeyY6PIAU8Ag1fa0diRjp6rR1Pbv6f0+uIUX6fwD/YkiUvKwO9RzCWpex+lgHsbAzWVyF2Hk7a67lSpb6nR1z1dppklJd2m0OFnMDK4/zBM1R8MXqUTvrGFwUa0X/QCEy9s1GmGikh4kVOzShEoKMCypsMOWYBbM0c44jNFM0h/CnOyzR8w0gjf8i+oBI9qKpMjftN0oEOI2+qWljcT7xxcZxvVGxsDncy7++UI7kaEn3gOtES6L4s/xKFI/ykJuDyWP4XTdL9ShqgzhWIQzZYesXRHpWGLJlrjpLRvtX/vicDNldzEZqwOIMHjIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NZSDK6CDrtWxVcnSPNlCMPqROCftudZh1zvB/4l8Uk8=; b=q5FCkEc9Toudj5SrB3XLn/JKzbEHaRV3g4pdjfPwZXhzRq+cD6zu7GlRYLsgP+N+WzUkWVrUwjq80RWkVgPA93z5MC02W0Z1qozn2qgTUDeCOF/NySSnNxUMc8wK5r/g6xTCbQjDRaF14+waI2xiQNtiMRFaJH9jtU/nFzHV400= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) by HE1PR0401MB2297.eurprd04.prod.outlook.com (2603:10a6:3:23::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.22; Thu, 7 Jan 2021 09:02:37 +0000 Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::3194:64d6:5a70:a91d]) by HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::3194:64d6:5a70:a91d%4]) with mapi id 15.20.3721.024; Thu, 7 Jan 2021 09:02:37 +0000 From: Zhiqiang Hou To: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@axis.com, lorenzo.pieralisi@arm.com, robh@kernel.org, bhelgaas@google.com Subject: [PATCH 0/4] PCI: dwc: Refine the EP code no functionality change Date: Thu, 7 Jan 2021 17:11:19 +0800 Message-Id: <20210107091123.8616-1-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.73] X-ClientProxiedBy: SG2PR06CA0085.apcprd06.prod.outlook.com (2603:1096:3:14::11) To HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.73) by SG2PR06CA0085.apcprd06.prod.outlook.com (2603:1096:3:14::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Thu, 7 Jan 2021 09:02:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 44fa73d0-ba10-4b07-cfe4-08d8b2eafaca X-MS-TrafficTypeDiagnostic: HE1PR0401MB2297: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U+Dd7cNN7VkHOMhs8A2aBtzJ9mRlqMifKY3u0jmcLSQpH0KKuDhH2TEOQjhvprkO1x7866zR9ZTRi3lywie++zzqAio3a7+eha4jiwPHVnsG2x3h/t9lSlfvstObYYK6Xqd8Ht3lU86BPwB1+BbE2n95M42LayKs3nWTAJbpaH23hy4zyIu3Ypi1twyoXnXGvUE+dhOhpMCoRgbFb0P0oesoPTRNxJffqzHbYbZNrh+1hNTbkQIjjE0lXiDiMNmc/9ceW091S5w1U0N83YI3x4Ep5dkEpW90FOrsiUtlnl5Ejfc00KuTsOUFNj2kWOAwVRwghKlndqRZ5/43eX2c82FYI4x2+4l7fD1GVHDKKniNS9BlrWOrlShQ8bZVPNGQsTV1YlKZAeMws8nUZBwOY1zoKO+uVqC7uPYQYcJvxz82Bt6NdTTUea3r47hAK065hWQAzNjyRtPO9VxM0QfFIg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB3371.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(39860400002)(366004)(376002)(396003)(52116002)(5660300002)(7416002)(66556008)(1076003)(26005)(6486002)(66476007)(4744005)(83380400001)(186003)(6506007)(16526019)(69590400011)(8936002)(66946007)(316002)(86362001)(2616005)(2906002)(36756003)(956004)(8676002)(6666004)(478600001)(4326008)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: IjZ0zfyb4cawJ/yrCtF3d4+jqn+VIM/1NurvIyvVkLwDXfsy0e/nPgst9XCkhQza/vInISU4CiG4ZNn9LaoNaq2jB39ZRhKQK1nbJBl5k9YrWvrmA4c0qcRClYI5anYYmMj3USQ84bJh2JL0pd9Tv/8cXdfonWVXtVQzkidXw9Fwvjh7R+KBCFUua4m/0guXtHUHZsngODT50fL7JdQuKKWAhdGn7eGAZdpHB8dWS9/r3TAcSWwPhjLaNVVzxRlPg1ZSbwv9mRHu87mfWg+YJk8a8WuSnbiz7+GQEwXLivEZobOLKYQF021/7jPWxDmtudrNImxgAp6d6p4q6us1bI9sSUNSVebi52QzYIsxuWXHjQ+l2EpGpOJ9caExEIrBhifzlUChZ19rQ05mwAJCsW5DdPbYt7TslvPbaQsCgxcc2DJeF3l5u9RCgbnTpM8bX76tKFELse8b9agaciSwegUb58oIXM7SnbjBgqclFBbvmLr8iK6MIkBfBUf3SjwskWFaj3YP+OxzRbYbjwgPz/m8rXwo+u1D2N4He+a/UxOJDjSjp2mS4RuJdbhjJlLPWfZ4xP5GP4/cHMhj/TFT3Jl47KT+Gd8EyQc6KgWgbkZ/RD7E67M7b/QSYMsmhqp+qI5tspTrof31O2UZ2sCvlmDXfVk3efGIxDvaqsCLJcaJK8zXEBRxpsalxwWN1GoP53DPgdkQb3Ira7i6dN7/0mZh4niIg4jyz0ZV5aOUwXjFJ0bnbkz+oZ7bCXtfuR69g9dwyf4LfwvBHJNLB3GdsDW7V+cGZypJACzIOqvq9VwBjt6sx/dl3ZqlSV8h/GewNjtwrEIeOWljdNn6T+c0XY9KqvK4StRtDzvBnlAsu12x/M403OmgMhW7MUMa4HlDWDyJYeKQmOQAMaDqYwdQ+MSkUAQjW3t36bPZdsif6o6QNCyGeAz9BBbWDqEiw4d8+Vg606Ew1jjYN4JVjQV9w/6xhParv14vgn6Xxai+XAAsOndfX8tzGEB9GKb78ZDR X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3371.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2021 09:02:37.0992 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 44fa73d0-ba10-4b07-cfe4-08d8b2eafaca X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: npoDiaF8O3aIO2HAeN2mvKBJ5xRNk4z15f4Q4ftulJ0LbyofiwxthsR5X7HHvhIeLu92T1uB3ACU332iXddKHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2297 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210107_040247_180204_8770F6FB X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jesper.nilsson@axis.com, hayashi.kunihiko@socionext.com, jingoohan1@gmail.com, Hou Zhiqiang , kishon@ti.com, minghuan.Lian@nxp.com, gustavo.pimentel@synopsys.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Hou Zhiqiang Tune the EP mode code slightly to make it more readable. Hou Zhiqiang (4): PCI: dwc: Change to use an array to store the structure of functions PCI: dwc: Add CFG offset info into function's represented structure PCI: dwc: Rename callback function func_conf_select and its instance PCI: dwc: Change the parameter of function dw_pcie_ep_reset_bar() drivers/pci/controller/dwc/pci-dra7xx.c | 2 +- .../pci/controller/dwc/pci-layerscape-ep.c | 8 +- drivers/pci/controller/dwc/pcie-artpec6.c | 2 +- .../pci/controller/dwc/pcie-designware-ep.c | 192 ++++++++---------- .../pci/controller/dwc/pcie-designware-plat.c | 3 +- drivers/pci/controller/dwc/pcie-designware.h | 11 +- drivers/pci/controller/dwc/pcie-uniphier-ep.c | 3 +- 7 files changed, 96 insertions(+), 125 deletions(-)