From patchwork Tue Jul 27 12:36:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1510487 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-xilinx-onmicrosoft-com header.b=SbVsYK8u; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GYxC02CXvz9sRR for ; Tue, 27 Jul 2021 22:37:32 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 704E08346F; Tue, 27 Jul 2021 14:37:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="SbVsYK8u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 456A583480; Tue, 27 Jul 2021 14:37:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2060b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eab::60b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B17FB83479 for ; Tue, 27 Jul 2021 14:36:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ashokred@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C6YwYeRcVaIZpzh+d/b24m9aNom1LsrRihKbIeKpy1AnsilOaa+B/+3Hyccg5UBFitHgcjypYvXTNUKeiRwN+6x7D3vJnL0slTJrKidHbSzJTpVa2YYZ7wA7kZfdaB4mCohcYdwyDr2FxqB43sMGVdSUEWo5YTW/rHdD5F3gWsQTtSP10glbfI/dP/EjWQAX92sJAm74r/M7jZjd2le7ukYFwaLMGobwubcD7AdiZhEM7SQvuRGcPrbramgcX4opQ84wDBaeXj/vILS9VkBtORpqY0c8XGkr7XJoA1T6+rLK5li3Yg7am5NRjnHMkZeNbCu852SV7q1bN6G/nDhKWQ== 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=7eMAYCDtifkxncf8U3Mq8tBo1SrkquBEEIStXNFW9CU=; b=Z/zgRRK+gkGcv/5R5qLTa8BgB5j+Pa72JDWCbSxkLe5eiQa2ggeKKc+QJXp3Pz7bO0gLwqPHz582yUKwIZvwwYXtkePO1LxpOXg+eXbt5SdEnBkhGl/wGpPwmAztJqGqacaW2LeFr6UgGJ2SHYCNhl7ZiDXFm9Cdz2DKOPIixnL2pO7LYKLhz0hAJhVjofdoYG49YpEjREwNEjC6FLHwE0Yme6BFzK8yFJhPqseo5H5bmOhy88llwUoHu5cAUoWyJpbhAS4LO1NVQjGT2DIx7ndcB+nNoRd03F9yT5c2grXqY92RX+Nd7Gq1jD4iGYVmhMkJwBm+utxpQNFhLOt91w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=chromium.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7eMAYCDtifkxncf8U3Mq8tBo1SrkquBEEIStXNFW9CU=; b=SbVsYK8uHK2Ms/7M8csdNjkbMmKGFW2VPlBqpgix0Mccbv0bhMd33w5B+O1F9pVkWhEQlPuDjpTEE9uOn7Of8o2jS0p1f3A6ZFd7vGVJC+iZeQNtRrSiTunCnH0q8m3yFYEZwmZAYYf5tyOOv18mEBWjNoCgIkZ1K1vcrve9rjg= Received: from DS7PR03CA0127.namprd03.prod.outlook.com (2603:10b6:5:3b4::12) by SN4PR0201MB3408.namprd02.prod.outlook.com (2603:10b6:803:50::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Tue, 27 Jul 2021 12:36:51 +0000 Received: from DM3NAM02FT031.eop-nam02.prod.protection.outlook.com (2603:10b6:5:3b4:cafe::fc) by DS7PR03CA0127.outlook.office365.com (2603:10b6:5:3b4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.26 via Frontend Transport; Tue, 27 Jul 2021 12:36:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; chromium.org; dkim=none (message not signed) header.d=none;chromium.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by DM3NAM02FT031.mail.protection.outlook.com (10.13.4.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4352.24 via Frontend Transport; Tue, 27 Jul 2021 12:36:51 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 27 Jul 2021 05:36:48 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 27 Jul 2021 05:36:48 -0700 Envelope-to: git@xilinx.com, sjg@chromium.org, somaashokreddy@gmail.com, u-boot@lists.denx.de, monstr@monstr.eu, peng.fan@nxp.com, jh80.chung@samsung.com, faiz_abbas@ti.com, michael@walle.cc Received: from [10.140.6.65] (port=38286 helo=xhdashokred41.localdomain) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1m8MKE-0007B7-Pl; Tue, 27 Jul 2021 05:36:47 -0700 Received: by xhdashokred41.localdomain (Postfix, from userid 2896) id EB7641025DE; Tue, 27 Jul 2021 06:36:44 -0600 (MDT) From: Ashok Reddy Soma To: CC: , , , , , , , , Ashok Reddy Soma Subject: [PATCH v2 6/8] mmc: zynq_sdhci: Change variable deviceid to node_id Date: Tue, 27 Jul 2021 06:36:40 -0600 Message-ID: <20210727123642.2474-7-ashok.reddy.soma@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210727123642.2474-1-ashok.reddy.soma@xilinx.com> References: <20210727123642.2474-1-ashok.reddy.soma@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d5a3df52-f7ca-456c-91a9-08d950fb35c6 X-MS-TrafficTypeDiagnostic: SN4PR0201MB3408: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:2733; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z00PrzHW/jJDIMzjhTed6JuWnPO4VthXP7eeuyiZNAgtUx1gLgOLf9w29IrEBaYlvaOHV00TW6sMq4H0rn6a1dqEckCXc8f+jOhauedYVlJLXzuTKat2WXGLeW2VzphogvnVkjaRTN/132rsjUO/4IZub65DHusxTX0IiYbh/NWSssrmpMYtrgmiJ+2aSGeoZcN37l+9cqF4mMOZkQy1CWIaa/JAF38NbxLT32CTtk1nL3w+G3a2ruEUrQ8efZXvizSA4ummFfiuooxnscrKKMPMsPfyenZEqXThyM+3n6xSSLn505AGzOlqTBqBuTI0iAd15O2slwlpmGz2GFwsHDyNBMKpfFooyKqwFG8dl15kbZsvhX3+GrduMjm5KNjthCMWwjIa1th0ueijL4qoUutu+LjuX9W9JIv2harXqwo+87mhXgVh/Stq2fAZrwz3eGY4COrt9pPROTvcRJXqoMA/Ym+EVBqczAHgsQJVyZDtvWqHpNbiCtnb2yb70yZbXi+C9nL6/a3oYvJ1JZmqSiaAw0BMG9Q7jcuG+mTb8aiV20MXw1wZ4Eqs3SOp06CgxNQApi3+rVMszLQ2fTPtGk6Dn7SEejizMkKtqpa+y9CQ7Q/jHuMAtHNsLu3fw7CeH8hquX9WYnC2X2Hp9GGN7+tXsA3+oT4XioDxe09cuaUWvdNW5zaglfppzENn8DjpYQBVm08bU/WNn9hs+JDGBA== X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(136003)(39860400002)(346002)(396003)(376002)(46966006)(36840700001)(26005)(336012)(82310400003)(316002)(70586007)(70206006)(6916009)(5660300002)(36860700001)(83380400001)(2906002)(1076003)(103116003)(6666004)(36756003)(107886003)(186003)(4326008)(36906005)(478600001)(42186006)(8936002)(356005)(7636003)(82740400003)(8676002)(54906003)(47076005)(6266002)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2021 12:36:51.7955 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d5a3df52-f7ca-456c-91a9-08d950fb35c6 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT031.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0201MB3408 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Change deviceid to node_id in arasan_zynqmp_dll_reset() and also in tapdelay related static inline functions to reflect proper name and for consistency. Signed-off-by: Ashok Reddy Soma Reviewed-by: Jaehoon Chung --- (no changes since v1) drivers/mmc/zynq_sdhci.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 043af5cb3a..81311d14ca 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -75,17 +75,17 @@ static const u8 mode2timing[] = { [MMC_HS_200] = MMC_TIMING_MMC_HS200, }; -static inline int arasan_zynqmp_set_in_tapdelay(u8 deviceid, u32 type, +static inline int arasan_zynqmp_set_in_tapdelay(u8 node_id, u32 type, u32 itap_delay) { - return xilinx_pm_request(PM_IOCTL, (u32)deviceid, IOCTL_SET_SD_TAPDELAY, + return xilinx_pm_request(PM_IOCTL, (u32)node_id, IOCTL_SET_SD_TAPDELAY, type, itap_delay, NULL); } -static inline int arasan_zynqmp_set_out_tapdelay(u8 deviceid, u32 type, +static inline int arasan_zynqmp_set_out_tapdelay(u8 node_id, u32 type, u32 otap_delay) { - return xilinx_pm_request(PM_IOCTL, (u32)deviceid, IOCTL_SET_SD_TAPDELAY, + return xilinx_pm_request(PM_IOCTL, (u32)node_id, IOCTL_SET_SD_TAPDELAY, type, otap_delay, NULL); } @@ -95,7 +95,7 @@ static inline int zynqmp_pm_sd_dll_reset(u8 node_id, u32 type) type, 0, NULL); } -static int arasan_zynqmp_dll_reset(struct sdhci_host *host, u8 deviceid) +static int arasan_zynqmp_dll_reset(struct sdhci_host *host, u8 node_id) { struct mmc *mmc = (struct mmc *)host->mmc; struct udevice *dev = mmc->dev; @@ -108,7 +108,7 @@ static int arasan_zynqmp_dll_reset(struct sdhci_host *host, u8 deviceid) sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL); /* Issue DLL Reset */ - ret = zynqmp_pm_sd_dll_reset(deviceid, PM_DLL_RESET_ASSERT); + ret = zynqmp_pm_sd_dll_reset(node_id, PM_DLL_RESET_ASSERT); if (ret) { dev_err(dev, "dll_reset assert failed with err: %d\n", ret); return ret; @@ -116,7 +116,7 @@ static int arasan_zynqmp_dll_reset(struct sdhci_host *host, u8 deviceid) /* Allow atleast 1ms delay for proper DLL reset */ mdelay(1); - ret = zynqmp_pm_sd_dll_reset(deviceid, PM_DLL_RESET_RELEASE); + ret = zynqmp_pm_sd_dll_reset(node_id, PM_DLL_RESET_RELEASE); if (ret) { dev_err(dev, "dll_reset release failed with err: %d\n", ret); return ret;