[{"id":3669580,"web_url":"http://patchwork.ozlabs.org/comment/3669580/","msgid":"<acT96Qh85krc6Hr_@orome>","list_archive_url":null,"date":"2026-03-26T09:35:52","subject":"Re: [PATCH v2 2/7] pwm: tegra: Avoid hard-coded max clock frequency","submitter":{"id":92481,"url":"http://patchwork.ozlabs.org/api/people/92481/","name":"Thierry Reding","email":"thierry.reding@kernel.org"},"content":"On Wed, Mar 25, 2026 at 07:17:00PM +0900, Mikko Perttunen wrote:\n> From: Yi-Wei Wang <yiweiw@nvidia.com>\n> \n> The clock driving the Tegra PWM IP can be sourced from different parent\n> clocks. Hence, let dev_pm_opp_set_rate() set the max clock rate based\n> upon the current parent clock that can be specified via device-tree.\n> \n> After this, the Tegra194 SoC data becomes redundant, so get rid of it.\n> \n> Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>\n> Co-developed-by: Mikko Perttunen <mperttunen@nvidia.com>\n> Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>\n> ---\n>  drivers/pwm/pwm-tegra.c | 16 +++-------------\n>  1 file changed, 3 insertions(+), 13 deletions(-)\n\nReviewed-by: Thierry Reding <treding@nvidia.com>","headers":{"Return-Path":"\n <linux-pwm+bounces-8377-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pwm@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=oH8Um9n/;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-pwm+bounces-8377-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"oH8Um9n/\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhJmp3XZGz1yGL\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 20:45:46 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id C140230254DB\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 09:35:57 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 24F7F33D512;\n\tThu, 26 Mar 2026 09:35:56 +0000 (UTC)","from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 001E42D948D;\n\tThu, 26 Mar 2026 09:35:55 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 12869C116C6;\n\tThu, 26 Mar 2026 09:35:54 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774517756; cv=none;\n b=PxZwv4Q+4ZM2P06Jlb3kjtYXh/XRaMv1ffkLOBn0v0eJRvhKKJbj7QMj+8WqjbW8Ni/m4RZ8gwBJ4AZPD/akeEb/OIqlsiFlxgKDX3BUi9BCy09a0pvvHMLiJxi6NGLGrZC6Iw0QaXaCOCGUKYlG8Q7pv5LiIsRGLx+/cFtP9zA=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774517756; c=relaxed/simple;\n\tbh=Ysu//SzXdYM6Ja+X6GEXyxKMAawC5e8zz4sEbazP0d4=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=VeW7XaO9XrzQZ9BMMB/X94RcH7Yw+NAxp+rn7GmBfOxgkeCJ1ovQFaqvnpKcKJR6RZ16ZYzDydxa6h+3j6K0jw2fujdFwAFTJToA0JPrNalOlYgfzCNq+PsKQe+8o/K7x5U+Kf5FrCfmKGj7WM4DRtVSdbXP9RbYk2njF3+e6+c=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=oH8Um9n/; arc=none smtp.client-ip=10.30.226.201","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1774517755;\n\tbh=Ysu//SzXdYM6Ja+X6GEXyxKMAawC5e8zz4sEbazP0d4=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=oH8Um9n/IJfBZbg973mfuAr9z2kYsZMM/BnlOSikR66gxhSLZf4n1lzFXGyMM9UfA\n\t ymFvLZuTftEjpFlHHzZc2Jv9VB9ls5q0DiKt0bgktR5VMumPeasdXaO4mEf9sSUQe/\n\t NaJDrY/mACV6K1Zeh51karwpyzkrl8OHHODXEDC3V3klyZP1+e2lbpKm8cFsa+Xarf\n\t C0sYoQC02o54ubEXk7hoca/GXtX2Ab5viJEPQpTpGQcuxYkGq0D/18gLOwZ2dkGMKy\n\t 9K+iDAunkdWXD2NtX3etjbg3hZweJGGqnelkB1yFkA82p7GKvzE7nVJtvA01QwyIAZ\n\t cjce83tWRd+cw==","Date":"Thu, 26 Mar 2026 10:35:52 +0100","From":"Thierry Reding <thierry.reding@kernel.org>","To":"Mikko Perttunen <mperttunen@nvidia.com>","Cc":"Thierry Reding <thierry.reding@gmail.com>,  Uwe =?utf-8?q?Kleine-K=C3=B6?=\n\t=?utf-8?q?nig?= <ukleinek@kernel.org>,\n Jonathan Hunter <jonathanh@nvidia.com>,  Rob Herring <robh@kernel.org>,\n Krzysztof Kozlowski <krzk+dt@kernel.org>,\n  Conor Dooley <conor+dt@kernel.org>, linux-pwm@vger.kernel.org,\n linux-tegra@vger.kernel.org,  linux-kernel@vger.kernel.org,\n devicetree@vger.kernel.org, Yi-Wei Wang <yiweiw@nvidia.com>","Subject":"Re: [PATCH v2 2/7] pwm: tegra: Avoid hard-coded max clock frequency","Message-ID":"<acT96Qh85krc6Hr_@orome>","References":"<20260325-t264-pwm-v2-0-998d885984b3@nvidia.com>\n <20260325-t264-pwm-v2-2-998d885984b3@nvidia.com>","Precedence":"bulk","X-Mailing-List":"linux-pwm@vger.kernel.org","List-Id":"<linux-pwm.vger.kernel.org>","List-Subscribe":"<mailto:linux-pwm+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pwm+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"multipart/signed; micalg=pgp-sha512;\n\tprotocol=\"application/pgp-signature\"; boundary=\"cusgvpbw2bgo3jwv\"","Content-Disposition":"inline","In-Reply-To":"<20260325-t264-pwm-v2-2-998d885984b3@nvidia.com>"}},{"id":3671156,"web_url":"http://patchwork.ozlabs.org/comment/3671156/","msgid":"<202603302259.NdAkuCVx-lkp@intel.com>","list_archive_url":null,"date":"2026-03-30T14:36:53","subject":"Re: [PATCH v2 2/7] pwm: tegra: Avoid hard-coded max clock frequency","submitter":{"id":67315,"url":"http://patchwork.ozlabs.org/api/people/67315/","name":"kernel test robot","email":"lkp@intel.com"},"content":"Hi Mikko,\n\nkernel test robot noticed the following build warnings:\n\n[auto build test WARNING on 11439c4635edd669ae435eec308f4ab8a0804808]\n\nurl:    https://github.com/intel-lab-lkp/linux/commits/Mikko-Perttunen/dt-bindings-pwm-Document-Tegra194-and-Tegra264-controllers/20260329-233356\nbase:   11439c4635edd669ae435eec308f4ab8a0804808\npatch link:    https://lore.kernel.org/r/20260325-t264-pwm-v2-2-998d885984b3%40nvidia.com\npatch subject: [PATCH v2 2/7] pwm: tegra: Avoid hard-coded max clock frequency\nconfig: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260330/202603302259.NdAkuCVx-lkp@intel.com/config)\ncompiler: nios2-linux-gcc (GCC) 11.5.0\nreproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260330/202603302259.NdAkuCVx-lkp@intel.com/reproduce)\n\nIf you fix the issue in a separate patch/commit (i.e. not just a new version of\nthe same patch/commit), kindly add following tags\n| Reported-by: kernel test robot <lkp@intel.com>\n| Closes: https://lore.kernel.org/oe-kbuild-all/202603302259.NdAkuCVx-lkp@intel.com/\n\nAll warnings (new ones prefixed by >>):\n\n   In file included from include/linux/kernel.h:17,\n                    from include/linux/clk.h:13,\n                    from drivers/pwm/pwm-tegra.c:39:\n   drivers/pwm/pwm-tegra.c: In function 'tegra_pwm_probe':\n>> include/linux/limits.h:26:25: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '9223372036854775807' to '4294967295' [-Woverflow]\n      26 | #define S64_MAX         ((s64)(U64_MAX >> 1))\n         |                         ^~~~~~~~~~~~~~~~~~~~~\n   drivers/pwm/pwm-tegra.c:303:47: note: in expansion of macro 'S64_MAX'\n     303 |         ret = dev_pm_opp_set_rate(&pdev->dev, S64_MAX);\n         |                                               ^~~~~~~\n\n\nvim +26 include/linux/limits.h\n\n3c9d017cc283df Andy Shevchenko 2023-08-04  14  \n54d50897d544c8 Masahiro Yamada 2019-03-07  15  #define U8_MAX\t\t((u8)~0U)\n54d50897d544c8 Masahiro Yamada 2019-03-07  16  #define S8_MAX\t\t((s8)(U8_MAX >> 1))\n54d50897d544c8 Masahiro Yamada 2019-03-07  17  #define S8_MIN\t\t((s8)(-S8_MAX - 1))\n54d50897d544c8 Masahiro Yamada 2019-03-07  18  #define U16_MAX\t\t((u16)~0U)\n54d50897d544c8 Masahiro Yamada 2019-03-07  19  #define S16_MAX\t\t((s16)(U16_MAX >> 1))\n54d50897d544c8 Masahiro Yamada 2019-03-07  20  #define S16_MIN\t\t((s16)(-S16_MAX - 1))\n54d50897d544c8 Masahiro Yamada 2019-03-07  21  #define U32_MAX\t\t((u32)~0U)\n3f50f132d8400e John Fastabend  2020-03-30  22  #define U32_MIN\t\t((u32)0)\n54d50897d544c8 Masahiro Yamada 2019-03-07  23  #define S32_MAX\t\t((s32)(U32_MAX >> 1))\n54d50897d544c8 Masahiro Yamada 2019-03-07  24  #define S32_MIN\t\t((s32)(-S32_MAX - 1))\n54d50897d544c8 Masahiro Yamada 2019-03-07  25  #define U64_MAX\t\t((u64)~0ULL)\n54d50897d544c8 Masahiro Yamada 2019-03-07 @26  #define S64_MAX\t\t((s64)(U64_MAX >> 1))\n54d50897d544c8 Masahiro Yamada 2019-03-07  27  #define S64_MIN\t\t((s64)(-S64_MAX - 1))\n54d50897d544c8 Masahiro Yamada 2019-03-07  28","headers":{"Return-Path":"\n <linux-pwm+bounces-8422-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pwm@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=f1XNAf7L;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pwm+bounces-8422-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=\"f1XNAf7L\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=192.198.163.17","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=intel.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=intel.com"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fkvJX3MXnz1yG8\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 01:48:44 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 3DC44319A2F1\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 14:38:22 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id E190B2EC0A6;\n\tMon, 30 Mar 2026 14:37:21 +0000 (UTC)","from mgamail.intel.com (mgamail.intel.com [192.198.163.17])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 54C7F2E091B;\n\tMon, 30 Mar 2026 14:37:20 +0000 (UTC)","from orviesa010.jf.intel.com ([10.64.159.150])\n  by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Mar 2026 07:37:20 -0700","from lkp-server01.sh.intel.com (HELO 283bf2e1b94a) ([10.239.97.150])\n  by orviesa010.jf.intel.com with ESMTP; 30 Mar 2026 07:37:16 -0700","from kbuild by 283bf2e1b94a with local (Exim 4.98.2)\n\t(envelope-from <lkp@intel.com>)\n\tid 1w7Dju-000000001DN-01E6;\n\tMon, 30 Mar 2026 14:37:14 +0000"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774881441; cv=none;\n b=jMwp/XCoZSucb9xNjs3XvRIppPOEPmdyC2VXpTpEm8d9CEB7cX2YOAYDT6G2u2unJbzfp06wwLQDXljJMotmN/mOtCPqwoWu1x96RG8xUoNO5l/haa3KKhMWt9GoBPo4k+V7nAlCglnNzfcH0QcTR0jXMjgdWBT7b96PNkBYiKQ=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774881441; c=relaxed/simple;\n\tbh=FfsIVUKLPFqUD2jO1eTH3CMDTjs2wmEjz9bthk26meA=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=rMEAD3G43tffOhQo1xsGd6fzThT95/7ST7k7BpLpvb5e8WGCN4KTozqrQlq8UD/UQm3wPmb2OY4Vvo+vqcpS5MZWWRkxF0CaDOZ8pLTaJkoAVzms3O4uG4wvRqOJt6F8dlmxEuaak7DeTx8npNGsJypuiVHhK9VAHSCItsgc/nY=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=intel.com;\n spf=pass smtp.mailfrom=intel.com;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=f1XNAf7L; arc=none smtp.client-ip=192.198.163.17","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1774881440; x=1806417440;\n  h=date:from:to:cc:subject:message-id:references:\n   mime-version:in-reply-to;\n  bh=FfsIVUKLPFqUD2jO1eTH3CMDTjs2wmEjz9bthk26meA=;\n  b=f1XNAf7LVdSvhsGh7TuDRaG50/d5WRAAHRfC6SbiUCQd5cBaTIR5RHYT\n   X0WQ5lA2Av3Fj2/rRjKCZuj8p1HqmmYXti4NBCS8pJDooQtXgM0+dPwPR\n   Wb40NHVY3PNkQo3FQti9267CQQEj0VhJqHt2eunDZbxzBvfJkQUWfckdV\n   XR18HpnY12M3ewH/B6vPqt0gqF954h+38A1wH9kFrQYiD6TpdU+KP7JV7\n   ja4ypbwAQ7NK6UtutBw7foQCKquol9PzryHpb2jjoNIa0ezJqlQbD0r2Y\n   aISAv2pEG2gj/dBCCp/lMA49sMeQBa59XEqedTYqxcuoKT+A7fG0dfEjS\n   g==;","X-CSE-ConnectionGUID":["tqPNu9e/Tf+77S/YXn3Wug==","GQSdPSfWSXiYPERlw7dyaw=="],"X-CSE-MsgGUID":["eorGjQYHTkiD+SAc2Vnn2Q==","T37eBBTtRSqbMyEgnSZ/aw=="],"X-IronPort-AV":["E=McAfee;i=\"6800,10657,11743\"; a=\"75770636\"","E=Sophos;i=\"6.23,150,1770624000\";\n   d=\"scan'208\";a=\"75770636\"","E=Sophos;i=\"6.23,150,1770624000\";\n   d=\"scan'208\";a=\"225245200\""],"X-ExtLoop1":"1","Date":"Mon, 30 Mar 2026 22:36:53 +0800","From":"kernel test robot <lkp@intel.com>","To":"Mikko Perttunen <mperttunen@nvidia.com>,\n Thierry Reding <thierry.reding@gmail.com>, Uwe =?iso-8859-1?q?Kleine-K=F6ni?=\n\t=?iso-8859-1?q?g?= <ukleinek@kernel.org>,\n Jonathan Hunter <jonathanh@nvidia.com>, Rob Herring <robh@kernel.org>,\n Krzysztof Kozlowski <krzk@kernel.org>, Conor Dooley <conor+dt@kernel.org>","Cc":"oe-kbuild-all@lists.linux.dev, linux-pwm@vger.kernel.org,\n\tlinux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tdevicetree@vger.kernel.org, Yi-Wei Wang <yiweiw@nvidia.com>,\n\tMikko Perttunen <mperttunen@nvidia.com>","Subject":"Re: [PATCH v2 2/7] pwm: tegra: Avoid hard-coded max clock frequency","Message-ID":"<202603302259.NdAkuCVx-lkp@intel.com>","References":"<20260325-t264-pwm-v2-2-998d885984b3@nvidia.com>","Precedence":"bulk","X-Mailing-List":"linux-pwm@vger.kernel.org","List-Id":"<linux-pwm.vger.kernel.org>","List-Subscribe":"<mailto:linux-pwm+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pwm+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20260325-t264-pwm-v2-2-998d885984b3@nvidia.com>"}},{"id":3671165,"web_url":"http://patchwork.ozlabs.org/comment/3671165/","msgid":"<202603302251.AFXspVqF-lkp@intel.com>","list_archive_url":null,"date":"2026-03-30T14:47:32","subject":"Re: [PATCH v2 2/7] pwm: tegra: Avoid hard-coded max clock frequency","submitter":{"id":67315,"url":"http://patchwork.ozlabs.org/api/people/67315/","name":"kernel test robot","email":"lkp@intel.com"},"content":"Hi Mikko,\n\nkernel test robot noticed the following build warnings:\n\n[auto build test WARNING on 11439c4635edd669ae435eec308f4ab8a0804808]\n\nurl:    https://github.com/intel-lab-lkp/linux/commits/Mikko-Perttunen/dt-bindings-pwm-Document-Tegra194-and-Tegra264-controllers/20260329-233356\nbase:   11439c4635edd669ae435eec308f4ab8a0804808\npatch link:    https://lore.kernel.org/r/20260325-t264-pwm-v2-2-998d885984b3%40nvidia.com\npatch subject: [PATCH v2 2/7] pwm: tegra: Avoid hard-coded max clock frequency\nconfig: hexagon-randconfig-r113-20260330 (https://download.01.org/0day-ci/archive/20260330/202603302251.AFXspVqF-lkp@intel.com/config)\ncompiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 2cd67b8b69f78e3f95918204320c3075a74ba16c)\nsparse: v0.6.5-rc1\nreproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260330/202603302251.AFXspVqF-lkp@intel.com/reproduce)\n\nIf you fix the issue in a separate patch/commit (i.e. not just a new version of\nthe same patch/commit), kindly add following tags\n| Reported-by: kernel test robot <lkp@intel.com>\n| Closes: https://lore.kernel.org/oe-kbuild-all/202603302251.AFXspVqF-lkp@intel.com/\n\nsparse warnings: (new ones prefixed by >>)\n>> drivers/pwm/pwm-tegra.c:303:47: sparse: sparse: cast truncates bits from constant value (7fffffffffffffff becomes ffffffff)\n\nvim +303 drivers/pwm/pwm-tegra.c\n\n   266\t\n   267\tstatic int tegra_pwm_probe(struct platform_device *pdev)\n   268\t{\n   269\t\tstruct pwm_chip *chip;\n   270\t\tstruct tegra_pwm_chip *pc;\n   271\t\tconst struct tegra_pwm_soc *soc;\n   272\t\tint ret;\n   273\t\n   274\t\tsoc = of_device_get_match_data(&pdev->dev);\n   275\t\n   276\t\tchip = devm_pwmchip_alloc(&pdev->dev, soc->num_channels, sizeof(*pc));\n   277\t\tif (IS_ERR(chip))\n   278\t\t\treturn PTR_ERR(chip);\n   279\t\tpc = to_tegra_pwm_chip(chip);\n   280\t\n   281\t\tpc->soc = soc;\n   282\t\n   283\t\tpc->regs = devm_platform_ioremap_resource(pdev, 0);\n   284\t\tif (IS_ERR(pc->regs))\n   285\t\t\treturn PTR_ERR(pc->regs);\n   286\t\n   287\t\tplatform_set_drvdata(pdev, chip);\n   288\t\n   289\t\tpc->clk = devm_clk_get(&pdev->dev, NULL);\n   290\t\tif (IS_ERR(pc->clk))\n   291\t\t\treturn PTR_ERR(pc->clk);\n   292\t\n   293\t\tret = devm_tegra_core_dev_init_opp_table_common(&pdev->dev);\n   294\t\tif (ret)\n   295\t\t\treturn ret;\n   296\t\n   297\t\tpm_runtime_enable(&pdev->dev);\n   298\t\tret = pm_runtime_resume_and_get(&pdev->dev);\n   299\t\tif (ret)\n   300\t\t\treturn ret;\n   301\t\n   302\t\t/* Set maximum frequency of the IP */\n > 303\t\tret = dev_pm_opp_set_rate(&pdev->dev, S64_MAX);\n   304\t\tif (ret < 0) {\n   305\t\t\tdev_err(&pdev->dev, \"Failed to set max frequency: %d\\n\", ret);\n   306\t\t\tgoto put_pm;\n   307\t\t}\n   308\t\n   309\t\t/*\n   310\t\t * The requested and configured frequency may differ due to\n   311\t\t * clock register resolutions. Get the configured frequency\n   312\t\t * so that PWM period can be calculated more accurately.\n   313\t\t */\n   314\t\tpc->clk_rate = clk_get_rate(pc->clk);\n   315\t\n   316\t\t/* Set minimum limit of PWM period for the IP */\n   317\t\tpc->min_period_ns =\n   318\t\t    (NSEC_PER_SEC / (pc->clk_rate >> PWM_DUTY_WIDTH)) + 1;\n   319\t\n   320\t\tpc->rst = devm_reset_control_get_exclusive(&pdev->dev, \"pwm\");\n   321\t\tif (IS_ERR(pc->rst)) {\n   322\t\t\tret = PTR_ERR(pc->rst);\n   323\t\t\tdev_err(&pdev->dev, \"Reset control is not found: %d\\n\", ret);\n   324\t\t\tgoto put_pm;\n   325\t\t}\n   326\t\n   327\t\treset_control_deassert(pc->rst);\n   328\t\n   329\t\tchip->ops = &tegra_pwm_ops;\n   330\t\n   331\t\tret = pwmchip_add(chip);\n   332\t\tif (ret < 0) {\n   333\t\t\tdev_err(&pdev->dev, \"pwmchip_add() failed: %d\\n\", ret);\n   334\t\t\treset_control_assert(pc->rst);\n   335\t\t\tgoto put_pm;\n   336\t\t}\n   337\t\n   338\t\tpm_runtime_put(&pdev->dev);\n   339\t\n   340\t\treturn 0;\n   341\tput_pm:\n   342\t\tpm_runtime_put_sync_suspend(&pdev->dev);\n   343\t\tpm_runtime_force_suspend(&pdev->dev);\n   344\t\treturn ret;\n   345\t}\n   346","headers":{"Return-Path":"\n <linux-pwm+bounces-8423-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pwm@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=byu97nM0;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-pwm+bounces-8423-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=\"byu97nM0\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=192.198.163.12","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=intel.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=intel.com"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fkvhp5hw8z1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 02:06:18 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id BDAA23140CAA\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 14:48:33 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id E6252324B23;\n\tMon, 30 Mar 2026 14:48:22 +0000 (UTC)","from mgamail.intel.com (mgamail.intel.com [192.198.163.12])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 536343242BD;\n\tMon, 30 Mar 2026 14:48:20 +0000 (UTC)","from fmviesa007.fm.intel.com ([10.60.135.147])\n  by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Mar 2026 07:48:20 -0700","from lkp-server01.sh.intel.com (HELO 283bf2e1b94a) ([10.239.97.150])\n  by fmviesa007.fm.intel.com with ESMTP; 30 Mar 2026 07:48:17 -0700","from kbuild by 283bf2e1b94a with local (Exim 4.98.2)\n\t(envelope-from <lkp@intel.com>)\n\tid 1w7DuY-000000001E5-1RHg;\n\tMon, 30 Mar 2026 14:48:14 +0000"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774882102; cv=none;\n b=hOPyN/o7zcFOyY2Z4Mcs0ncWb01Pqu+sd3tEKKdZo0pUUPNxgc6k0HlgKbxbzJ9QKwN/CmG46GJVYzpEPjp4LBAcOnHFx8X0hryT2xTgO3oZryPRl4shYvir1LlsLJVT9u+1yIaXA1881DuC7IsxQZE2jXiE2q0SDDJ18ugccRU=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774882102; c=relaxed/simple;\n\tbh=xpBPUcul1mxy76GdOsZONkg8Sx2okkRC6m5zBbw2K2U=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=bCxVOK5gjduDy4+muLIKiqt2uUZJWntcAkhXGYGiybs/xMJTETLZWHi0jP5Kso9hastE1dD25DYl5s5bzpKzdsUHoltrdBtKAzBSIwu4gjyyxAWYMC8faHFrHuJopVuAeKGKSACCneQmMaT2bC3pTJTFbEBMm4i7rQpslpqZd1E=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=intel.com;\n spf=pass smtp.mailfrom=intel.com;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=byu97nM0; arc=none smtp.client-ip=192.198.163.12","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1774882101; x=1806418101;\n  h=date:from:to:cc:subject:message-id:references:\n   mime-version:in-reply-to;\n  bh=xpBPUcul1mxy76GdOsZONkg8Sx2okkRC6m5zBbw2K2U=;\n  b=byu97nM0kVK6sXPi2Ars2jrEyZxmWIFEbIssuepZBxVJKiQO8OCfzkUh\n   Li17a95Y7r6c9HQ3LHnG4UKtGmWoa9txE43VXKHGfPCZeM3PO2FlnxcZS\n   DB2OPSxpz6J+aj3tgizdWB8QZn5gzI1lN9TO2VI1vVAPPvR0nzPRN+Q9W\n   UvIqpUA0E/tcHsD2pPvdjGJcoNOy+kuy99yQtYIhIS9zrCR5KsPLRxCM8\n   9ZhJwhVJWhXPqUbvh8oGkUon3UVgIGlS8c7gJEQxGpEUtxE6OCN0mreUm\n   PoDpYKpZ2ebRWdjfu2Qhtbj1OKgDae3mjDYsTbzMKkI2IVnYFrtTCCC6V\n   g==;","X-CSE-ConnectionGUID":["5gdJG16QS9+WFOPeUskbCQ==","GeCJocUATueDNdJ/3Bzb9Q=="],"X-CSE-MsgGUID":["MmyPapJrSK2AbhJZvZNL7w==","Uwruj5+6QpuBx/L3s5F1+g=="],"X-IronPort-AV":["E=McAfee;i=\"6800,10657,11743\"; a=\"79779133\"","E=Sophos;i=\"6.23,150,1770624000\";\n   d=\"scan'208\";a=\"79779133\"","E=Sophos;i=\"6.23,150,1770624000\";\n   d=\"scan'208\";a=\"222767787\""],"X-ExtLoop1":"1","Date":"Mon, 30 Mar 2026 22:47:32 +0800","From":"kernel test robot <lkp@intel.com>","To":"Mikko Perttunen <mperttunen@nvidia.com>,\n Thierry Reding <thierry.reding@gmail.com>, Uwe =?iso-8859-1?q?Kleine-K=F6ni?=\n\t=?iso-8859-1?q?g?= <ukleinek@kernel.org>,\n Jonathan Hunter <jonathanh@nvidia.com>, Rob Herring <robh@kernel.org>,\n Krzysztof Kozlowski <krzk@kernel.org>, Conor Dooley <conor+dt@kernel.org>","Cc":"oe-kbuild-all@lists.linux.dev, linux-pwm@vger.kernel.org,\n\tlinux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tdevicetree@vger.kernel.org, Yi-Wei Wang <yiweiw@nvidia.com>,\n\tMikko Perttunen <mperttunen@nvidia.com>","Subject":"Re: [PATCH v2 2/7] pwm: tegra: Avoid hard-coded max clock frequency","Message-ID":"<202603302251.AFXspVqF-lkp@intel.com>","References":"<20260325-t264-pwm-v2-2-998d885984b3@nvidia.com>","Precedence":"bulk","X-Mailing-List":"linux-pwm@vger.kernel.org","List-Id":"<linux-pwm.vger.kernel.org>","List-Subscribe":"<mailto:linux-pwm+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pwm+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<20260325-t264-pwm-v2-2-998d885984b3@nvidia.com>"}}]