From patchwork Thu Dec 14 14:53:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 13493162 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92979C4332F for ; Thu, 14 Dec 2023 14:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=uoZQRpF9lWb43bFUPldJoxHPUl5YCUV3xWNOjrfj+bY=; b=BXzMKFfXUNaa99 HmYE4n7hHUHdPsSdr+/5ika2onbPeJXPrGmQ5mrLhxq2H/dtrK9NqMBgc7wuTi972qAn7MibyUkKs 6JIxi9xElY3Bp9J3Gn9KUx/Rqj6iyeneRYVr8moUSr/fSCmHdy8VuMpPRMVsXjh5ytP1wUwc0JsAH eLmBDMKd3BItH+DR8h+KYQm7kCBhAwge6kf58nGylhJdzuuwSR7mITNqZhD3AnpPHFD8pEAuVpoHY 38sc+3A1FjsPbh9KFLNTymyt+lcsADA+C81xT7n3fvYRS1l/xm4dARg5cO5KOdmDaIQnBOkxX9Zl9 lilOSNjeqDuKfVjrY2Pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDn6B-000aza-2P; Thu, 14 Dec 2023 14:54:03 +0000 Received: from mail-bn8nam11on20600.outbound.protection.outlook.com ([2a01:111:f400:7eae::600] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDn68-000ayR-1g for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2023 14:54:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D45+h5QSdIkPZHB6l+YPFbwieAcYi/aE9LRmXuxPas50iYel4cuKaIgj/6aDd3/XXchCXuXZ9xx7OhRuAMCiiuRzmACqQMn/MY5Ay+DZtGwAqojnZt6BE2BAl4+Woo+4cc2vhHzS9RrdgAFJ4KCwjhXVo7T5HPEdVNITXW8DeVueI5N4d+NKmLvf01d7vEkdGiZOOrd2QrMk6C2EZY5XsEmSzRP2NHaRoZmfFbc4ibtsFRqb4187IxPy0Zz2Cf6HCL20w0KPVyUuXLbTcWJk5UXQkX6GSFawc9EG3uNTegpY70Zg6z8yARY/Lkx7NoxlihNAdJOLnabAle6IASvuJA== 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=xe4yr8nM+pUaUotyPGOwZZIjNH0t1TzFYsXEwSXDxYA=; b=JewE9ru4G6PlkJKW2SYulHlZH1gq5+0o2gY4o3l1j5CLm1ENdpKi3SNyxPrpl2e/F0tfiBcySiH2jL2X7CH7wwut7itB6O6z4ig1O/KIfR2OHVqQAZ+0o2em0K+b77nrgACzWNezPFoyD1TQ2VbzIMpnA5U9QAH42DtZwm5BW5/4hTsW2Dv6KmIeF2aiCb+S7/e51vibdoflkL6pMBgkXtazPdcWHDlquXi32vpS9CR2cOR+kikoslkxDoWCLBg5xhzoxEVBjtC5ImVWxZRO/5ViDuvGQxg2DZFkGed2aumFXRT/Dtf/h3vJlzjzCl257tc2XM5HHgXu6Ny9KMv5hQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xe4yr8nM+pUaUotyPGOwZZIjNH0t1TzFYsXEwSXDxYA=; b=um//lsuTPKTcjZ9PiPjVDnVcl9bF3DNxTUXfJiD3wzGfs2eYcbE//CJKe5a4Dq0Jq4oERsfuAubQT3Ju8hUUf5lbB3tIk1q6w23OfPc3idJrk8VITCI8rdc8p3uFYwM3EMddpfTl8zchacvsZDudMyxlSz3sXt28L56xfnj2nXs= Received: from MN2PR16CA0027.namprd16.prod.outlook.com (2603:10b6:208:134::40) by PH7PR12MB7889.namprd12.prod.outlook.com (2603:10b6:510:27f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28; Thu, 14 Dec 2023 14:53:53 +0000 Received: from BL02EPF0001A100.namprd03.prod.outlook.com (2603:10b6:208:134:cafe::69) by MN2PR16CA0027.outlook.office365.com (2603:10b6:208:134::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28 via Frontend Transport; Thu, 14 Dec 2023 14:53:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL02EPF0001A100.mail.protection.outlook.com (10.167.242.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7091.26 via Frontend Transport; Thu, 14 Dec 2023 14:53:53 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 14 Dec 2023 08:53:51 -0600 From: Michal Simek To: , , , CC: Arnd Bergmann , Dhaval Shah , "Greg Kroah-Hartman" , Jay Buddhabhatti , Linus Walleij , "Marek Vasut" , Nava kishore Manne , Radhey Shyam Pandey , Sai Krishna Potthuri , Shubhrajyoti Datta , Subject: [PATCH 1/2] firmware: xilinx: Remove clock_setrate and clock_getrate api Date: Thu, 14 Dec 2023 15:53:47 +0100 Message-ID: <6ccbffbafd1f0f48f6574d5a3bf2db6a5603fdb0.1702565618.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3811; i=michal.simek@amd.com; h=from:subject:message-id; bh=SF1GxqVWXlPpmKKF/2sSPzOtZHrAiO8mzZRjJYk94TA=; b=owGbwMvMwCR4yjP1tKYXjyLjabUkhtRqsS8Kk43Mvuf2MTA7Wbl9uXrroknph4lpjHJpP/kP/ nt2zaOsI5aFQZCJQVZMkUXa5sqZvZUzpghfPCwHM4eVCWQIAxenAEzkiQbDPAPpmoDZlcw+hbei ws6fkDg0QYlFiWF+7LykR7yLV9y0uni5c5as0sawByV8AA== X-Developer-Key: i=michal.simek@amd.com; a=openpgp; fpr=67350C9BF5CCEE9B5364356A377C7F21FE3D1F91 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A100:EE_|PH7PR12MB7889:EE_ X-MS-Office365-Filtering-Correlation-Id: f43e7e43-506d-49f0-397b-08dbfcb47db9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: chD/IvUQCiRF4biJhDDyxqOm7rrevwouO/cPhYMnRdJHx95J9JtWhn8GIPwsWGo7bS4b6tmvB85wPPYiKH9VeQbRuW0bedcdYzXSajN4IEVJtSyE/upssuzZKDx9UR4gljNoChTvdvlsP2QB89fLFpM4yLyhdcJhTXroSSS4KivbRhP/26aWN0iLPuJPgmRKJqe9U7DrAUZ9syHtuHLFFE/95btlpKjqqVQBugZebt8m1RogQDFj7vVoYckcV+Q/9UEna1ui+EddnwWjlOTlgkvdW4I58Y9Iw2V1G8HCsXmwCjVeYIqHSk5yXBVFchlLIkZUpx2yff7ct1UXvZylcXOWcb8RqDEuf5KesbSPQPYFZxqN4/Gklwd+qyyizp+DC6fP86zLjyG3AMLvHdqoOL+zAvN0KHnNKq7jjIKAusv+v3R/23vXKm1sKnPbQNDF8qM5x89GpBJcviPH9ylGxTEBR6qn+YadUCcZGPDNWkko9OC/qdnYmlycSTAeh0+tAycy/v3NWYX805Cqsd/CUUtbVmpf5FK2RL9LtFRsW3BWlF1jgmC1m2wfsSzZ4sH9MSpuHgMZQktYpckU8kN2QbRpeSnsfXpzmgMsb55ps3z14+EcTgSBsAsXWwqNb0islirP43EHj5npg8N2bt0egQUFWRgZNlL+m8Rse65K/hh+j07N6Z/23xAeAhsSEwNE3HI86vD5B27ngYaDmLirniYJ3cWUAlc0rmvVL8109eGK5HHTeiPulPCV/uMBz8KUgT6QhmdUgij1drHNNbTSrqBCKOuhaXzsNqJ7GHY0+IE= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(346002)(136003)(39860400002)(376002)(230922051799003)(1800799012)(82310400011)(451199024)(186009)(64100799003)(36840700001)(40470700004)(46966006)(356005)(86362001)(36860700001)(82740400003)(81166007)(36756003)(40480700001)(40460700003)(26005)(2616005)(70206006)(478600001)(6666004)(44832011)(70586007)(54906003)(110136005)(8676002)(316002)(426003)(47076005)(336012)(16526019)(83380400001)(4326008)(8936002)(41300700001)(5660300002)(2906002)(36900700001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2023 14:53:53.6035 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f43e7e43-506d-49f0-397b-08dbfcb47db9 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A100.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7889 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_065400_818005_01F8CEFA X-CRM114-Status: GOOD ( 14.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org As per the current code base, PM_CLOCK_SETRATE and PM_CLOCK_GETRATE APIs are not supported for the runtime operations. In the case of ZynqMP returning an error from TF-A when there is any request to access these APIs and for Versal also it is returning an error like NO_ACCESS from the firmware. So, just removing the unused code to avoid the confusion around these APIs. Also, there is no issue with the backward compatibility as these APIs were never used since implemented. Hence no need to bump up the version of the feature check API as well. Signed-off-by: Ronak Jain Signed-off-by: Michal Simek --- drivers/firmware/xilinx/zynqmp.c | 38 ---------------------------- include/linux/firmware/xlnx-zynqmp.h | 14 ---------- 2 files changed, 52 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index caa0952bfc42..2ae9da268215 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -657,44 +657,6 @@ int zynqmp_pm_clock_getdivider(u32 clock_id, u32 *divider) } EXPORT_SYMBOL_GPL(zynqmp_pm_clock_getdivider); -/** - * zynqmp_pm_clock_setrate() - Set the clock rate for given id - * @clock_id: ID of the clock - * @rate: rate value in hz - * - * This function is used by master to set rate for any clock. - * - * Return: Returns status, either success or error+reason - */ -int zynqmp_pm_clock_setrate(u32 clock_id, u64 rate) -{ - return zynqmp_pm_invoke_fn(PM_CLOCK_SETRATE, NULL, 3, clock_id, lower_32_bits(rate), - upper_32_bits(rate)); -} -EXPORT_SYMBOL_GPL(zynqmp_pm_clock_setrate); - -/** - * zynqmp_pm_clock_getrate() - Get the clock rate for given id - * @clock_id: ID of the clock - * @rate: rate value in hz - * - * This function is used by master to get rate - * for any clock. - * - * Return: Returns status, either success or error+reason - */ -int zynqmp_pm_clock_getrate(u32 clock_id, u64 *rate) -{ - u32 ret_payload[PAYLOAD_ARG_CNT]; - int ret; - - ret = zynqmp_pm_invoke_fn(PM_CLOCK_GETRATE, ret_payload, 1, clock_id); - *rate = ((u64)ret_payload[2] << 32) | ret_payload[1]; - - return ret; -} -EXPORT_SYMBOL_GPL(zynqmp_pm_clock_getrate); - /** * zynqmp_pm_clock_setparent() - Set the clock parent for given id * @clock_id: ID of the clock diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 6b48294f3c92..c6a7fb1f980b 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -160,8 +160,6 @@ enum pm_api_id { PM_CLOCK_GETSTATE = 38, PM_CLOCK_SETDIVIDER = 39, PM_CLOCK_GETDIVIDER = 40, - PM_CLOCK_SETRATE = 41, - PM_CLOCK_GETRATE = 42, PM_CLOCK_SETPARENT = 43, PM_CLOCK_GETPARENT = 44, PM_FPGA_READ = 46, @@ -533,8 +531,6 @@ int zynqmp_pm_clock_disable(u32 clock_id); int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state); int zynqmp_pm_clock_setdivider(u32 clock_id, u32 divider); int zynqmp_pm_clock_getdivider(u32 clock_id, u32 *divider); -int zynqmp_pm_clock_setrate(u32 clock_id, u64 rate); -int zynqmp_pm_clock_getrate(u32 clock_id, u64 *rate); int zynqmp_pm_clock_setparent(u32 clock_id, u32 parent_id); int zynqmp_pm_clock_getparent(u32 clock_id, u32 *parent_id); int zynqmp_pm_set_pll_frac_mode(u32 clk_id, u32 mode); @@ -639,16 +635,6 @@ static inline int zynqmp_pm_clock_getdivider(u32 clock_id, u32 *divider) return -ENODEV; } -static inline int zynqmp_pm_clock_setrate(u32 clock_id, u64 rate) -{ - return -ENODEV; -} - -static inline int zynqmp_pm_clock_getrate(u32 clock_id, u64 *rate) -{ - return -ENODEV; -} - static inline int zynqmp_pm_clock_setparent(u32 clock_id, u32 parent_id) { return -ENODEV; From patchwork Thu Dec 14 14:53:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 13493163 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3BF55C4332F for ; Thu, 14 Dec 2023 14:54:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aB5/P/HR8mxT6+kcebVTjylgKOokbvPLK2gRxAMahRw=; b=YGBgqzQ80u/San 8I1c+VlSMnss0Ao3BIBluFgt4MzZynxsbe3vibufaUsjdYNk/9DNOOMcyDKYS/tuuRUiIAInL+pZ0 fIALy+cPCOOF+i4RRt2+SJYwJLdmwpmCtcILV+L+WnqU0iZW72kpJ13PchW8NiL9RBkd9gbRbjqwf KXla3B7KmAmWCFtBda74BdTYjS/+g/8SNrfDUGeztw+5VBmG4mWogUgcDPLu+uAiZZboS0FZmttkp tSIO3FksEbYx4a2IxeEskww2mT8sNKGBm11TLFYzd6KJCfcIH2IQV6ESNlDzRtwL9wLUk1M65yHZf hDQjsTKf/ooa3nxW3qQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDn6G-000b09-1Y; Thu, 14 Dec 2023 14:54:08 +0000 Received: from mail-bn8nam12on20612.outbound.protection.outlook.com ([2a01:111:f400:fe5b::612] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDn6B-000ayo-1p for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2023 14:54:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ax6IIrA5tZIKgDKM+LiWqsRx1rL6boFEHXXWh3PPQ/qXpHn0qCx+3BvwGgwCDXrOiMjxDg5M9VR4BhHvdv8f9poqegJR3XXfyleJb1JUi4ypnnvyJVPiPy1l6pP22Oon6a1pw3tSGwIgG65YZCYD+iAR5Z5dz4RZUNApF+aih53ovpcpFG3Vk67gQ6qKI6VVe3IMT7Mt9dbaFpfYJ+SJx0yoPQjb3ZZQB+3+NbmqdpA4FmsYNPrbcerqlWDC04MPt6Gm3vz0EF1XqssxpwwH/5KxpsABR3WSpmkrPuvGscicUCEMNuHtV9DX33yAOfHsJuhYOJCEnnlGhGJrbS51Vw== 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=nxANObysrkI8UdK47ibHMIjQZwCQwiruiHAAKrv+5KY=; b=JnsqsFirbK1Ze4mgtNJRSBHD+oFoMhnJIlMB0Dy3zfFJKkYtLPmXCS1CqnC+zWY/guBNDL5X+fhQ32l6/qpgWS3NeItXzbHDQrrv4gr4p4VaYvo4AsLZjC3m6K3554MVJCsvvECwVZdSZu3EbP3hKJfBP3OYj4sRWumY/tYAl/jrGTyLB3STRTf0oByhu8YPHOJphtxEpW/bD1o2ZBOA1W3oL8tJSKzH1guJ8gODjvHsLb3sUOR708Vo/sPMoAWrJzQ0wqY88PySBBFJRwgbxiK6ngWbmj60NDITworr/pwwgqGgi79aUHvI7SR1mYJS9T1RmEqYZ4jhwnbLLJU2Eg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nxANObysrkI8UdK47ibHMIjQZwCQwiruiHAAKrv+5KY=; b=j3rEjgVtJ1kirb2ivezzEIpauXNeXxobJojU9FwZ9BBsDfwClxGjdswq9EVClmitQcpJr6dlt7xMA/IUzUQiInh4Gtv7l9vJzgqo76KIFuvSENe1lwmzSz3jXnV5xbhgsflZgFfk0FNNHtUFam+BiIp75iAolFc46AU6nS0XTto= Received: from BL0PR02CA0060.namprd02.prod.outlook.com (2603:10b6:207:3d::37) by IA0PR12MB8894.namprd12.prod.outlook.com (2603:10b6:208:483::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.28; Thu, 14 Dec 2023 14:53:57 +0000 Received: from BL02EPF0001A0FD.namprd03.prod.outlook.com (2603:10b6:207:3d:cafe::fd) by BL0PR02CA0060.outlook.office365.com (2603:10b6:207:3d::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.29 via Frontend Transport; Thu, 14 Dec 2023 14:53:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL02EPF0001A0FD.mail.protection.outlook.com (10.167.242.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7091.26 via Frontend Transport; Thu, 14 Dec 2023 14:53:57 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 14 Dec 2023 08:53:55 -0600 From: Michal Simek To: , , , CC: Arnd Bergmann , Dhaval Shah , "Greg Kroah-Hartman" , Jay Buddhabhatti , Linus Walleij , "Marek Vasut" , Nava kishore Manne , Radhey Shyam Pandey , Sai Krishna Potthuri , Shubhrajyoti Datta , Subject: [PATCH 2/2] firmware: xilinx: Remove zynqmp_pm_pinctrl_get_function() Date: Thu, 14 Dec 2023 15:53:48 +0100 Message-ID: X-Mailer: git-send-email 2.36.1 In-Reply-To: <6ccbffbafd1f0f48f6574d5a3bf2db6a5603fdb0.1702565618.git.michal.simek@amd.com> References: <6ccbffbafd1f0f48f6574d5a3bf2db6a5603fdb0.1702565618.git.michal.simek@amd.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2588; i=michal.simek@amd.com; h=from:subject:message-id; bh=GL86RAjPMm4FBS16W+zUapn4oj17oA3Pc3FQcueHylw=; b=owGbwMvMwCR4yjP1tKYXjyLjabUkhtRqsR/T1BX/WS6eG/qx94DhjZ7cg0UXJUoypDs+CBxQ1 Xku1ivSEcvCIMjEICumyCJtc+XM3soZU4QvHpaDmcPKBDKEgYtTACayz4RhfkZXjHb7Erfvx36J zLq5adGDK1u/ZTPMUxFbdCcirFaxXvjEq4/LGJTtqzVSAA== X-Developer-Key: i=michal.simek@amd.com; a=openpgp; fpr=67350C9BF5CCEE9B5364356A377C7F21FE3D1F91 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A0FD:EE_|IA0PR12MB8894:EE_ X-MS-Office365-Filtering-Correlation-Id: 2e399530-9ae1-4705-29e5-08dbfcb47fc1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OKgpNSrQcMQu+benjmm0os57R9fq+hebXauBl3J9y4uXhl9wmT2jPWaWmZpY3JtQW9uTnBMjSAEJnV9xlvvUEMP3BOgIxburgfrJbV8ZaZjLKjtyddCCnEaO/wQDyTq7NHBp4GC+jr01IfdaeAbyuE2rtgsMksV4JkvXP7bMnExbq81dTFZLV0S+SHRlz/GH46/ingzrdtT3JP9pL609oLohky6r1Zlj2oGh4NbxS7ibLOKZt1OpUCLmTfqbLPk3KEiLJKL52jE2M0cUsPIkfeq42P2GiMKYfdnnvJiLI03Ey5F3mr+ZVQJKUi7rOsrBuF00ZtTLRjRfeQcy0Bypl+nENhVk7DRCp85TqL6/9rRkxzfWXgzVZKwqSqvVmP34r2O+bGaj3yvN2mUWwiaGzxy7RSDy9x61t0QEmGhDvHZxZ8CsllSgSZG1NCSs/NDljLaNYsJT1tSoEkkuv3W+D+BVAK3pTpWBpYiVsh3ppfExW6FRebBEKqHEqL+WdcTQt1dsXJiqIUkU4d9ERvSfSZwvPnBnyakmAVc1Q7tuHM6cgJWk2dPnC88WOK0loO8gd4+W4uHhpi7p5FGGkV+jkAnvCd0FoZgPSS9xoDpMbgw9mTY44Du0CJRaYaXVFnsrfNFakxvRhTmv8qO2HL8dOHEtNAg33/zpUHtVtzB5Ducc9zzsni4be3OS9Sm/4d6HX053m0BO2pIyPEc8sSI1TXwGokeyGiJ4POn8wElXiwX+Tns/sWhqwaXOnXkigrXR9aEoF8c/OtwQoTLUlWGvp523W5fYHeTWR3imev6eRAs= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(346002)(39860400002)(136003)(396003)(376002)(230922051799003)(186009)(451199024)(1800799012)(64100799003)(82310400011)(40470700004)(46966006)(36840700001)(40480700001)(44832011)(478600001)(5660300002)(6666004)(2906002)(82740400003)(356005)(2616005)(26005)(81166007)(86362001)(40460700003)(16526019)(36756003)(54906003)(70586007)(316002)(70206006)(4326008)(8676002)(8936002)(110136005)(336012)(426003)(83380400001)(41300700001)(36860700001)(47076005)(36900700001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2023 14:53:57.0266 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2e399530-9ae1-4705-29e5-08dbfcb47fc1 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A0FD.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8894 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_065403_607442_79EE8DA7 X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There is no user for this interface that's why remove it. Signed-off-by: Michal Simek Acked-by: Linus Walleij --- drivers/firmware/xilinx/zynqmp.c | 24 ------------------------ include/linux/firmware/xlnx-zynqmp.h | 7 ------- 2 files changed, 31 deletions(-) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 2ae9da268215..a55dfd9bae6b 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -1060,30 +1060,6 @@ int zynqmp_pm_pinctrl_release(const u32 pin) } EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_release); -/** - * zynqmp_pm_pinctrl_get_function - Read function id set for the given pin - * @pin: Pin number - * @id: Buffer to store function ID - * - * This function provides the function currently set for the given pin. - * - * Return: Returns status, either success or error+reason - */ -int zynqmp_pm_pinctrl_get_function(const u32 pin, u32 *id) -{ - u32 ret_payload[PAYLOAD_ARG_CNT]; - int ret; - - if (!id) - return -EINVAL; - - ret = zynqmp_pm_invoke_fn(PM_PINCTRL_GET_FUNCTION, ret_payload, 1, pin); - *id = ret_payload[1]; - - return ret; -} -EXPORT_SYMBOL_GPL(zynqmp_pm_pinctrl_get_function); - /** * zynqmp_pm_pinctrl_set_function - Set requested function for the pin * @pin: Pin number diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index c6a7fb1f980b..1478f691cc10 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -149,7 +149,6 @@ enum pm_api_id { PM_SECURE_SHA = 26, PM_PINCTRL_REQUEST = 28, PM_PINCTRL_RELEASE = 29, - PM_PINCTRL_GET_FUNCTION = 30, PM_PINCTRL_SET_FUNCTION = 31, PM_PINCTRL_CONFIG_PARAM_GET = 32, PM_PINCTRL_CONFIG_PARAM_SET = 33, @@ -567,7 +566,6 @@ int zynqmp_pm_system_shutdown(const u32 type, const u32 subtype); int zynqmp_pm_set_boot_health_status(u32 value); int zynqmp_pm_pinctrl_request(const u32 pin); int zynqmp_pm_pinctrl_release(const u32 pin); -int zynqmp_pm_pinctrl_get_function(const u32 pin, u32 *id); int zynqmp_pm_pinctrl_set_function(const u32 pin, const u32 id); int zynqmp_pm_pinctrl_get_config(const u32 pin, const u32 param, u32 *value); @@ -804,11 +802,6 @@ static inline int zynqmp_pm_pinctrl_release(const u32 pin) return -ENODEV; } -static inline int zynqmp_pm_pinctrl_get_function(const u32 pin, u32 *id) -{ - return -ENODEV; -} - static inline int zynqmp_pm_is_function_supported(const u32 api_id, const u32 id) { return -ENODEV;