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 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 A69BDC8303C for ; Sat, 5 Jul 2025 05:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LzacpixmqbydeatlNzplqEUseZ3yzbrAk9uoY1gpux0=; b=dmBhzzbyKDnjFuONLFguMyWgs0 1DTEUss5Aeimb0+3F9ubFtgp6uj/BTBRv7aSsepmPmz1g2Ujn1485oNbTb1N3bmVSFRPEFmra34cl FMrBaOhIA2dNMOshPS2M6n3knfWchGXnCIoytXjCvDZcWt7P1j3Y3jz3JyZjQBoQ3IMyNqLj4Yqay rG+Co1E35B5z/wD1pLomu7sSycUNQXtonu2Btuw5fWKDSvr5Cg1IPEEicEF2ZCnqyXOfR/XUOfyRB +0Q3FzrrwmdYRo5qbI4WCtToIRF6E+8E7sWNdl6CQkU93DFu2JlhrNZLwzy2ZvXA6HCZEk5dj+Gpa gSPbwMsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uXvAv-0000000G4QA-3oeD; Sat, 05 Jul 2025 05:10:57 +0000 Received: from mgamail.intel.com ([192.198.163.7]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uXv8X-0000000G3md-3qQY for linux-arm-kernel@lists.infradead.org; Sat, 05 Jul 2025 05:08:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751692110; x=1783228110; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=y4YbVKjIpJUvJyG6P+uiV9yZeiRLnh3BlJE9dI35KLo=; b=YFis92xSfTTkINOuuSgQNeLieIsA20819UhNutGDnH/A6RBAfFwLs8A5 RK+Oe4O+gpfQSe9fheZ+VNRnncNtmkFK95QbinFn3hM3DoWljIhySBr0S 436Cq218LwnGpfrJmZbwrBBaqXvqjFwm2GvpTbRVm31JZ5IwiyetCe4Rq 1NNRfiDIkmf0+hZo7Zi2sFgI8qdaWY2sDswNA/gRtxptPlfN/MY9csLK6 wZm4lvdjHA3YZFD7TysRVSFXp+ukzxNbLH3MvPyLftsvKv2V8OqixSeWr vHkk2Nntb/NyHTCR6WoSgIVbeNs6If0nIAbd7DV2Gcca9b8J/HAn9Qq5o g==; X-CSE-ConnectionGUID: EOhC0GgOTx64LZsrZXXsrg== X-CSE-MsgGUID: D8GfRAPDQeuw7epqwXDulA== X-IronPort-AV: E=McAfee;i="6800,10657,11484"; a="79443466" X-IronPort-AV: E=Sophos;i="6.16,289,1744095600"; d="scan'208";a="79443466" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 22:08:24 -0700 X-CSE-ConnectionGUID: I8XUcSjlT9S3JX+2sWvfGw== X-CSE-MsgGUID: R0W+LATIQlKLp+hRX+hGKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,289,1744095600"; d="scan'208";a="160440705" Received: from lkp-server01.sh.intel.com (HELO 0b2900756c14) ([10.239.97.150]) by orviesa005.jf.intel.com with ESMTP; 04 Jul 2025 22:08:22 -0700 Received: from kbuild by 0b2900756c14 with local (Exim 4.96) (envelope-from ) id 1uXv8M-0004Ih-2g; Sat, 05 Jul 2025 05:08:18 +0000 Date: Sat, 5 Jul 2025 13:07:20 +0800 From: kernel test robot To: Peter Griffin , Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Linus Walleij Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, =?iso-8859-1?Q?Andr=E9?= Draszik , Peter Griffin Subject: Re: [PATCH] pinctrl: samsung: Fix gs101 irq chip Message-ID: <202507051248.6qkGauvn-lkp@intel.com> References: <20250702-fix-gs101-irqchip-v1-1-ccc84b44ad72@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250702-fix-gs101-irqchip-v1-1-ccc84b44ad72@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250704_220829_986698_0CD15ADA X-CRM114-Status: GOOD ( 10.64 ) 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 Hi Peter, kernel test robot noticed the following build errors: [auto build test ERROR on 2aeda9592360c200085898a258c4754bfe879921] url: https://github.com/intel-lab-lkp/linux/commits/Peter-Griffin/pinctrl-samsung-Fix-gs101-irq-chip/20250702-201914 base: 2aeda9592360c200085898a258c4754bfe879921 patch link: https://lore.kernel.org/r/20250702-fix-gs101-irqchip-v1-1-ccc84b44ad72%40linaro.org patch subject: [PATCH] pinctrl: samsung: Fix gs101 irq chip config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250705/202507051248.6qkGauvn-lkp@intel.com/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250705/202507051248.6qkGauvn-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202507051248.6qkGauvn-lkp@intel.com/ All errors (new ones prefixed by >>): include/linux/lockdep.h:279:7: note: expanded from macro 'lockdep_assert' 279 | do { WARN_ON(debug_locks && !(cond)); } while (0) | ^ include/asm-generic/bug.h:132:3: note: expanded from macro 'WARN_ON' 132 | __WARN(); \ | ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' 10 | #define __stringify(x...) __stringify_1(x) | ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' 9 | #define __stringify_1(x...) #x | ^ :15:1: note: expanded from here 15 | ".pushsection __bug_table, \"aw\"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, \"aMS\", @progbits, 1; 10002: .string \"\" \"drivers/net/wireless/realtek/rtw88/hci.h\"; .popsection; .long 10002b - .; .short 197; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1;" | ^ :1:134: note: instantiated into assembly here 1 | .pushsection __bug_table, "aw"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, "aMS", @progbits, 1; 10002: .string "" "drivers/net/wireless/realtek/rtw88/hci.h"; .popsection; .long 10002b - .; .short 197; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1; | ^ In file included from drivers/net/wireless/realtek/rtw88/rtw8822c.c:6: In file included from drivers/net/wireless/realtek/rtw88/main.h:2136: drivers/net/wireless/realtek/rtw88/hci.h:197:2: error: unexpected token 197 | lockdep_assert_held(&rtwdev->mutex); | ^ include/linux/lockdep.h:285:2: note: expanded from macro 'lockdep_assert_held' 285 | lockdep_assert(lockdep_is_held(l) != LOCK_STATE_NOT_HELD) | ^ include/linux/lockdep.h:279:7: note: expanded from macro 'lockdep_assert' 279 | do { WARN_ON(debug_locks && !(cond)); } while (0) | ^ include/asm-generic/bug.h:132:3: note: expanded from macro 'WARN_ON' 132 | __WARN(); \ | ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' 10 | #define __stringify(x...) __stringify_1(x) | ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' 9 | #define __stringify_1(x...) #x | ^ :15:1: note: expanded from here 15 | ".pushsection __bug_table, \"aw\"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, \"aMS\", @progbits, 1; 10002: .string \"\" \"drivers/net/wireless/realtek/rtw88/hci.h\"; .popsection; .long 10002b - .; .short 197; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1;" | ^ :1:134: note: instantiated into assembly here 1 | .pushsection __bug_table, "aw"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, "aMS", @progbits, 1; 10002: .string "" "drivers/net/wireless/realtek/rtw88/hci.h"; .popsection; .long 10002b - .; .short 197; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1; | ^ In file included from drivers/net/wireless/realtek/rtw88/rtw8822c.c:6: In file included from drivers/net/wireless/realtek/rtw88/main.h:2136: drivers/net/wireless/realtek/rtw88/hci.h:186:2: error: unexpected token 186 | lockdep_assert_held(&rtwdev->mutex); | ^ include/linux/lockdep.h:285:2: note: expanded from macro 'lockdep_assert_held' 285 | lockdep_assert(lockdep_is_held(l) != LOCK_STATE_NOT_HELD) | ^ include/linux/lockdep.h:279:7: note: expanded from macro 'lockdep_assert' 279 | do { WARN_ON(debug_locks && !(cond)); } while (0) | ^ include/asm-generic/bug.h:132:3: note: expanded from macro 'WARN_ON' 132 | __WARN(); \ | ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' 10 | #define __stringify(x...) __stringify_1(x) | ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' 9 | #define __stringify_1(x...) #x | ^ :12:1: note: expanded from here 12 | ".pushsection __bug_table, \"aw\"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, \"aMS\", @progbits, 1; 10002: .string \"\" \"drivers/net/wireless/realtek/rtw88/hci.h\"; .popsection; .long 10002b - .; .short 186; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1;" | ^ :1:134: note: instantiated into assembly here 1 | .pushsection __bug_table, "aw"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, "aMS", @progbits, 1; 10002: .string "" "drivers/net/wireless/realtek/rtw88/hci.h"; .popsection; .long 10002b - .; .short 186; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1; | ^ In file included from drivers/net/wireless/realtek/rtw88/rtw8822c.c:6: In file included from drivers/net/wireless/realtek/rtw88/main.h:2136: drivers/net/wireless/realtek/rtw88/hci.h:186:2: error: unexpected token 186 | lockdep_assert_held(&rtwdev->mutex); | ^ include/linux/lockdep.h:285:2: note: expanded from macro 'lockdep_assert_held' 285 | lockdep_assert(lockdep_is_held(l) != LOCK_STATE_NOT_HELD) | ^ include/linux/lockdep.h:279:7: note: expanded from macro 'lockdep_assert' 279 | do { WARN_ON(debug_locks && !(cond)); } while (0) | ^ include/asm-generic/bug.h:132:3: note: expanded from macro 'WARN_ON' 132 | __WARN(); \ | ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' 10 | #define __stringify(x...) __stringify_1(x) | ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' 9 | #define __stringify_1(x...) #x | ^ :12:1: note: expanded from here 12 | ".pushsection __bug_table, \"aw\"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, \"aMS\", @progbits, 1; 10002: .string \"\" \"drivers/net/wireless/realtek/rtw88/hci.h\"; .popsection; .long 10002b - .; .short 186; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1;" | ^ :1:134: note: instantiated into assembly here 1 | .pushsection __bug_table, "aw"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, "aMS", @progbits, 1; 10002: .string "" "drivers/net/wireless/realtek/rtw88/hci.h"; .popsection; .long 10002b - .; .short 186; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1; | ^ >> drivers/net/wireless/realtek/rtw88/rtw8822c.c:4364:6: error: unexpected token 4364 | if (WARN_ON(bw > RTW_CHANNEL_WIDTH_40 || nrx >= RTW_RF_PATH_MAX)) | ^ include/asm-generic/bug.h:132:3: note: expanded from macro 'WARN_ON' 132 | __WARN(); \ | ^ include/asm-generic/bug.h:109:19: note: expanded from macro '__WARN' 109 | #define __WARN() __WARN_FLAGS("", BUGFLAG_TAINT(TAINT_WARN)) | ^ arch/loongarch/include/asm/bug.h:47:2: note: expanded from macro '__WARN_FLAGS' 47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' 10 | #define __stringify(x...) __stringify_1(x) | ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' 9 | #define __stringify_1(x...) #x | ^ :42:1: note: expanded from here 42 | ".pushsection __bug_table, \"aw\"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, \"aMS\", @progbits, 1; 10002: .string \"\" \"drivers/net/wireless/realtek/rtw88/rtw8822c.c\"; .popsection; .long 10002b - .; .short 4364; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1;" | ^ :1:134: note: instantiated into assembly here 1 | .pushsection __bug_table, "aw"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, "aMS", @progbits, 1; 10002: .string "" "drivers/net/wireless/realtek/rtw88/rtw8822c.c"; .popsection; .long 10002b - .; .short 4364; .short (1 << 0)|(((9) << 8)); .popsection; 10001: break 1; | ^ In file included from drivers/net/wireless/realtek/rtw88/rtw8822c.c:6: In file included from drivers/net/wireless/realtek/rtw88/main.h:2136: drivers/net/wireless/realtek/rtw88/hci.h:248:2: error: unexpected token 248 | WARN(addr & 0x3, "should be 4-byte aligned, addr = 0x%08x\n", addr); | ^ include/asm-generic/bug.h:141:3: note: expanded from macro 'WARN' 141 | __WARN_printf(TAINT_WARN, format); \ | ^ include/asm-generic/bug.h:113:3: note: expanded from macro '__WARN_printf' 113 | __WARN_FLAGS("", BUGFLAG_NO_CUT_HERE | BUGFLAG_TAINT(taint));\ | ^ arch/loongarch/include/asm/bug.h:47:2: note: expanded from macro '__WARN_FLAGS' 47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' 10 | #define __stringify(x...) __stringify_1(x) | ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' 9 | #define __stringify_1(x...) #x | ^ :18:1: note: expanded from here 18 | ".pushsection __bug_table, \"aw\"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, \"aMS\", @progbits, 1; 10002: .string \"\" \"drivers/net/wireless/realtek/rtw88/hci.h\"; .popsection; .long 10002b - .; .short 248; .short (1 << 0)|((1 << 3) | ((9) << 8)); .popsection; 10001: break 1;" | ^ :1:134: note: instantiated into assembly here 1 | .pushsection __bug_table, "aw"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, "aMS", @progbits, 1; 10002: .string "" "drivers/net/wireless/realtek/rtw88/hci.h"; .popsection; .long 10002b - .; .short 248; .short (1 << 0)|((1 << 3) | ((9) << 8)); .popsection; 10001: break 1; | ^ In file included from drivers/net/wireless/realtek/rtw88/rtw8822c.c:6: In file included from drivers/net/wireless/realtek/rtw88/main.h:2136: drivers/net/wireless/realtek/rtw88/hci.h:248:2: error: unexpected token 248 | WARN(addr & 0x3, "should be 4-byte aligned, addr = 0x%08x\n", addr); | ^ include/asm-generic/bug.h:141:3: note: expanded from macro 'WARN' 141 | __WARN_printf(TAINT_WARN, format); \ | ^ include/asm-generic/bug.h:113:3: note: expanded from macro '__WARN_printf' 113 | __WARN_FLAGS("", BUGFLAG_NO_CUT_HERE | BUGFLAG_TAINT(taint));\ | ^ arch/loongarch/include/asm/bug.h:47:2: note: expanded from macro '__WARN_FLAGS' 47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' 10 | #define __stringify(x...) __stringify_1(x) | ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' 9 | #define __stringify_1(x...) #x | ^ :18:1: note: expanded from here 18 | ".pushsection __bug_table, \"aw\"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, \"aMS\", @progbits, 1; 10002: .string \"\" \"drivers/net/wireless/realtek/rtw88/hci.h\"; .popsection; .long 10002b - .; .short 248; .short (1 << 0)|((1 << 3) | ((9) << 8)); .popsection; 10001: break 1;" | ^ :1:134: note: instantiated into assembly here 1 | .pushsection __bug_table, "aw"; .align 2; 10000: .long 10001f - .; .pushsection .rodata.str, "aMS", @progbits, 1; 10002: .string "" "drivers/net/wireless/realtek/rtw88/hci.h"; .popsection; .long 10002b - .; .short 248; .short (1 << 0)|((1 << 3) | ((9) << 8)); .popsection; 10001: break 1; | ^ In file included from drivers/net/wireless/realtek/rtw88/rtw8822c.c:6: In file included from drivers/net/wireless/realtek/rtw88/main.h:2136: drivers/net/wireless/realtek/rtw88/hci.h:197:2: error: unexpected token 197 | lockdep_assert_held(&rtwdev->mutex); | ^ include/linux/lockdep.h:285:2: note: expanded from macro 'lockdep_assert_held' 285 | lockdep_assert(lockdep_is_held(l) != LOCK_STATE_NOT_HELD) | ^ include/linux/lockdep.h:279:7: note: expanded from macro 'lockdep_assert' 279 | do { WARN_ON(debug_locks && !(cond)); } while (0) | ^ include/asm-generic/bug.h:132:3: note: expanded from macro 'WARN_ON' 132 | __WARN(); \ | ^ note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' 10 | #define __stringify(x...) __stringify_1(x) | ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' 9 | #define __stringify_1(x...) #x | ^ :15:1: note: expanded from here vim +4364 drivers/net/wireless/realtek/rtw88/rtw8822c.c 479c4ee931a677c Tzu-En Huang 2019-09-09 4353 479c4ee931a677c Tzu-En Huang 2019-09-09 4354 #define RTW_CCK_PD_MAX 255 479c4ee931a677c Tzu-En Huang 2019-09-09 4355 #define RTW_CCK_CS_MAX 31 479c4ee931a677c Tzu-En Huang 2019-09-09 4356 #define RTW_CCK_CS_ERR1 27 479c4ee931a677c Tzu-En Huang 2019-09-09 4357 #define RTW_CCK_CS_ERR2 29 479c4ee931a677c Tzu-En Huang 2019-09-09 4358 static void 479c4ee931a677c Tzu-En Huang 2019-09-09 4359 rtw8822c_phy_cck_pd_set_reg(struct rtw_dev *rtwdev, 479c4ee931a677c Tzu-En Huang 2019-09-09 4360 s8 pd_diff, s8 cs_diff, u8 bw, u8 nrx) 479c4ee931a677c Tzu-En Huang 2019-09-09 4361 { 479c4ee931a677c Tzu-En Huang 2019-09-09 4362 u32 pd, cs; 479c4ee931a677c Tzu-En Huang 2019-09-09 4363 479c4ee931a677c Tzu-En Huang 2019-09-09 @4364 if (WARN_ON(bw > RTW_CHANNEL_WIDTH_40 || nrx >= RTW_RF_PATH_MAX)) 479c4ee931a677c Tzu-En Huang 2019-09-09 4365 return; 479c4ee931a677c Tzu-En Huang 2019-09-09 4366 479c4ee931a677c Tzu-En Huang 2019-09-09 4367 pd = rtw_read32_mask(rtwdev, 479c4ee931a677c Tzu-En Huang 2019-09-09 4368 rtw8822c_cck_pd_reg[bw][nrx].reg_pd, 479c4ee931a677c Tzu-En Huang 2019-09-09 4369 rtw8822c_cck_pd_reg[bw][nrx].mask_pd); 479c4ee931a677c Tzu-En Huang 2019-09-09 4370 cs = rtw_read32_mask(rtwdev, 479c4ee931a677c Tzu-En Huang 2019-09-09 4371 rtw8822c_cck_pd_reg[bw][nrx].reg_cs, 479c4ee931a677c Tzu-En Huang 2019-09-09 4372 rtw8822c_cck_pd_reg[bw][nrx].mask_cs); 479c4ee931a677c Tzu-En Huang 2019-09-09 4373 pd += pd_diff; 479c4ee931a677c Tzu-En Huang 2019-09-09 4374 cs += cs_diff; 479c4ee931a677c Tzu-En Huang 2019-09-09 4375 if (pd > RTW_CCK_PD_MAX) 479c4ee931a677c Tzu-En Huang 2019-09-09 4376 pd = RTW_CCK_PD_MAX; 479c4ee931a677c Tzu-En Huang 2019-09-09 4377 if (cs == RTW_CCK_CS_ERR1 || cs == RTW_CCK_CS_ERR2) 479c4ee931a677c Tzu-En Huang 2019-09-09 4378 cs++; 479c4ee931a677c Tzu-En Huang 2019-09-09 4379 else if (cs > RTW_CCK_CS_MAX) 479c4ee931a677c Tzu-En Huang 2019-09-09 4380 cs = RTW_CCK_CS_MAX; 479c4ee931a677c Tzu-En Huang 2019-09-09 4381 rtw_write32_mask(rtwdev, 479c4ee931a677c Tzu-En Huang 2019-09-09 4382 rtw8822c_cck_pd_reg[bw][nrx].reg_pd, 479c4ee931a677c Tzu-En Huang 2019-09-09 4383 rtw8822c_cck_pd_reg[bw][nrx].mask_pd, 479c4ee931a677c Tzu-En Huang 2019-09-09 4384 pd); 479c4ee931a677c Tzu-En Huang 2019-09-09 4385 rtw_write32_mask(rtwdev, 479c4ee931a677c Tzu-En Huang 2019-09-09 4386 rtw8822c_cck_pd_reg[bw][nrx].reg_cs, 479c4ee931a677c Tzu-En Huang 2019-09-09 4387 rtw8822c_cck_pd_reg[bw][nrx].mask_cs, 479c4ee931a677c Tzu-En Huang 2019-09-09 4388 cs); 760bb2abfef252a Ping-Ke Shih 2020-11-09 4389 760bb2abfef252a Ping-Ke Shih 2020-11-09 4390 rtw_dbg(rtwdev, RTW_DBG_PHY, 760bb2abfef252a Ping-Ke Shih 2020-11-09 4391 "is_linked=%d, bw=%d, nrx=%d, cs_ratio=0x%x, pd_th=0x%x\n", 760bb2abfef252a Ping-Ke Shih 2020-11-09 4392 rtw_is_assoc(rtwdev), bw, nrx, cs, pd); 479c4ee931a677c Tzu-En Huang 2019-09-09 4393 } 479c4ee931a677c Tzu-En Huang 2019-09-09 4394 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki