From patchwork Fri Jun 26 18:46:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 198425 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=-10.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 13E2DC433E2 for ; Fri, 26 Jun 2020 18:46:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E984A206E9 for ; Fri, 26 Jun 2020 18:46:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="FHUXEJLK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725816AbgFZSqg (ORCPT ); Fri, 26 Jun 2020 14:46:36 -0400 Received: from mail-eopbgr700068.outbound.protection.outlook.com ([40.107.70.68]:50400 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725847AbgFZSqf (ORCPT ); Fri, 26 Jun 2020 14:46:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eDpXSzvOaeFeEQxCyKN04DL2pSMCBzdbZ4kn0kSX4gyVN8EwoCOBmM96eUNr3BrLL5ZMDLnGFYn1b0ED4E22zxnlXru519tYtjoj20M71ylenc8xUGpiewDeGmxmgRs37zzMZzFfCtKo1C0SRUhMFIs1FA1AFVz9Ow3kEWmkPe5RWc28graGDGFw/2ggZwySbfS5fCeZoyRIeIC6ZPbTnfFbAKR5wKTxPorPhT8Nl/js5MTsv5ptzj6nCvBIjXinOKF8ZzupgZPU7LKT03b3suHZKKcFdGcTVhZdhg1hEEeUNblh7BpZJe9F7tI+yOI+aqs8DgDbKvR65I+lzOddSg== 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=QAgPAMvG1k9Jse38eh3gYsIT9SQTY5QRjDjio5rLxtw=; b=NvOjMli/RAZZS4R30n9LZyCIKU7EAidRPrJXg3tpS5uDQiUuXR8MwfU3av2TNWYgjA4t68A/MRIpOhAQppUXtuiZT26PAsk7KFnKKgbkka4M6NF6opy62kD8T6UbYnjWvbkRiy8lZIosJLHBRUn6JP/wiwojf6eJQTW1fTRTKWCf3+QGmO+aRYlXaXMv6ZwwoKzPPT8EaJCIpY1fdo1P2VBwunBHvcq7PwL9b/Ienq8STc5ckp07FD1A8xn9TXzd+bcUpW3cbo5mPbm1PhuLMTVynmUqNbYD6XAVu93AuJraFrHL9cpedQBTk/BOlC3x01XxPcOJ4AQlEAAWJlFvkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass 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=QAgPAMvG1k9Jse38eh3gYsIT9SQTY5QRjDjio5rLxtw=; b=FHUXEJLKYCeug9oHXPiEKzQGyN41ehKGUGRnvWSuk8YyIoOuHIRIynFzCPqbV5zcrUL5Q7428ttyC42tRoMcLec4qygrXgDmVOeqwNieu4CFv2JGQJxfmpef9/zQ8ySQKZ9rRkYq/y5CK0GK/6a2nJzY+9L9+escSqptOfXrtb0= Received: from CY1PR07CA0021.namprd07.prod.outlook.com (2a01:111:e400:c60a::31) by DM5PR02MB2348.namprd02.prod.outlook.com (2603:10b6:3:50::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.23; Fri, 26 Jun 2020 18:46:31 +0000 Received: from CY1NAM02FT009.eop-nam02.prod.protection.outlook.com (2a01:111:e400:c60a:cafe::19) by CY1PR07CA0021.outlook.office365.com (2a01:111:e400:c60a::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20 via Frontend Transport; Fri, 26 Jun 2020 18:46:31 +0000 X-MS-Exchange-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 CY1NAM02FT009.mail.protection.outlook.com (10.152.75.12) with Microsoft SMTP Server id 15.20.3131.20 via Frontend Transport; Fri, 26 Jun 2020 18:46:31 +0000 Received: from [149.199.38.66] (port=35656 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1jotLe-0006Ef-Dy; Fri, 26 Jun 2020 11:45:14 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1jotMt-0000uL-Cy; Fri, 26 Jun 2020 11:46:31 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 05QIkJuv017952; Fri, 26 Jun 2020 11:46:19 -0700 Received: from [10.140.6.59] (helo=xhdshubhraj40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1jotMh-0000q1-7d; Fri, 26 Jun 2020 11:46:19 -0700 From: Shubhrajyoti Datta To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, shubhrajyoti.datta@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, michals@xilinx.com, Shubhrajyoti Datta Subject: [PATCH v5 3/8] clk: clock-wizard: Fix kernel-doc warning Date: Sat, 27 Jun 2020 00:16:06 +0530 Message-Id: <1593197171-21747-2-git-send-email-shubhrajyoti.datta@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1593197171-21747-1-git-send-email-shubhrajyoti.datta@xilinx.com> References: <1593197171-21747-1-git-send-email-shubhrajyoti.datta@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; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapsmtpgw01; PTR:unknown-60-83.xilinx.com; CAT:NONE; SFTY:; SFS:(376002)(346002)(396003)(136003)(39860400002)(46966005)(107886003)(8676002)(6666004)(9786002)(6916009)(8936002)(186003)(5660300002)(26005)(44832011)(336012)(426003)(4744005)(2616005)(2906002)(36756003)(70586007)(70206006)(47076004)(7696005)(81166007)(4326008)(356005)(478600001)(83380400001)(82310400002)(82740400003)(316002); DIR:OUT; SFP:1101; X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 42916357-7ed8-4fb1-fe9a-08d81a013e68 X-MS-TrafficTypeDiagnostic: DM5PR02MB2348: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:1751; X-Forefront-PRVS: 0446F0FCE1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7b9Tr8XpT6NQzXNyVrSXZW7MYmeiVOEknWqu62aQ9CwSlQTSYFncRikbL+E5gq2c0spW7JzcYsv5wxKPqWsn/9/YUGXoHghslYen4u3QKHPBG+EwMQRJJCuztNMi81IoRbT6l4d0P1qbWlLM3YCi46zWpgAnOJLEr8tszYIaK8hViAdVEb58nIkxqlRSVcDyHNb1Iiuc/knY4rab2OGRIyAdGSMcThFps6j2fMlQxL55sXaFId8ZC3ZKI+ux2gttmh5FP7wUkZK6z3L2f5XzaKYoo56rjqtVZjJrRhHRSizux4mZgQ2iWw/8evYGS2iKmHAcm3xfTGsGUc+jSx5Cxf6gCrD27aU4xM98egRE0gL6fsmpYrORSNwlK7/tkUuQdu4c9yb3pvX3QA03CBMAPQ== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2020 18:46:31.7173 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42916357-7ed8-4fb1-fe9a-08d81a013e68 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-AuthSource: CY1NAM02FT009.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2348 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Update description for the clocking wizard structure Signed-off-by: Shubhrajyoti Datta --- drivers/clk/clk-xlnx-clock-wizard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-xlnx-clock-wizard.c b/drivers/clk/clk-xlnx-clock-wizard.c index b31524a..d6577c8 100644 --- a/drivers/clk/clk-xlnx-clock-wizard.c +++ b/drivers/clk/clk-xlnx-clock-wizard.c @@ -40,7 +40,8 @@ enum clk_wzrd_int_clks { }; /** - * struct clk_wzrd: + * struct clk_wzrd - Clock wizard private data structure + * * @clk_data: Clock data * @nb: Notifier block * @base: Memory base From patchwork Fri Jun 26 18:46:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 198424 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=-10.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 49AF1C433E1 for ; Fri, 26 Jun 2020 18:46:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 293BF206E9 for ; Fri, 26 Jun 2020 18:46:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="kRCERXpk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725928AbgFZSqp (ORCPT ); Fri, 26 Jun 2020 14:46:45 -0400 Received: from mail-mw2nam12on2055.outbound.protection.outlook.com ([40.107.244.55]:6170 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725275AbgFZSqf (ORCPT ); Fri, 26 Jun 2020 14:46:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a309+VkQie/fTsmI7+ieaEmRW0qCkFzZi4BL9QKNVxfW+v5sSUss3BvunWeJL2yYWCmQUuIuuRq1LRgboK+yCmnKIWN1kzn0TdILSYvzZ+BUSPUwaX5AG2O3FsEwGA95eRGU1Maut9B24zWz3hQ+nsXc3Xdq/kfVq6dJlRpxYNm9ilREZYlwMfVU1c32U4iLc4wGO10Gd200JSt2SRHNd0+UDqqZrcFxQvu9cBVsksWUwUwZ0+4L9ZfWpKVliNZ0HSQ0o0kCrnjJeonc+8OHBipATG/0wChRwGhDEWEz8K6nWeIBwj5ofFjWui251K2vypsm3t5PIfp+KQq3Gd3emg== 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=ZvCDVAy2U8RIhh/TazJW5MrsoBihV+Z+btD4ER28x6w=; b=LQx37/JezGi7ht2au84cDOcuEm45azK5AmyCjsAluhgLi1wow9sJcheobTk0jA8KleOeFf70N3CtcbuA7xkLkCaREkQfTTKZRU5G+ycQwjMzs0gQRNJkIdkRfcE57drnqsIzd2kAjQCqyrbaFWTlOXa0OSAb8QqHVacTQRCv1JMpfEbGtynI5fLkq8qcdzWhmKcj0gXIbLIydMLmVaX0dKDevBqf3nYBYlMRWRlJBcSEV2RW2ewoNeMdnmABkGnSrYAGLN4Axrctn3LyhhmQSfDMXfw7lZ0TLi6jXI3eVsrCGYUiKexSYQbIJH3araQbZEB2OYwjnhDDsA2o5tfIQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass 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=ZvCDVAy2U8RIhh/TazJW5MrsoBihV+Z+btD4ER28x6w=; b=kRCERXpkonxASyYbovGGtcXcCogLi7vLKOL+C2vcUfMdN9FLrlKNcf487Z0vjDeAGH5F1Lx6UKEyLxHfjSJKmG8fm+akoC3J+yP/4mUPFu8N3VYzvuLDhgxxpNjMjxsbEqzCrrfI9ZGTH5dR8Ku25spZQDmgTMuLzwI7cAkd2TY= Received: from MN2PR16CA0005.namprd16.prod.outlook.com (2603:10b6:208:134::18) by DM6PR02MB7001.namprd02.prod.outlook.com (2603:10b6:5:256::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.23; Fri, 26 Jun 2020 18:46:32 +0000 Received: from BL2NAM02FT052.eop-nam02.prod.protection.outlook.com (2603:10b6:208:134:cafe::f2) by MN2PR16CA0005.outlook.office365.com (2603:10b6:208:134::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20 via Frontend Transport; Fri, 26 Jun 2020 18:46:32 +0000 X-MS-Exchange-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 BL2NAM02FT052.mail.protection.outlook.com (10.152.77.0) with Microsoft SMTP Server id 15.20.3131.20 via Frontend Transport; Fri, 26 Jun 2020 18:46:31 +0000 Received: from [149.199.38.66] (port=35660 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1jotLe-0006Ek-Fe; Fri, 26 Jun 2020 11:45:14 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1jotMt-0000uL-EV; Fri, 26 Jun 2020 11:46:31 -0700 Received: from xsj-pvapsmtp01 (xsj-mail.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 05QIkSae018077; Fri, 26 Jun 2020 11:46:29 -0700 Received: from [10.140.6.59] (helo=xhdshubhraj40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1jotMq-0000q1-Ca; Fri, 26 Jun 2020 11:46:28 -0700 From: Shubhrajyoti Datta To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, shubhrajyoti.datta@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, michals@xilinx.com, Shubhrajyoti Datta Subject: [PATCH v5 6/8] clk: clock-wizard: Remove the hardcoding of the clock outputs Date: Sat, 27 Jun 2020 00:16:09 +0530 Message-Id: <1593197171-21747-5-git-send-email-shubhrajyoti.datta@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1593197171-21747-1-git-send-email-shubhrajyoti.datta@xilinx.com> References: <1593197171-21747-1-git-send-email-shubhrajyoti.datta@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; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapsmtpgw01; PTR:unknown-60-83.xilinx.com; CAT:NONE; SFTY:; SFS:(376002)(396003)(136003)(346002)(39860400002)(46966005)(5660300002)(426003)(336012)(2616005)(70206006)(36756003)(356005)(6916009)(81166007)(70586007)(107886003)(186003)(26005)(4326008)(83380400001)(82310400002)(7696005)(47076004)(82740400003)(9786002)(8676002)(316002)(478600001)(2906002)(44832011)(6666004)(8936002); DIR:OUT; SFP:1101; X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 987d849a-47d3-43fc-1c4f-08d81a013e7f X-MS-TrafficTypeDiagnostic: DM6PR02MB7001: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-Forefront-PRVS: 0446F0FCE1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DJJKdvrhSl6AW9mAfdzQN3OjAV18cRWnU/51HBcfMS103DltckzbEU1OTlHt1lLPySulj250TGHmvl4aLGYDSzwtVIiDLFfJ+3urxM07wlUqxvLh+5ZgjJc5Cx3QoIMhKe5zIjgK+23ofhzzteXE0tk4vrsl0Zz29laI3l3NygJpwcJAdwjJjj0KaUJapPjuQJd7l4065tRaTh0ovWLhZD88Ph8sSlgHRy58m0iqrH9AOfAqyc5q7XbLFEkRrJgtBXeZHhgNWRtnSNInNRlNfX9yJONlentSuNa21F//yukGj4/10wRbS0SPKDV2RiBDhd3l96tFQuqX/Uk7ES8T/2VJcuCZH58zCglJ6IlNHaLp3dpsDWwgnhQFbWTG1JTtJHXRy0w4GEiWMkFhCPwUfQ== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2020 18:46:31.8627 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 987d849a-47d3-43fc-1c4f-08d81a013e7f 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-AuthSource: BL2NAM02FT052.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB7001 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The number of output clocks are configurable in the hardware. Currently the driver registers the maximum number of outputs. Fix the same by registering only the outputs that are there. Signed-off-by: Shubhrajyoti Datta --- v4: Assign output in this patch drivers/clk/clk-xlnx-clock-wizard.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-xlnx-clock-wizard.c b/drivers/clk/clk-xlnx-clock-wizard.c index 1cf381c..0c57ca0 100644 --- a/drivers/clk/clk-xlnx-clock-wizard.c +++ b/drivers/clk/clk-xlnx-clock-wizard.c @@ -495,6 +495,7 @@ static int clk_wzrd_probe(struct platform_device *pdev) const char *clk_name; struct clk_wzrd *clk_wzrd; struct resource *mem; + int outputs; struct device_node *np = pdev->dev.of_node; clk_wzrd = devm_kzalloc(&pdev->dev, sizeof(*clk_wzrd), GFP_KERNEL); @@ -565,6 +566,7 @@ static int clk_wzrd_probe(struct platform_device *pdev) goto err_disable_clk; } + outputs = of_property_count_strings(np, "clock-output-names"); /* register div */ reg = (readl(clk_wzrd->base + WZRD_CLK_CFG_REG(0)) & WZRD_DIVCLK_DIVIDE_MASK) >> WZRD_DIVCLK_DIVIDE_SHIFT; @@ -586,7 +588,7 @@ static int clk_wzrd_probe(struct platform_device *pdev) } /* register div per output */ - for (i = WZRD_NUM_OUTPUTS - 1; i >= 0 ; i--) { + for (i = outputs - 1; i >= 0 ; i--) { const char *clkout_name; if (of_property_read_string_index(np, "clock-output-names", i, @@ -617,7 +619,7 @@ static int clk_wzrd_probe(struct platform_device *pdev) if (IS_ERR(clk_wzrd->clkout[i])) { int j; - for (j = i + 1; j < WZRD_NUM_OUTPUTS; j++) + for (j = i + 1; j < outputs; j++) clk_unregister(clk_wzrd->clkout[j]); dev_err(&pdev->dev, "unable to register divider clock\n"); From patchwork Fri Jun 26 18:46:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 198423 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=-10.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 AA468C433E2 for ; Fri, 26 Jun 2020 18:46:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8FC99206E9 for ; Fri, 26 Jun 2020 18:46:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="SxcZlyjJ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725936AbgFZSqr (ORCPT ); Fri, 26 Jun 2020 14:46:47 -0400 Received: from mail-mw2nam10on2055.outbound.protection.outlook.com ([40.107.94.55]:20787 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725768AbgFZSqq (ORCPT ); Fri, 26 Jun 2020 14:46:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fzAWrRcwykWB48nl2hpxh/8e7ajU6YWWKY5OTLuYMX6Vz0YyiHiM9w6341Vp4QoqJH7lrcB2n/omvwhHS8CkWScK138FrBh4ay8svsj5SQKKhJ9CbyE5DC/iY2OYJdUo9wWJzlvkHH58QJpiFF4yzE2YMpMii0BnS5RJbBwLA5DhwEN3Q2BX38MVpOGneFHM5TqJYRj+BQbYJmibRjEaUuN1ZOlz0sut7BQih050Owf922qK0VkKekoAT3ZLzTP8MSWb2dCROv4v9ZIiQDV85DKSWxKMcvNtON2J1mfLi6OS+Im4f41lEFu5p3GYKXAb+rBfVHPlZn1d/zbCebts8g== 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=JZc5qAaVTWR748KjKTqJVHlSntreeCrhofKfdKRvJKs=; b=K2wOs00AnBal0vcg1XVpqlJvu4E/0IdNeDS+n8wgkRaCh2xuZNH8l3ForlnqaUPaIjGrEcWn/w9EWZCJlgt/KzuZU2nz3CdeYfMN3K2Dm7p45hpAQEVb6+g21XvTDgK6CYj9sLA3YYj0dmNGtc58bJQ/I0LbNMbvOQVTsP0LZy9qH55TOWhmfu0gtqMq7Uf1jJxM5GwzDx5MS6e15MxaryCXJ6ULJZvIUatl3trQnO1LbF8Gv4XZ0o28EsojBl/r90OdYilp7BO83Z1zBRYQtjDovXWJxmm+5McewV8zGwmFQ+Xpp3ObQekN3iwtr2D9no3hVom7ydla0Skgtdq0yQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass 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=JZc5qAaVTWR748KjKTqJVHlSntreeCrhofKfdKRvJKs=; b=SxcZlyjJUURoOmhxTxHTLr0tC1i4Y+MsEb7D84FomLc0c2nJktjJKTBF7CvteReHKSOi5NKpLqV02MIJMK84qgfUSqOerICEfGvlB7GhwWNfB00ff1DTJIRr/fbASpf8waj1721ZDzqqgUGNKqWNbdRRBX8fPj4g14iyDEeaxCo= Received: from DM5PR06CA0037.namprd06.prod.outlook.com (2603:10b6:3:5d::23) by MN2PR02MB6877.namprd02.prod.outlook.com (2603:10b6:208:204::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.23; Fri, 26 Jun 2020 18:46:42 +0000 Received: from CY1NAM02FT004.eop-nam02.prod.protection.outlook.com (2603:10b6:3:5d:cafe::31) by DM5PR06CA0037.outlook.office365.com (2603:10b6:3:5d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21 via Frontend Transport; Fri, 26 Jun 2020 18:46:42 +0000 X-MS-Exchange-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 CY1NAM02FT004.mail.protection.outlook.com (10.152.74.112) with Microsoft SMTP Server id 15.20.3131.20 via Frontend Transport; Fri, 26 Jun 2020 18:46:42 +0000 Received: from [149.199.38.66] (port=35802 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1jotLo-0006GJ-Ot; Fri, 26 Jun 2020 11:45:24 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1jotN3-0000vz-O6; Fri, 26 Jun 2020 11:46:41 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id 05QIkVwn018117; Fri, 26 Jun 2020 11:46:32 -0700 Received: from [10.140.6.59] (helo=xhdshubhraj40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1jotMt-0000q1-Lx; Fri, 26 Jun 2020 11:46:31 -0700 From: Shubhrajyoti Datta To: linux-clk@vger.kernel.org Cc: sboyd@kernel.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, shubhrajyoti.datta@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, michals@xilinx.com, Shubhrajyoti Datta Subject: [PATCH v5 7/8] clk: clock-wizard: Update the fixed factor divisors Date: Sat, 27 Jun 2020 00:16:10 +0530 Message-Id: <1593197171-21747-6-git-send-email-shubhrajyoti.datta@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1593197171-21747-1-git-send-email-shubhrajyoti.datta@xilinx.com> References: <1593197171-21747-1-git-send-email-shubhrajyoti.datta@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; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapsmtpgw01; PTR:unknown-60-83.xilinx.com; CAT:NONE; SFTY:; SFS:(396003)(346002)(39860400002)(376002)(136003)(46966005)(83380400001)(316002)(4326008)(6666004)(70586007)(336012)(70206006)(2616005)(426003)(186003)(7696005)(44832011)(107886003)(8676002)(15650500001)(36756003)(2906002)(6916009)(26005)(9786002)(356005)(8936002)(5660300002)(82740400003)(47076004)(81166007)(478600001)(82310400002); DIR:OUT; SFP:1101; X-MS-PublicTrafficType: Email MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 54a1c47f-b4f8-4f0e-b6bd-08d81a014492 X-MS-TrafficTypeDiagnostic: MN2PR02MB6877: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:989; X-Forefront-PRVS: 0446F0FCE1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3DuLCgB4Fuwl/lQkGvRKDjAxD84SO7P7ovZe+TdRaaNmX6Bkk9pb2fZqJszerf5XOy6CM5ITgESbkJLvJreX8cog26hskBzHP793/V3/BefGSSvVBAZKXC0q6K+oPuZU5rT4AVWJRIcbQpSNfSSQUcyc7V59P52wsgOQPouECFAbGG1MM/NuNGMqXvLQgepNupB3PFn/s6Q6pCvTGrgDmiE0SFVH4Es0wxnsK1b/eN2aINUICTDrHxXiLUTUTugPP4Mz9MtAWB0ZY+rLhfz4NRsUoBDvNFRj4bxKLwhXrxWAAl3P5IaPhfBMlRjZz/4cknjymznwHc6KtcUsMZF6vQuX3+JcMgKH86YcjOiEyBIOtV80C5XlggcZa4y7PN3/wGNaDW0CXhqIPhG8s0m0ow== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2020 18:46:42.0570 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54a1c47f-b4f8-4f0e-b6bd-08d81a014492 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-AuthSource: CY1NAM02FT004.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR02MB6877 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Update the fixed factor clock registration to register the divisors. Signed-off-by: Shubhrajyoti Datta --- drivers/clk/clk-xlnx-clock-wizard.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk-xlnx-clock-wizard.c b/drivers/clk/clk-xlnx-clock-wizard.c index 0c57ca0..5f53bfd0 100644 --- a/drivers/clk/clk-xlnx-clock-wizard.c +++ b/drivers/clk/clk-xlnx-clock-wizard.c @@ -493,9 +493,11 @@ static int clk_wzrd_probe(struct platform_device *pdev) u32 reg, reg_f, mult; unsigned long rate; const char *clk_name; + void __iomem *ctrl_reg; struct clk_wzrd *clk_wzrd; struct resource *mem; int outputs; + unsigned long flags = 0; struct device_node *np = pdev->dev.of_node; clk_wzrd = devm_kzalloc(&pdev->dev, sizeof(*clk_wzrd), GFP_KERNEL); @@ -567,16 +569,17 @@ static int clk_wzrd_probe(struct platform_device *pdev) } outputs = of_property_count_strings(np, "clock-output-names"); - /* register div */ - reg = (readl(clk_wzrd->base + WZRD_CLK_CFG_REG(0)) & - WZRD_DIVCLK_DIVIDE_MASK) >> WZRD_DIVCLK_DIVIDE_SHIFT; + if (outputs == 1) + flags = CLK_SET_RATE_PARENT; clk_name = kasprintf(GFP_KERNEL, "%s_mul_div", dev_name(&pdev->dev)); if (!clk_name) { ret = -ENOMEM; goto err_rm_int_clk; } - clk_wzrd->clks_internal[wzrd_clk_mul_div] = clk_register_fixed_factor + ctrl_reg = clk_wzrd->base + WZRD_CLK_CFG_REG(0); + /* register div */ + clk_wzrd->clks_internal[wzrd_clk_mul_div] = clk_register_divider (&pdev->dev, clk_name, __clk_get_name(clk_wzrd->clks_internal[wzrd_clk_mul]), flags, ctrl_reg, 0, 8, CLK_DIVIDER_ONE_BASED | @@ -601,7 +604,7 @@ static int clk_wzrd_probe(struct platform_device *pdev) if (!i) clk_wzrd->clkout[i] = clk_wzrd_register_divf (&pdev->dev, clkout_name, - clk_name, 0, + clk_name, flags, clk_wzrd->base, (WZRD_CLK_CFG_REG(2) + i * 12), WZRD_CLKOUT_DIVIDE_SHIFT, WZRD_CLKOUT_DIVIDE_WIDTH,