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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6587C05027 for ; Wed, 8 Feb 2023 16:09:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbjBHQJZ (ORCPT ); Wed, 8 Feb 2023 11:09:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjBHQJX (ORCPT ); Wed, 8 Feb 2023 11:09:23 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A6254C0D2; Wed, 8 Feb 2023 08:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675872553; x=1707408553; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=i5wiQk9WC9xvE/C0qbZGsEhSgL1Eg53js8pBjXRU6aA=; b=CW05pcpaKHof8vIYk8QTqiOPv5WlwhBdJiwUmzEl6xJQ2c10GFYxG8rF NkmLygfi6ElYrwBskY9O/dDa2PvNjMmd+e4hJl2CpPE5VmrpVVX2JDVgm n4uNULnp2inBh296U9e7iP9EAmzoP2wVb+7Dcz7pCRVSdLD7RWSc2SZXo 2yJ+jzV1Q5XYZXG4aTaivkHrGhdhh2jDBlsNdOoR3FMxU0BEnFB2tq8op vE5f4VhFH5lpvpVbu4Dp3J0bNaaY+9RdNNFGS93c52ZgW06zjOMsxAi2C yC4GwTxIJTBvH7XD17X35E6gVMEyI3KG3MxH5I2WbfWJcobxSu1TpqbUd Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="310195990" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="310195990" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 08:09:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="791264474" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="791264474" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 08 Feb 2023 08:09:08 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pPn0N-0004Wa-1m; Wed, 08 Feb 2023 16:09:07 +0000 Date: Thu, 9 Feb 2023 00:08:33 +0800 From: kernel test robot To: Lucas Tanure , David Rhodes , Charles Keepax , Liam Girdwood , Krzysztof Kozlowski , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai Cc: oe-kbuild-all@lists.linux.dev, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, kernel@collabora.com, Lucas Tanure Subject: Re: [PATCH v3 3/4] ALSA: cs35l41: Add shared boost feature Message-ID: <202302090037.Ndp45WTg-lkp@intel.com> References: <20230208141839.1097377-4-lucas.tanure@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230208141839.1097377-4-lucas.tanure@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lucas, I love your patch! Perhaps something to improve: [auto build test WARNING on tiwai-sound/for-next] [also build test WARNING on tiwai-sound/for-linus linus/master v6.2-rc7 next-20230208] [cannot apply to broonie-sound/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Lucas-Tanure/ASoC-cs35l41-Only-disable-internal-boost/20230208-222109 base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next patch link: https://lore.kernel.org/r/20230208141839.1097377-4-lucas.tanure%40collabora.com patch subject: [PATCH v3 3/4] ALSA: cs35l41: Add shared boost feature config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230209/202302090037.Ndp45WTg-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 12.1.0 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 # https://github.com/intel-lab-lkp/linux/commit/87a5c357d253db3453537a973252d044ce02ad91 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Lucas-Tanure/ASoC-cs35l41-Only-disable-internal-boost/20230208-222109 git checkout 87a5c357d253db3453537a973252d044ce02ad91 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash sound/soc/codecs/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): sound/soc/codecs/cs35l41-lib.c: In function 'cs35l41_global_enable': >> sound/soc/codecs/cs35l41-lib.c:1212:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1212 | struct reg_sequence cs35l41_mdsync_down_seq[] = { | ^~~~~~ sound/soc/codecs/cs35l41-lib.c:1217:46: error: 'cs35l45' undeclared (first use in this function) 1217 | ret = regmap_multi_reg_write(cs35l45->regmap, cs35l41_mdsync_down_seq, | ^~~~~~~ sound/soc/codecs/cs35l41-lib.c:1217:46: note: each undeclared identifier is reported only once for each function it appears in sound/soc/codecs/cs35l41-lib.c:1231:25: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1231 | struct reg_sequence cs35l41_mdsync_up_seq[] = { | ^~~~~~ vim +1212 sound/soc/codecs/cs35l41-lib.c 1190 1191 int cs35l41_global_enable(struct regmap *regmap, enum cs35l41_boost_type b_type, int enable, 1192 struct completion *pll_lock) 1193 { 1194 int ret; 1195 unsigned int gpio1_func, pad_control, pwr_ctrl1, pwr_ctrl3; 1196 1197 switch (b_type) { 1198 case CS35L41_SHD_BOOST_ACTV: 1199 case CS35L41_SHD_BOOST_PASS: 1200 regmap_read(regmap, CS35L41_PWR_CTRL3, &pwr_ctrl3); 1201 regmap_read(regmap, CS35L41_GPIO_PAD_CONTROL, &pad_control); 1202 1203 pwr_ctrl3 &= ~CS35L41_SYNC_EN_MASK; 1204 pwr_ctrl1 = enable << CS35L41_GLOBAL_EN_SHIFT; 1205 1206 gpio1_func = enable ? CS35L41_GPIO1_MDSYNC : CS35L41_GPIO1_HIZ; 1207 gpio1_func <<= CS35L41_GPIO1_CTRL_SHIFT; 1208 1209 pad_control &= ~CS35L41_GPIO1_CTRL_MASK; 1210 pad_control |= gpio1_func & CS35L41_GPIO1_CTRL_MASK; 1211 > 1212 struct reg_sequence cs35l41_mdsync_down_seq[] = { 1213 {CS35L41_PWR_CTRL3, pwr_ctrl3}, 1214 {CS35L41_GPIO_PAD_CONTROL, pad_control}, 1215 {CS35L41_PWR_CTRL1, pwr_ctrl1, 3000}, 1216 }; 1217 ret = regmap_multi_reg_write(cs35l45->regmap, cs35l41_mdsync_down_seq, 1218 ARRAY_SIZE(cs35l41_mdsync_down_seq)); 1219 if (!enable) 1220 break; 1221 1222 if (!pll_lock) 1223 return -EINVAL; 1224 1225 ret = wait_for_completion_timeout(pll_lock, msecs_to_jiffies(1000)); 1226 if (ret == 0) { 1227 ret = -ETIMEDOUT; 1228 } else { 1229 regmap_read(regmap, CS35L41_PWR_CTRL3, &pwr_ctrl3); 1230 pwr_ctrl3 |= CS35L41_SYNC_EN_MASK; 1231 struct reg_sequence cs35l41_mdsync_up_seq[] = { 1232 {CS35L41_PWR_CTRL3, pwr_ctrl3}, 1233 {CS35L41_PWR_CTRL1, 0x00000000, 3000}, 1234 {CS35L41_PWR_CTRL1, 0x00000001, 3000}, 1235 }; 1236 ret = regmap_multi_reg_write(cs35l45->regmap, cs35l41_mdsync_up_seq, 1237 ARRAY_SIZE(cs35l41_mdsync_up_seq)); 1238 } 1239 break; 1240 case CS35L41_INT_BOOST: 1241 ret = regmap_update_bits(regmap, CS35L41_PWR_CTRL1, CS35L41_GLOBAL_EN_MASK, 1242 enable << CS35L41_GLOBAL_EN_SHIFT); 1243 usleep_range(3000, 3100); 1244 break; 1245 case CS35L41_EXT_BOOST: 1246 case CS35L41_EXT_BOOST_NO_VSPK_SWITCH: 1247 if (enable) 1248 ret = regmap_multi_reg_write(regmap, cs35l41_safe_to_active, 1249 ARRAY_SIZE(cs35l41_safe_to_active)); 1250 else 1251 ret = regmap_multi_reg_write(regmap, cs35l41_active_to_safe, 1252 ARRAY_SIZE(cs35l41_active_to_safe)); 1253 break; 1254 default: 1255 ret = -EINVAL; 1256 break; 1257 } 1258 1259 return ret; 1260 } 1261 EXPORT_SYMBOL_GPL(cs35l41_global_enable); 1262 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests