From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E858DC77B73 for ; Sun, 23 Apr 2023 06:09:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 415DF6B0075; Sun, 23 Apr 2023 02:09:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3C6086B0078; Sun, 23 Apr 2023 02:09:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 28D756B007B; Sun, 23 Apr 2023 02:09:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 15AF76B0075 for ; Sun, 23 Apr 2023 02:09:10 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id D8B331601EE for ; Sun, 23 Apr 2023 06:09:09 +0000 (UTC) X-FDA: 80711628018.12.B5DE4CE Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf19.hostedemail.com (Postfix) with ESMTP id 5591C1A0006 for ; Sun, 23 Apr 2023 06:09:07 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=d4Z2mHwS; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682230148; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=c/R5EyFdLjBOrI3MohMMDo/5cOf3qTMwAsn+rSwXUF8=; b=UVX6fOkFkLjk63GvrFoWykvh0+B/XGHvzxvawEhhqk9RCbLt4iODGg5jPy8rK4+nJPfyCh q48B3gnxitvl23Ecdck2Ie0CGb5D+2dxJR3vnwdGfmzkQjBDN0mX3qZMqC+P0OA6Xc7X6M 1Ni4lz45Sv9lOhs3zJnIDt40ayYXDak= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=d4Z2mHwS; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1682230148; a=rsa-sha256; cv=none; b=Oz0l4ozO6xv+kTxDYBQzG+9cdM+LZG4mExz211SxneVw9Bx4XKzGge2vze3Q4IY1zvxnt3 9svb+vmOfa69HkXIUgJYXstYbe3Be4Jge+i4clAQ3huxj4+1elmD2VjDJbwpG4wXog/Zgd KO+0dSx9yDbC0bnz5JjEvJ6x9P1pR4w= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682230147; x=1713766147; h=date:from:to:cc:subject:message-id:mime-version; bh=+CY6XJvFpwGwaepwYVoZKOxETutIgMl/pKzba4yBJHs=; b=d4Z2mHwSWtzFv4iYnP0Wt32cH5lKGd6PLCt7PakTtsEvU87ZrP0w2QCx Ql1MRvVqHRxh3Ijfu/L4awFrsbd93aezJ6tU/pgg4KC+nTkFu8NSBQBxE td003trLSqc0XW6WqAlFDRYuAYQbrfM55iI7eUUbNmUFKsTHV+wQ/5SsA iah9hF6sKpwpWchQrnchlula6RxjZcjGhlz1KVnXbNsYkA7D73/m8dA7/ 7FP29RJEwA5gHqkh+v/w9LL8Vfpk6Bo1GpUsRf6gwNrKMys/GsB2qiocB 6MDAGOwd6FMdiObeK30Z4U52IkyfU9F2kKZ81rmnOogVNDWSjdw6wUm75 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10688"; a="432526480" X-IronPort-AV: E=Sophos;i="5.99,219,1677571200"; d="scan'208";a="432526480" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2023 23:09:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10688"; a="642952137" X-IronPort-AV: E=Sophos;i="5.99,219,1677571200"; d="scan'208";a="642952137" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 22 Apr 2023 23:09:03 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pqSuE-000hk4-2D; Sun, 23 Apr 2023 06:09:02 +0000 Date: Sun, 23 Apr 2023 14:09:01 +0800 From: kernel test robot To: Qin Jian Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Stephen Boyd Subject: [linux-next:master 4537/13717] drivers/clk/clk-sp7021.c:316:8: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((_m), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigne... Message-ID: <202304231357.7gTDI8lT-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 5591C1A0006 X-Stat-Signature: e9ocgxmzoqanopcc8txqktd8hzxqi9ep X-HE-Tag: 1682230147-155257 X-HE-Meta: U2FsdGVkX19VoLkB0lq4TGWgqCpl+InraqqlFsxfDFXtmdX7iigUkCmYFd7vNjF+ryFleYhzidU0S4n/O8vz3+g/QDY+HtnVWOe137D2ARtecIrTHhjLi/YE1rVb8hDamtnLW7Y0v33eFctpi2sGSyO255y1yW9WB5O56JPMzoxpGbb2oZTy0U4Sr9YkWrvLIbENk4k4Mgg0IsghZj4v76dnDGBhy9TFrSRve/HkxLJQUXKWpdX5h5ZZWDNDdrL5RvOZT0xkniyrwHnK/ZbfWQuxE9d6cIMZEeSZMfVJeXvBc7wqzo7gt/JVnI1TjxNbXrXT+rSpQjryF7rVeitfbpQjU3cixzJFHAiTASKbEXDuruGdQZRrKrue06iL7smwOubq2vugMGFh1avG3t8TcxUsJoByGZKNseq2UCWr3zXWaXFbFrcLIC6hYL1YmONypCD3Pmt+X66YXbYorNGuzz8YSBp594DlxYCLL8lyjHnIv1wMt2RO81pa2SX8AHTvJfRGUuTHD3hxCDVY8Y258AUV4Koteg85wktpzOAolKoE+ps+8EWNCPudp+7mYfbNtdwDRycRYVQGqxEyj6XwNR+eAFeRH5HuJJ1Rlgddc/6mFe6ucTA0LoVUE7HnYQ12CgSrIGlsGC72p8y0BiC4S5S0DrMoKnZElkK3J3NmJqkLbnGpAQ67z93cywWe8koyf6zOZMQ6xyp/6iRr1PCJnRTTFOty0pkGl9Akh6W5iEC266JulVCGkmHQbPbUhITlG+dfLCwqxygkA5+wTRuU4WIrefTFJ843HNFLG1I8vUODHE681Q7Dhzldh+36rScEid0LRM7FtvRYAb6vAOyIaMiOQLYsWZO9QnvwzbuhorIpTzfjSVoYt6+IO0W3qz+PYysouuJ4pymBP+6ToOo8ngGTDKSjPOz1DbxOQBqteLdRmnSOv6Y7mYhTooBHvmuSV9GUFmqY1SW+vJSm/k4 nQdqz352 N6FXrPE4dU3XDOGAL3Tntc/t58zdQJpjgJ5fXujZ4xwETar1A/fRtxy1D2jxZVvY3siJFpFwmh0cSrNT+3G5fmZFJ+forMlhswYvjfsqjMlvb+DSHoAVFvxSWHfBimgYAqV5x0tzYxNsw6qBoPhPk6i3OMcqJsB0T5IQsluTqkUvH+2kRStQag/TnMK1bpnYHsEkxlSuUXk8d+pBOiY9sq+jljKnQzoewHLBBkCC2sllBBAapGOVl8LAysSZ3yQJZQhn4kCo4TKjN6e8kgBzYSH+0229w7o81/OVypp+Hg5JWsyK670jCxIUYs4/TT2rtlOQqrV2zdwUOnoz/+SicI4RILkv4evfGc2o6ged9DO+0+S2XhitUWEnqN/zfZIyBlVByNkuuGkeqhaq72sT2LWbSu8iulM6jXFndbWawPZQqY5x8UDYYd2MmN+exnF4AgJq0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Qin, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d3e1ee0e67e7603d36f4fa2fec6b881c01aabe89 commit: d54c1fd4a51e8fbc7f9da86b0cd338a4f7cd2bb2 [4537/13717] clk: Add Sunplus SP7021 clock driver config: powerpc-buildonly-randconfig-r003-20230423 (https://download.01.org/0day-ci/archive/20230423/202304231357.7gTDI8lT-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d54c1fd4a51e8fbc7f9da86b0cd338a4f7cd2bb2 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout d54c1fd4a51e8fbc7f9da86b0cd338a4f7cd2bb2 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/clk/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304231357.7gTDI8lT-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/clk/clk-sp7021.c:316:8: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((_m), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigned short)0, short: (unsigned short)0, unsigned int: (unsigned int)0, int: (unsigned int)0, unsigned long: (unsigned long)0, long: (unsigned long)0, unsigned long long: (unsigned long long)0, long long: (unsigned long long)0, default: (_m)))' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare] r0 |= HWM_FIELD_PREP(MASK_SEL_FRA, clk->p[SEL_FRA]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clk-sp7021.c:45:15: note: expanded from macro 'HWM_FIELD_PREP' (_m << 16) | FIELD_PREP(_m, value); \ ^~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:114:3: note: expanded from macro 'FIELD_PREP' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:71:53: note: expanded from macro '__BF_FIELD_CHECK' BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:397:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:385:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:377:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ drivers/clk/clk-sp7021.c:317:8: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((_m), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigned short)0, short: (unsigned short)0, unsigned int: (unsigned int)0, int: (unsigned int)0, unsigned long: (unsigned long)0, long: (unsigned long)0, unsigned long long: (unsigned long long)0, long long: (unsigned long long)0, default: (_m)))' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare] r0 |= HWM_FIELD_PREP(MASK_SDM_MOD, clk->p[SDM_MOD]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clk-sp7021.c:45:15: note: expanded from macro 'HWM_FIELD_PREP' (_m << 16) | FIELD_PREP(_m, value); \ ^~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:114:3: note: expanded from macro 'FIELD_PREP' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:71:53: note: expanded from macro '__BF_FIELD_CHECK' BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:397:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:385:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:377:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ drivers/clk/clk-sp7021.c:318:8: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((_m), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigned short)0, short: (unsigned short)0, unsigned int: (unsigned int)0, int: (unsigned int)0, unsigned long: (unsigned long)0, long: (unsigned long)0, unsigned long long: (unsigned long long)0, long long: (unsigned long long)0, default: (_m)))' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare] r0 |= HWM_FIELD_PREP(MASK_PH_SEL, clk->p[PH_SEL]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clk-sp7021.c:45:15: note: expanded from macro 'HWM_FIELD_PREP' (_m << 16) | FIELD_PREP(_m, value); \ ^~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:114:3: note: expanded from macro 'FIELD_PREP' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:71:53: note: expanded from macro '__BF_FIELD_CHECK' BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:397:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:385:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:377:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ drivers/clk/clk-sp7021.c:319:8: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((_m), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigned short)0, short: (unsigned short)0, unsigned int: (unsigned int)0, int: (unsigned int)0, unsigned long: (unsigned long)0, long: (unsigned long)0, unsigned long long: (unsigned long long)0, long long: (unsigned long long)0, default: (_m)))' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare] r0 |= HWM_FIELD_PREP(MASK_NFRA, clk->p[NFRA]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clk-sp7021.c:45:15: note: expanded from macro 'HWM_FIELD_PREP' (_m << 16) | FIELD_PREP(_m, value); \ ^~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:114:3: note: expanded from macro 'FIELD_PREP' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:71:53: note: expanded from macro '__BF_FIELD_CHECK' BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:397:22: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:385:23: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:377:9: note: expanded from macro '__compiletime_assert' if (!(condition)) \ ^~~~~~~~~ drivers/clk/clk-sp7021.c:321:8: warning: result of comparison of constant 18446744073709551615 with expression of type 'typeof (_Generic((_m), char: (unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigned short)0, short: (unsigned short)0, unsigned int: (unsigned int)0, int: (unsigned int)0, unsigned long: (unsigned long)0, long: (unsigned long)0, unsigned long long: (unsigned long long)0, long long: (unsigned long long)0, default: (_m)))' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare] r1 = HWM_FIELD_PREP(MASK_DIVR, clk->p[DIVR]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/clk-sp7021.c:45:15: note: expanded from macro 'HWM_FIELD_PREP' (_m << 16) | FIELD_PREP(_m, value); \ ^~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:114:3: note: expanded from macro 'FIELD_PREP' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/bitfield.h:71:53: note: expanded from macro '__BF_FIELD_CHECK' BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) vim +316 drivers/clk/clk-sp7021.c 309 310 static int plltv_set_rate(struct sp_pll *clk) 311 { 312 unsigned long flags; 313 u32 r0, r1, r2; 314 315 r0 = BIT(clk->bp_bit + 16); > 316 r0 |= HWM_FIELD_PREP(MASK_SEL_FRA, clk->p[SEL_FRA]); 317 r0 |= HWM_FIELD_PREP(MASK_SDM_MOD, clk->p[SDM_MOD]); 318 r0 |= HWM_FIELD_PREP(MASK_PH_SEL, clk->p[PH_SEL]); 319 r0 |= HWM_FIELD_PREP(MASK_NFRA, clk->p[NFRA]); 320 321 r1 = HWM_FIELD_PREP(MASK_DIVR, clk->p[DIVR]); 322 323 r2 = HWM_FIELD_PREP(MASK_DIVN, clk->p[DIVN] - 1); 324 r2 |= HWM_FIELD_PREP(MASK_DIVM, clk->p[DIVM] - 1); 325 326 spin_lock_irqsave(&clk->lock, flags); 327 writel(r0, clk->reg); 328 writel(r1, clk->reg + 4); 329 writel(r2, clk->reg + 8); 330 spin_unlock_irqrestore(&clk->lock, flags); 331 332 return 0; 333 } 334 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests