Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4887304rdh; Wed, 29 Nov 2023 13:45:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFACDHy0bHyyk5Yvvsb7TU/0rT7aQ/ZJFFIRvwmex4r/afwuPpDlyYM4F27LHXNx7659WPa X-Received: by 2002:a05:6808:209c:b0:3b8:9b8e:157b with SMTP id s28-20020a056808209c00b003b89b8e157bmr2522874oiw.23.1701294319166; Wed, 29 Nov 2023 13:45:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701294319; cv=pass; d=google.com; s=arc-20160816; b=rwfLdq4tsO2XZiekQAedxf4zAkR7lYzwIkihg7DsqGo7KslUBjDh+mWCCGzsJC3vPr FN6mS4AesAhp7YumDqpsCxpjTaBSt/H14+itGbaIA4kdc8mqJ1JYL6Ga/77FPEjMZe9p APt6d9VyLe5f4ws90NNy2zB7JqIsdxEf1Ck6+RFEnX2Frhvyfb+7MwNNCvVgWd25O6Ns o9vMOzNEd3oEIWayqAn0WgIETUuvAgQ56Y35ZcqmBLBBbSES+uKsVdwkgtFpStkzBx26 aPDOsRSdSZh5XC80kcDQYnfl/PJ7yhBEoUCe+0BDY9WVZ+DUiTUc8WZF1dhbEISDv4AP cUPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/AE14muc++KDpujY+IPKp/s67OcCuA6D343pU1JuQgE=; fh=G2Za2XEd7lFHZ2j3w8Am2dhf4mDmMexXUuvn1GAozXQ=; b=bgWEac6VVpZ+H0t2yG678QhZBfNfNk/TpyrcNx5R8fc5/+tM8uSYoGVPXRG8TMHRf+ xfZRH0wj/bktp8yNQnMECS3RHpESeZtrdx89mwiZ3Zqf8d6Wl92hY67vUG22DlTjA63U vEEYHaTOxQOdswt/5DVzHWodLJOwHrsP9NLZFt7UTA+xRnhp/3NsvRoN10XWR7Kcw0s5 4S5kzJS4hqHMq/2V8Ov0NE5vXiaaF/k6VcqhDdjbtLTX5KhoQ1UJUGhYVglyGtdrJrm0 Hiwqo4ZxRGxvTENnu72lAHuQR/6/hxlWgmwKzSs86ejpRYrrsa835ObMJVYzR+Iuq6mI sikg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VpORKfxg; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q9-20020a656249000000b005c21c4a46ddsi14338452pgv.356.2023.11.29.13.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 13:45:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VpORKfxg; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 410EF8032A1B; Wed, 29 Nov 2023 13:45:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234672AbjK2Vol (ORCPT + 99 others); Wed, 29 Nov 2023 16:44:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234639AbjK2Voi (ORCPT ); Wed, 29 Nov 2023 16:44:38 -0500 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2082.outbound.protection.outlook.com [40.107.247.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C91F10FC; Wed, 29 Nov 2023 13:44:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NEbMcQV02rj0uH/ZMAx3jOiai3YEFJxmBOFZD2DTw3lZL3jc3Fd94tkdMeCFDcNqf1tuyEewApXOKjoF1XuVEfzy5MIJUcp6C344a/yqAR+G/jT0M8VJfvNiLgb+vBaNhThJzGr6XPXzLfRzCk8/VQxs9xnczwcdfXbIICqqM6fiCFy/1fWu3FRZh169QQJhEztdhaf1jLebicmPcyaGJTDgdhPIRwA0scErEoAJR1vTTpVO4/5q70zgiQwraaSSEnODdjqG1p6dkq9u2pz7GA+lqPZWzc9gOUgAVyO1xrJ6B3L3dqyCBcIEeOvb8SWvJ2Wcxv0VTgoA2IZ5mfGogw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/AE14muc++KDpujY+IPKp/s67OcCuA6D343pU1JuQgE=; b=QUEXsCqWokPG8rwNviB52mvQFMbSwai7J2kUhuAB3IjwNtmXBbaEhzCYqTk2wiYsrPG7BePQlkR23AnSr1rvzMU63ertOjrX98oeuVFiZC4XmMxs7gXzrF6s2pTn1Z0QWSvb1PeSneWkLcNWB72bfqwAdS58rLi3q0CEsfn5zGbHQWNQgZ9DI9p6b761G6Pp8kBHVx3jZhRic3f7jBWeJe4S9l+iK9CMgVRGDuzbBuhq8IESgGIZUT5konrQ4plXUvk9xhRb3z3gQ18A9lPMOaheXTAgNN+F5y+xZBaI7fJZAJL8gtQ+xNOx0Rj1zZSyRBgd5BJbaxfyQa+ILxoq8w== 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=/AE14muc++KDpujY+IPKp/s67OcCuA6D343pU1JuQgE=; b=VpORKfxgSg2LwQPDdMApJ65HEd3uqINjSpeZjEcWAVxz1hU2cDRlQs2R1l2l1jNKXCxUwl2SytJrbXeGiA5vnJKEVEQTqUaXa8BDU5MNVsS6cPpFjKMZR+pVts8Fluk5lOF021Dp1D2y5eE94jRaXOFM8cdwaVTmJ2RaETHcN80= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by DBAPR04MB7416.eurprd04.prod.outlook.com (2603:10a6:10:1b3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.11; Wed, 29 Nov 2023 21:44:41 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%6]) with mapi id 15.20.7046.015; Wed, 29 Nov 2023 21:44:41 +0000 From: Frank Li To: manivannan.sadhasivam@linaro.org Cc: Frank.Li@nxp.com, bhelgaas@google.com, imx@lists.linux.dev, kw@linux.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, lpieralisi@kernel.org, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, robh@kernel.org, roy.zang@nxp.com Subject: [PATCH v4 3/4] PCI: layerscape: Rename pf_* as pf_lut_* Date: Wed, 29 Nov 2023 16:44:11 -0500 Message-Id: <20231129214412.327633-4-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231129214412.327633-1-Frank.Li@nxp.com> References: <20231129214412.327633-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0136.namprd13.prod.outlook.com (2603:10b6:a03:2c6::21) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DBAPR04MB7416:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c8bcb84-09f6-4a76-02bf-08dbf1246447 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZV0zzUbtRPEzLGu4a8GBtmMOfZ6ID/HfvCg1qmSxCG+tD0G9xF9484vVezJWvrRlF7D1pfM5DiazF5MT+8nRNTPS88OKAp4hta4hv+yIrud7JYyCycy2W2nqUBJ4DKNZCVTy1nRq+aPmwxTBNqeIwVaXIB8WEyGZlSOH8IzZ0y/4JKKltDNqHTyj+Hj7c1tq0PSd6OWD0ApldNr6SBiXpcidhCnUx1WB7BnY4OIsdqiYKSqFFUNBmlZttCEkz6kpFZMx2hCXkQlUG/JK2otV/XLXErSuxD77V+3bZ6ytyCcRCZcTEXB8NTTw/jraLcEvP2S474bB3Nm6Rf5Jah8ONZmjrY1mHpf2rtKYwefJp8RdoflxwQzBTKn+gHkIQP7K0b01UdNn/yIO6f3w1izIYRedeFaKLs3hYlEErIWywGsGe15aRml2J0XpBUah/UE2Gj7pA8gG9HNUga9zv0jaElhjDOam1DMMJQ+ZM/fEk8MGBf8ZIISLik1S14EL3lft0TueX7BYoC5PB9wyXYNTBmcd/N/jWKCKAJzkGI3lSmcjGDEgDGuLXfsTW1D6Qtbxxv65SzH5m9TrnpWVyuqS4tomRD/t+llK9zQvTCilZTabRQiPTnJsZJ1P58J8CJeVD0sEsTnmMAgrnBKLtEK/i+tOMhOEza4csVTEVfIYToA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(39860400002)(376002)(136003)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(83380400001)(26005)(41300700001)(8936002)(8676002)(36756003)(478600001)(6486002)(316002)(86362001)(4326008)(6666004)(38350700005)(38100700002)(202311291699003)(1076003)(2616005)(6512007)(52116002)(66476007)(6916009)(66556008)(66946007)(2906002)(5660300002)(7416002)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?lMQBVrcaSkESHhj71zUa7i2L1OORRsW6OVwK+kNaZEKNHnnQeNekqve4bE/W?= =?us-ascii?Q?Yn+CXPyGSxSExxkl1992HetyaJC9PI9wHWg5ynZK2WTi10OCUTik+mZYSFCR?= =?us-ascii?Q?Gp0L/r7ZodWZMErX7l7gnOTsv2mbHeo22Ltz+6VHM4Ba5cR7cPEzLMyiR/H6?= =?us-ascii?Q?Aa5G+NRtTsRir/Ur5GPAlB0spAteOfQ04ZjsIp28oqiQ49JIFx7uJJmGMxBX?= =?us-ascii?Q?Rehoz+mMnXVPfsKV+2ojnnzGOOlrNW95+O10V/N58w5TV0SZpcsN55pJsK7j?= =?us-ascii?Q?Bl/qy7yabel8bwDQFiLlFB3hRok9WuCtUhdVxRrEBibiUY6dDCt5WXTvKl3O?= =?us-ascii?Q?VWEKwwhmoVN9BaFeX1AeF2eUe/802pdyhLGfHLZadwXSnuySeBlS6ejJjx1v?= =?us-ascii?Q?SV54LxShkZVFan1vRPb1r4xcGLieH/uH8TUTQZgz3tRpFL4mJ9kLjMDSRfQP?= =?us-ascii?Q?+ueq8tT0EjpU5ogSFeZAp+aek9HKKC1WcGsdvns97uQWbXePBKjivM348iIi?= =?us-ascii?Q?b9JPfIuSY8uf7PFp+tzLTVDD56DJwcjv3Tjye+1ux+H5rfl/TvvrDgIlsjWr?= =?us-ascii?Q?PVsoZgupV5GKwAC5tsymwrn9PbgiSQiU08j+qV/1Qq2pSrNPVGKPBHaMCV4X?= =?us-ascii?Q?32PSEadWjpkAeeGqZazT9vaddCKEZmD8IkCM/4htgEL3k65fUnroCDHz/+tD?= =?us-ascii?Q?S/lLh6PFk4bPMcOPR4AwmNLRylSNRk4s1g7XswsuzHAu2zMGlDYL+vAJVnLf?= =?us-ascii?Q?vugbpEH5xQiADXIHvdRnH85hXPXhXUytFh6/hLYc6AWG7O/zYftk2OxaT/is?= =?us-ascii?Q?2zpU0Rv2/s3BfqwuucOWnhzaBLwSovsrYJhVfVoqeBdXJMz+j3vsmU1qg9+C?= =?us-ascii?Q?lxCwuKl4T0YSu8s0E8/glbQ6c/ZW4twsYvbEnBqHLqvLcx2ln5pICG12faXp?= =?us-ascii?Q?4gknnRlOv9VuZ0zCaE0IGrluFv/92nDaoCVQJthjHjtVds7jwiXkR9KczO1V?= =?us-ascii?Q?g6vm5WdPWqgOBoGLTtNt8+AAPK9uUp4CBDjio7tsbI1OJNOHScX4/76x/7Lr?= =?us-ascii?Q?vB9GqCfsEOq/QoJPBvJwW2SHUdFtJYz7W4BOFygposOb3iltNvz+j4OhIVdV?= =?us-ascii?Q?Vdwk7MW+aAbLzUyRMnVPFog4mK0vsnlidVNQ/BP9hWw1UJ2qK7ekR9UECs+n?= =?us-ascii?Q?gkLs2AwvUQMgrvnLtBYs6Q8cFt63nQTG6b4Y8matYS5CldyNoBPA49D1wjj1?= =?us-ascii?Q?NzSiSUXmQbDLU8kTPaZYHf3nmc1Q/b9xC6ChQIHpqCl6LInJgDVjHQqxoTRl?= =?us-ascii?Q?CxTgBq7wY3zZEJuF0EzgCkDJnly4uRo0iQQ912J1juyamyPa4ZEZZr9M6Ya1?= =?us-ascii?Q?krpV5MC/j3fy+Lrzk1aBUpKHB40nRpSaWRsNpzfSLVqZaMYgp7e91iessZ2l?= =?us-ascii?Q?1RBzryBuWENDggLyuXZ62PWqGHmqVPIi6JkgzeV4IriB8XdKMimUDO7Xh4uA?= =?us-ascii?Q?3nKr6b7mZM6UeNEwbm3q2feZesUbP+t9hLglTkNc2wH1HjlWGAd8nHv5zlAW?= =?us-ascii?Q?Y8C3aKtAemSkAOpeiBs=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c8bcb84-09f6-4a76-02bf-08dbf1246447 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2023 21:44:41.0554 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ww6Z89gAA72QetzSiEvYk/4fw5k3wQ78oxYNnXbRnnzfuyIy+dwRIUnF6bJ7xAkVlwf+moRl88The/dTXW1TJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7416 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Wed, 29 Nov 2023 13:45:16 -0800 (PST) 'pf' and 'lut' is just difference name in difference chips, but basic it is a MMIO base address plus an offset. Rename it to avoid duplicate pf_* and lut_* in driver. Signed-off-by: Frank Li --- Notes: pf_lut is better than pf_* or lut* because some chip use 'pf', some chip use 'lut'. change from v1 to v4 - new patch at v3 drivers/pci/controller/dwc/pci-layerscape.c | 34 ++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c index 42bca2c3b5c3e..590e07bb27002 100644 --- a/drivers/pci/controller/dwc/pci-layerscape.c +++ b/drivers/pci/controller/dwc/pci-layerscape.c @@ -44,7 +44,7 @@ #define PCIE_IATU_NUM 6 struct ls_pcie_drvdata { - const u32 pf_off; + const u32 pf_lut_off; const struct dw_pcie_host_ops *ops; int (*exit_from_l2)(struct dw_pcie_rp *pp); bool scfg_support; @@ -54,13 +54,13 @@ struct ls_pcie_drvdata { struct ls_pcie { struct dw_pcie *pci; const struct ls_pcie_drvdata *drvdata; - void __iomem *pf_base; + void __iomem *pf_lut_base; struct regmap *scfg; int index; bool big_endian; }; -#define ls_pcie_pf_readl_addr(addr) ls_pcie_pf_readl(pcie, addr) +#define ls_pcie_pf_lut_readl_addr(addr) ls_pcie_pf_lut_readl(pcie, addr) #define to_ls_pcie(x) dev_get_drvdata((x)->dev) static bool ls_pcie_is_bridge(struct ls_pcie *pcie) @@ -101,20 +101,20 @@ static void ls_pcie_fix_error_response(struct ls_pcie *pcie) iowrite32(PCIE_ABSERR_SETTING, pci->dbi_base + PCIE_ABSERR); } -static u32 ls_pcie_pf_readl(struct ls_pcie *pcie, u32 off) +static u32 ls_pcie_pf_lut_readl(struct ls_pcie *pcie, u32 off) { if (pcie->big_endian) - return ioread32be(pcie->pf_base + off); + return ioread32be(pcie->pf_lut_base + off); - return ioread32(pcie->pf_base + off); + return ioread32(pcie->pf_lut_base + off); } -static void ls_pcie_pf_writel(struct ls_pcie *pcie, u32 off, u32 val) +static void ls_pcie_pf_lut_writel(struct ls_pcie *pcie, u32 off, u32 val) { if (pcie->big_endian) - iowrite32be(val, pcie->pf_base + off); + iowrite32be(val, pcie->pf_lut_base + off); else - iowrite32(val, pcie->pf_base + off); + iowrite32(val, pcie->pf_lut_base + off); } static void ls_pcie_send_turnoff_msg(struct dw_pcie_rp *pp) @@ -124,11 +124,11 @@ static void ls_pcie_send_turnoff_msg(struct dw_pcie_rp *pp) u32 val; int ret; - val = ls_pcie_pf_readl(pcie, LS_PCIE_PF_MCR); + val = ls_pcie_pf_lut_readl(pcie, LS_PCIE_PF_MCR); val |= PF_MCR_PTOMR; - ls_pcie_pf_writel(pcie, LS_PCIE_PF_MCR, val); + ls_pcie_pf_lut_writel(pcie, LS_PCIE_PF_MCR, val); - ret = readx_poll_timeout(ls_pcie_pf_readl_addr, LS_PCIE_PF_MCR, + ret = readx_poll_timeout(ls_pcie_pf_lut_readl_addr, LS_PCIE_PF_MCR, val, !(val & PF_MCR_PTOMR), PCIE_PME_TO_L2_TIMEOUT_US/10, PCIE_PME_TO_L2_TIMEOUT_US); @@ -147,15 +147,15 @@ static int ls_pcie_exit_from_l2(struct dw_pcie_rp *pp) * Set PF_MCR_EXL2S bit in LS_PCIE_PF_MCR register for the link * to exit L2 state. */ - val = ls_pcie_pf_readl(pcie, LS_PCIE_PF_MCR); + val = ls_pcie_pf_lut_readl(pcie, LS_PCIE_PF_MCR); val |= PF_MCR_EXL2S; - ls_pcie_pf_writel(pcie, LS_PCIE_PF_MCR, val); + ls_pcie_pf_lut_writel(pcie, LS_PCIE_PF_MCR, val); /* * L2 exit timeout of 10ms is not defined in the specifications, * it was chosen based on empirical observations. */ - ret = readx_poll_timeout(ls_pcie_pf_readl_addr, LS_PCIE_PF_MCR, + ret = readx_poll_timeout(ls_pcie_pf_lut_readl_addr, LS_PCIE_PF_MCR, val, !(val & PF_MCR_EXL2S), 1000, 10000); @@ -243,7 +243,7 @@ static const struct ls_pcie_drvdata ls1021a_drvdata = { }; static const struct ls_pcie_drvdata layerscape_drvdata = { - .pf_off = 0xc0000, + .pf_lut_off = 0xc0000, .pm_support = true, .exit_from_l2 = ls_pcie_exit_from_l2, }; @@ -293,7 +293,7 @@ static int ls_pcie_probe(struct platform_device *pdev) pcie->big_endian = of_property_read_bool(dev->of_node, "big-endian"); - pcie->pf_base = pci->dbi_base + pcie->drvdata->pf_off; + pcie->pf_lut_base = pci->dbi_base + pcie->drvdata->pf_lut_off; if (pcie->drvdata->scfg_support) { pcie->scfg = syscon_regmap_lookup_by_phandle(dev->of_node, "fsl,pcie-scfg"); -- 2.34.1