Message ID | 1527713725-1086-8-git-send-email-jollys@xilinx.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show
Return-Path: <linux-clk-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 36D2A60327 for <patchwork-linux-clk@patchwork.kernel.org>; Wed, 30 May 2018 20:56:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FF212917D for <patchwork-linux-clk@patchwork.kernel.org>; Wed, 30 May 2018 20:56:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10EEA29578; Wed, 30 May 2018 20:56:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6EAF2917D for <patchwork-linux-clk@patchwork.kernel.org>; Wed, 30 May 2018 20:56:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932334AbeE3U4K (ORCPT <rfc822;patchwork-linux-clk@patchwork.kernel.org>); Wed, 30 May 2018 16:56:10 -0400 Received: from mail-by2nam03on0041.outbound.protection.outlook.com ([104.47.42.41]:53056 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932238AbeE3U4I (ORCPT <rfc822;linux-clk@vger.kernel.org>); Wed, 30 May 2018 16:56:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tzXjjxb+XxO3qo0I5igjwilZ3KxLCYpht6qunDjCKVs=; b=Hyb2bS66ol9JzSpjwzVxvIrx1IM6mDc/h1Nq0n1AFEaPZOdhyrEf35KER0LVjFTe6BGwq4zurkUpjbP8o9kBMcK/i98eiXYH5VzyrPgGCZ+68W+7l86Xynlb2VbwaYumYL7csUs6/xzBNenAvZUPhSNcni67dZ7Du9+8c7/yc4I= Received: from CY4PR02CA0038.namprd02.prod.outlook.com (2603:10b6:903:117::24) by BY2PR0201MB1493.namprd02.prod.outlook.com (2a01:111:e400:5327::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.11; Wed, 30 May 2018 20:56:05 +0000 Received: from SN1NAM02FT062.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::200) by CY4PR02CA0038.outlook.office365.com (2603:10b6:903:117::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.820.11 via Frontend Transport; Wed, 30 May 2018 20:56:05 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by SN1NAM02FT062.mail.protection.outlook.com (10.152.72.208) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.820.8 via Frontend Transport; Wed, 30 May 2018 20:56:04 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <jolly.shah@xilinx.com>) id 1fO88a-0004c5-35; Wed, 30 May 2018 13:56:04 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <jolly.shah@xilinx.com>) id 1fO88V-00088S-0Z; Wed, 30 May 2018 13:55:59 -0700 Received: from xsj-pvapsmtp01 (smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w4UKtrYq028654; Wed, 30 May 2018 13:55:53 -0700 Received: from [172.19.2.91] (helo=xsjjollys50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <jollys@xilinx.com>) id 1fO88P-00086i-9O; Wed, 30 May 2018 13:55:53 -0700 From: Jolly Shah <jolly.shah@xilinx.com> To: <ard.biesheuvel@linaro.org>, <mingo@kernel.org>, <gregkh@linuxfoundation.org>, <matt@codeblueprint.co.uk>, <sudeep.holla@arm.com>, <hkallweit1@gmail.com>, <keescook@chromium.org>, <dmitry.torokhov@gmail.com>, <mturquette@baylibre.com>, <sboyd@codeaurora.org>, <michal.simek@xilinx.com>, <robh+dt@kernel.org>, <mark.rutland@arm.com>, <linux-clk@vger.kernel.org> CC: <rajanv@xilinx.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, Jolly Shah <jollys@xilinx.com> Subject: [PATCH v7 07/10] firmware: xilinx: Add debugfs for IOCTL API Date: Wed, 30 May 2018 13:55:22 -0700 Message-ID: <1527713725-1086-8-git-send-email-jollys@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527713725-1086-1-git-send-email-jollys@xilinx.com> References: <1527713725-1086-1-git-send-email-jollys@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(346002)(376002)(2980300002)(438002)(199004)(189003)(4326008)(2906002)(107886003)(54906003)(39060400002)(110136005)(186003)(63266004)(47776003)(72206003)(478600001)(106002)(36386004)(106466001)(9786002)(50466002)(2201001)(48376002)(356003)(59450400001)(316002)(16586007)(26005)(77096007)(76176011)(51416003)(305945005)(7696005)(11346002)(8676002)(126002)(446003)(336012)(36756003)(6666003)(2616005)(81166006)(8936002)(81156014)(5660300001)(7416002)(44832011)(50226002)(486006)(426003)(476003)(921003)(107986001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB1493; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-83.xilinx.com; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM02FT062; 1:Vb2CjUaLmYylLXZqnAC7t6HIY1XHBEqOM3PHT9qwNFfewT92Obuu4uIh9WawNsZez9T1jt6l9bjk6XXlgbcpUApLwS7vdnSVUQp+FfXLwjXbm9/wpXgE0JiIfDcrU2Zg MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BY2PR0201MB1493; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1493; 3:kLQpmxJ8m6YxhbyQxSEovplAdOLWhojNhY6NEBE2+u+rG+4dKLSV2WmxxOAGwVT7GGQRd31ewG08A89y5gk3viPjxvycLkAkn7fFAq2iXixUfG2duqvgXZanrBZJZl0kOr7PKVyRt7DJGCcgyRkQ95Fha7NzTAvrOl9u83WliVuLb2o/HRubLTNEJGPWAVKzhXxByMeLyVXEDyivT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zWvbI91FWWaGOdFrc64j33GAwdHXZ+wLXa4yNicKms74uF5QtaYXutaXowhGbgWyHJzm06h55V3zJ7iPUqMjF+GfeD10Uxq/SHj55G47pD5GowwJT00p0yUdK8BiaYERdTSPCkdLBVC77M3oJAZ2aaUPyNL7UHo/B6AQXX4QQ7uEUPWjCCf2v82mxt7/nuddKmTsX1p6XZcSwxFWFLPzyo25qNSNHqaDVFG6D/pOZfbZLReiEGtBnvjMAd X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <BY2PR0201MB149399EEDE724CD4F8B45C3EB86C0@BY2PR0201MB1493.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93004095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BY2PR0201MB1493; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB1493; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1493; 4:Wo6aZLsjuaF92htBE5CkG8iP1TIgeSxEn1eQrUtaQ/Tfi1gyVYuRyfw01c/e1R5CeuZthTr9y7mNmyPTNW2etNDUId7D6p6fYhnzsDjDyGDeBeDy9lQOpTbFSzJmLZZAUfCLRgEYh7PCWi23qn4FdS9mK72X8HNfinGnarmU+Sy7SjnoZeP+7hoIGtGO0Mvjmq7r4jCb4txZQNYm1uMrfSj2HdPQLRr3UhbQYqEiBIll1TsrxeTWrefWGEsVYaoG84eRW1ULI3iUaepJW2gchtFPNXsaMbqh04RrpmCureZhe9K7dmdWVyarK2Y2YImF X-Forefront-PRVS: 0688BF9B46 X-Microsoft-Exchange-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r8Dd0C62vvL3t1b+uCL3vkSoI+ECCgsWZO2POzeSBQccmrWsrbv/7i2OUCSn9nqfqmyWT44gvBvqIpsiit/qDCqDNqVxwTf6Ji4nFX1nWBTfkqsKUFNMlfVOXqc3QRew2r0NuVxNhlZK4Zva6LvUXzkz5K22qMiKEXeFj08b03s9EldLb5MNL8Q1Ceetm27lX6NTcLtugVCVmcb/+Wbi6NxzdPTyGr1RMTOrSNOaOtVvBdmpwNtJA==; 5:GrD/WoU0dBIQXSZTx7ClLk/WkKwuXggJF5JwTejQBCvGQOzFr6fVO5ItYxPn7tIcjLu3Hf0IJbVggnqcGaSRTjywugkzGu/WhqwxZKf/ur9At13Ub/WnYN3caS7vUxNFgNbwyqTZMHcbhJj30gB7hrQEf/Orp6V8aQzBFWWeQMg=; 24:ZbtL4ttObHlXksPfTttoGsEYvm1mzvoLQl2/5vdWLEW52dp6PoU+2n9LwaSDL/EpRIuT0AXVmqe5uKLAtAIsSXxZRNmj5GuBn2kAeJUP6R0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1493; 7:abxqjRySaW0myKGlgOHd32mFkdiTgTGd9xmz1iXFEjWC5odqQzuzRrS4IGpv4WScDej+mQl50vp7iYKS/dyWoZiBWxLFUXrQr7gehovCPGlxf2WkQeACc8zVyoQGmVPVRFVb4HveKvTn5q78ijFcK2y/TVGfNDwo8i6K9kkCX5NTPcX5eCU0hXyM90CuMRzh57QhwBB0e/k6Y/XIgNOiDvaLDAnRph40HEr/aM6c9iKOQPuKXiKuMIhfbSI/LdnI X-MS-Office365-Filtering-Correlation-Id: d7a5fe4c-15d9-4307-b40b-08d5c66fc29a X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2018 20:56:04.5756 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d7a5fe4c-15d9-4307-b40b-08d5c66fc29a X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1493 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: <linux-clk.vger.kernel.org> X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/firmware/xilinx/zynqmp-debug.c b/drivers/firmware/xilinx/zynqmp-debug.c index 4800366..148dbff 100644 --- a/drivers/firmware/xilinx/zynqmp-debug.c +++ b/drivers/firmware/xilinx/zynqmp-debug.c @@ -32,6 +32,7 @@ static char debugfs_buf[PAGE_SIZE]; #define PM_API(id) {id, #id, strlen(#id)} static struct pm_api_info pm_api_list[] = { PM_API(PM_GET_API_VERSION), + PM_API(PM_IOCTL), }; /** @@ -95,6 +96,15 @@ static int process_api_request(u32 pm_id, u64 *pm_api_arg, u32 *pm_api_ret) sprintf(debugfs_buf, "PM-API Version = %d.%d\n", pm_api_version >> 16, pm_api_version & 0xffff); break; + case PM_IOCTL: + ret = eemi_ops->ioctl(pm_api_arg[0], pm_api_arg[1], + pm_api_arg[2], pm_api_arg[3], + &pm_api_ret[0]); + if (!ret && (pm_api_arg[1] == IOCTL_GET_PLL_FRAC_MODE || + pm_api_arg[1] == IOCTL_GET_PLL_FRAC_DATA)) + sprintf(debugfs_buf, "IOCTL return value: %u\n", + pm_api_ret[1]); + break; default: sprintf(debugfs_buf, "Unsupported PM-API request\n"); ret = -EINVAL;