Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexandre Mergnat <amergnat@baylibre.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Mark Brown <broonie@kernel.org>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>
Subject: [broonie-ci:v6_20240619_amergnat_add_audio_support_for_the_mediatek_genio_350_evk_board 34/34] sound/soc/mediatek/mt8365/mt8365-afe-clk.c:298:5: warning: no previous prototype for function 'mt8365_afe_hd_engen_enable'
Date: Sat, 22 Jun 2024 12:22:41 +0800	[thread overview]
Message-ID: <202406221249.REEiRekU-lkp@intel.com> (raw)

Hi Alexandre,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git v6_20240619_amergnat_add_audio_support_for_the_mediatek_genio_350_evk_board
head:   bb7947bc00dc3b464cc5ce3db7617d3ef9a9d753
commit: bb7947bc00dc3b464cc5ce3db7617d3ef9a9d753 [34/34] ASoC: mediatek: Add MT8365 support
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240622/202406221249.REEiRekU-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad79a14c9e5ec4a369eed4adf567c22cc029863f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240622/202406221249.REEiRekU-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406221249.REEiRekU-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from sound/soc/mediatek/mt8365/mt8365-afe-clk.c:11:
   In file included from sound/soc/mediatek/mt8365/mt8365-afe-common.h:16:
   In file included from include/sound/soc.h:26:
   In file included from include/sound/ac97_codec.h:17:
   In file included from include/sound/pcm.h:15:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     500 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     501 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     507 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     508 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     519 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     520 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     528 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     529 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/mediatek/mt8365/mt8365-afe-clk.c:298:5: warning: no previous prototype for function 'mt8365_afe_hd_engen_enable' [-Wmissing-prototypes]
     298 | int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1)
         |     ^
   sound/soc/mediatek/mt8365/mt8365-afe-clk.c:298:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     298 | int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1)
         | ^
         | static 
>> sound/soc/mediatek/mt8365/mt8365-afe-clk.c:310:5: warning: no previous prototype for function 'mt8365_afe_hd_engen_disable' [-Wmissing-prototypes]
     310 | int mt8365_afe_hd_engen_disable(struct mtk_base_afe *afe, bool apll1)
         |     ^
   sound/soc/mediatek/mt8365/mt8365-afe-clk.c:310:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     310 | int mt8365_afe_hd_engen_disable(struct mtk_base_afe *afe, bool apll1)
         | ^
         | static 
>> sound/soc/mediatek/mt8365/mt8365-afe-clk.c:314:24: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551614 to 4294967294 [-Wconstant-conversion]
     313 |                 regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE,
         |                 ~~~~~~~~~~~~~~~~~~
     314 |                                    AFE_22M_PLL_EN, ~AFE_22M_PLL_EN);
         |                                                    ^~~~~~~~~~~~~~~
   sound/soc/mediatek/mt8365/mt8365-afe-clk.c:317:24: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551613 to 4294967293 [-Wconstant-conversion]
     316 |                 regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE,
         |                 ~~~~~~~~~~~~~~~~~~
     317 |                                    AFE_24M_PLL_EN, ~AFE_24M_PLL_EN);
         |                                                    ^~~~~~~~~~~~~~~
   9 warnings generated.
--
   In file included from sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:14:
   In file included from include/linux/dma-mapping.h:11:
   In file included from include/linux/scatterlist.h:8:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     500 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     501 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     507 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     508 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     519 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     520 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     528 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     529 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:173:6: warning: no previous prototype for function 'mt8365_afe_clk_group_44k' [-Wmissing-prototypes]
     173 | bool mt8365_afe_clk_group_44k(int sample_rate)
         |      ^
   sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:173:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     173 | bool mt8365_afe_clk_group_44k(int sample_rate)
         | ^
         | static 
>> sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:499:5: warning: no previous prototype for function 'mt8365_afe_fe_startup' [-Wmissing-prototypes]
     499 | int mt8365_afe_fe_startup(struct snd_pcm_substream *substream,
         |     ^
   sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:499:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     499 | int mt8365_afe_fe_startup(struct snd_pcm_substream *substream,
         | ^
         | static 
>> sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:575:9: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709547519 to 4294963199 [-Wconstant-conversion]
     573 |                         regmap_update_bits(afe->regmap, AFE_CM2_CON0,
         |                         ~~~~~~~~~~~~~~~~~~
     574 |                                            CM_AFE_CM2_TDM_SEL,
     575 |                                            ~CM_AFE_CM2_TDM_SEL);
         |                                            ^~~~~~~~~~~~~~~~~~~
   sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:654:29: warning: unused variable 'memif' [-Wunused-variable]
     654 |         struct mtk_base_afe_memif *memif = &afe->memif[dai_id];
         |                                    ^~~~~
>> sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:717:5: warning: no previous prototype for function 'mt8365_afe_fe_trigger' [-Wmissing-prototypes]
     717 | int mt8365_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
         |     ^
   sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:717:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     717 | int mt8365_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
         | ^
         | static 
   sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:746:23: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551599 to 4294967279 [-Wconstant-conversion]
     745 |                         regmap_update_bits(afe->regmap, AFE_CM1_CON0,
         |                         ~~~~~~~~~~~~~~~~~~
     746 |                                            CM_AFE_CM_ON, ~CM_AFE_CM_ON);
         |                                                          ^~~~~~~~~~~~~
   sound/soc/mediatek/mt8365/mt8365-afe-pcm.c:750:23: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551599 to 4294967279 [-Wconstant-conversion]
     749 |                         regmap_update_bits(afe->regmap, AFE_CM2_CON0,
         |                         ~~~~~~~~~~~~~~~~~~
     750 |                                            CM_AFE_CM_ON, ~CM_AFE_CM_ON);
         |                                                          ^~~~~~~~~~~~~
   12 warnings generated.
--
   In file included from sound/soc/mediatek/mt8365/mt8365-dai-adda.c:12:
   In file included from include/sound/pcm_params.h:10:
   In file included from include/sound/pcm.h:15:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     500 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     501 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     507 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     508 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     519 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     520 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     528 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     529 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/mediatek/mt8365/mt8365-dai-adda.c:93:8: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551614 to 4294967294 [-Wconstant-conversion]
      91 |                 regmap_update_bits(afe->regmap, AFE_ADDA_UL_DL_CON0,
         |                 ~~~~~~~~~~~~~~~~~~
      92 |                                    AFE_ADDA_UL_DL_ADDA_AFE_ON,
      93 |                                    ~AFE_ADDA_UL_DL_ADDA_AFE_ON);
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   6 warnings generated.
--
   In file included from sound/soc/mediatek/mt8365/mt8365-dai-dmic.c:12:
   In file included from include/sound/pcm_params.h:10:
   In file included from include/sound/pcm.h:15:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     500 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     501 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     507 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     508 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     519 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     520 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     528 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     529 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/mediatek/mt8365/mt8365-dai-dmic.c:64:7: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551613 to 4294967293 [-Wconstant-conversion]
      62 |         regmap_update_bits(afe->regmap, AFE_ADDA_UL_DL_CON0,
         |         ~~~~~~~~~~~~~~~~~~
      63 |                            AFE_ADDA_UL_DL_DMIC_CLKDIV_ON,
      64 |                            ~AFE_ADDA_UL_DL_DMIC_CLKDIV_ON);
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/mediatek/mt8365/mt8365-dai-dmic.c:134:12: warning: unused function 'mt8365_dai_load_dmic_iir_coeff_table' [-Wunused-function]
     134 | static int mt8365_dai_load_dmic_iir_coeff_table(struct mtk_base_afe *afe)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   7 warnings generated.
--
   In file included from sound/soc/mediatek/mt8365/mt8365-dai-i2s.c:12:
   In file included from include/sound/pcm_params.h:10:
   In file included from include/sound/pcm.h:15:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     500 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     501 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     507 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     508 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     519 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     520 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     528 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     529 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/mediatek/mt8365/mt8365-dai-i2s.c:388:8: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551613 to 4294967293 [-Wconstant-conversion]
     386 |                 regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON0,
         |                 ~~~~~~~~~~~~~~~~~~
     387 |                                    COEFF_SRAM_CTRL,
     388 |                                    (unsigned long)~COEFF_SRAM_CTRL);
         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/mediatek/mt8365/mt8365-dai-i2s.c:396:16: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709549567 to 4294965247 [-Wconstant-conversion]
     395 |                 regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON2,
         |                 ~~~~~~~~~~~~~~~~~~
     396 |                                    IIR_EN, (unsigned long)~IIR_EN);
         |                                            ^~~~~~~~~~~~~~~~~~~~~~
   sound/soc/mediatek/mt8365/mt8365-dai-i2s.c:459:16: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551614 to 4294967294 [-Wconstant-conversion]
     458 |                 regmap_update_bits(afe->regmap, AFE_ASRC_2CH_CON0,
         |                 ~~~~~~~~~~~~~~~~~~
     459 |                                    ASM_ON, (unsigned long)~ASM_ON);
         |                                            ^~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/mediatek/mt8365/mt8365-dai-i2s.c:785:33: warning: unused variable 'mt8365_i2s_enum' [-Wunused-const-variable]
     785 | static SOC_ENUM_SINGLE_EXT_DECL(mt8365_i2s_enum, mt8365_i2s_hd_str);
         |                                 ^~~~~~~~~~~~~~~
   include/sound/soc.h:411:24: note: expanded from macro 'SOC_ENUM_SINGLE_EXT_DECL'
     411 |         const struct soc_enum name = SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(xtexts), xtexts)
         |                               ^~~~
   9 warnings generated.


vim +/mt8365_afe_hd_engen_enable +298 sound/soc/mediatek/mt8365/mt8365-afe-clk.c

04f09b11a08d4f Alexandre Mergnat 2024-06-19  297  
04f09b11a08d4f Alexandre Mergnat 2024-06-19 @298  int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1)
04f09b11a08d4f Alexandre Mergnat 2024-06-19  299  {
04f09b11a08d4f Alexandre Mergnat 2024-06-19  300  	if (apll1)
04f09b11a08d4f Alexandre Mergnat 2024-06-19  301  		regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE,
04f09b11a08d4f Alexandre Mergnat 2024-06-19  302  				   AFE_22M_PLL_EN, AFE_22M_PLL_EN);
04f09b11a08d4f Alexandre Mergnat 2024-06-19  303  	else
04f09b11a08d4f Alexandre Mergnat 2024-06-19  304  		regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE,
04f09b11a08d4f Alexandre Mergnat 2024-06-19  305  				   AFE_24M_PLL_EN, AFE_24M_PLL_EN);
04f09b11a08d4f Alexandre Mergnat 2024-06-19  306  
04f09b11a08d4f Alexandre Mergnat 2024-06-19  307  	return 0;
04f09b11a08d4f Alexandre Mergnat 2024-06-19  308  }
04f09b11a08d4f Alexandre Mergnat 2024-06-19  309  
04f09b11a08d4f Alexandre Mergnat 2024-06-19 @310  int mt8365_afe_hd_engen_disable(struct mtk_base_afe *afe, bool apll1)
04f09b11a08d4f Alexandre Mergnat 2024-06-19  311  {
04f09b11a08d4f Alexandre Mergnat 2024-06-19  312  	if (apll1)
04f09b11a08d4f Alexandre Mergnat 2024-06-19  313  		regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE,
04f09b11a08d4f Alexandre Mergnat 2024-06-19 @314  				   AFE_22M_PLL_EN, ~AFE_22M_PLL_EN);
04f09b11a08d4f Alexandre Mergnat 2024-06-19  315  	else
04f09b11a08d4f Alexandre Mergnat 2024-06-19  316  		regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE,
04f09b11a08d4f Alexandre Mergnat 2024-06-19  317  				   AFE_24M_PLL_EN, ~AFE_24M_PLL_EN);
04f09b11a08d4f Alexandre Mergnat 2024-06-19  318  
04f09b11a08d4f Alexandre Mergnat 2024-06-19  319  	return 0;
04f09b11a08d4f Alexandre Mergnat 2024-06-19  320  }
04f09b11a08d4f Alexandre Mergnat 2024-06-19  321  

:::::: The code at line 298 was first introduced by commit
:::::: 04f09b11a08d4fc785f0cbea3ea1dfa20bb9df2a ASoC: mediatek: mt8365: Add audio clock control support

:::::: TO: Alexandre Mergnat <amergnat@baylibre.com>
:::::: CC: Mark Brown <broonie@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-06-22  4:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202406221249.REEiRekU-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=amergnat@baylibre.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=broonie@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox