From: kernel test robot <lkp@intel.com>
To: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH v7 09/14] ALSA: hda: cs35l41: Support Hibernation during Suspend
Date: Mon, 25 Jul 2022 23:34:04 +0800 [thread overview]
Message-ID: <202207252333.OLvVowZS-lkp@intel.com> (raw)
In-Reply-To: <20220622074653.179078-10-vitalyr@opensource.cirrus.com>
Hi Vitaly,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tiwai-sound/for-next]
[also build test ERROR on linus/master v5.19-rc8]
[cannot apply to next-20220725]
[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/Vitaly-Rodionov/ALSA-hda-cirrus-Add-initial-DSP-support-and-firmware-loading/20220622-155140
base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: i386-randconfig-a006-20220718 (https://download.01.org/0day-ci/archive/20220725/202207252333.OLvVowZS-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d74b88c69dc2644bd0dc5d64e2d7413a0d4040e5)
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/ec7c9477dc53653d56130d055d711dad168a1035
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Vitaly-Rodionov/ALSA-hda-cirrus-Add-initial-DSP-support-and-firmware-loading/20220622-155140
git checkout ec7c9477dc53653d56130d055d711dad168a1035
# 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=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> sound/pci/hda/cs35l41_hda.c:448:6: error: call to undeclared function 'cs35l41_enter_hibernate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (cs35l41_enter_hibernate(cs35l41->dev, cs35l41->regmap, cs35l41->hw_cfg.bst_type) < 0)
^
>> sound/pci/hda/cs35l41_hda.c:474:8: error: call to undeclared function 'cs35l41_exit_hibernate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret = cs35l41_exit_hibernate(cs35l41->dev, cs35l41->regmap);
^
2 errors generated.
vim +/cs35l41_enter_hibernate +448 sound/pci/hda/cs35l41_hda.c
438
439 static int cs35l41_runtime_suspend(struct device *dev)
440 {
441 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev);
442
443 dev_dbg(cs35l41->dev, "Suspend\n");
444
445 if (!cs35l41->firmware_running)
446 return 0;
447
> 448 if (cs35l41_enter_hibernate(cs35l41->dev, cs35l41->regmap, cs35l41->hw_cfg.bst_type) < 0)
449 return 0;
450
451 regcache_cache_only(cs35l41->regmap, true);
452 regcache_mark_dirty(cs35l41->regmap);
453
454 return 0;
455 }
456
457 static int cs35l41_runtime_resume(struct device *dev)
458 {
459 struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev);
460 int ret;
461
462 dev_dbg(cs35l41->dev, "Resume.\n");
463
464 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) {
465 dev_dbg(cs35l41->dev, "System does not support Resume\n");
466 return 0;
467 }
468
469 if (!cs35l41->firmware_running)
470 return 0;
471
472 regcache_cache_only(cs35l41->regmap, false);
473
> 474 ret = cs35l41_exit_hibernate(cs35l41->dev, cs35l41->regmap);
475 if (ret) {
476 regcache_cache_only(cs35l41->regmap, true);
477 return ret;
478 }
479
480 /* Test key needs to be unlocked to allow the OTP settings to re-apply */
481 cs35l41_test_key_unlock(cs35l41->dev, cs35l41->regmap);
482 ret = regcache_sync(cs35l41->regmap);
483 cs35l41_test_key_lock(cs35l41->dev, cs35l41->regmap);
484 if (ret) {
485 dev_err(cs35l41->dev, "Failed to restore register cache: %d\n", ret);
486 return ret;
487 }
488
489 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST)
490 cs35l41_init_boost(cs35l41->dev, cs35l41->regmap, &cs35l41->hw_cfg);
491
492 return 0;
493 }
494
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-07-25 15:34 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-22 7:46 [PATCH v7 00/14] ALSA: hda: cirrus: Add initial DSP support and firmware loading Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 01/14] ALSA: hda: hda_cs_dsp_ctl: Add Library to support CS_DSP ALSA controls Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 8:40 ` Amadeusz Sławiński
2022-06-22 13:10 ` Takashi Iwai
2022-06-22 13:10 ` Takashi Iwai
2022-06-22 13:34 ` Takashi Iwai
2022-06-22 13:34 ` Takashi Iwai
2022-06-22 7:46 ` [PATCH v7 02/14] ALSA: hda: hda_cs_dsp_ctl: Add apis to write the controls directly Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 03/14] ALSA: hda: cs35l41: Save codec object inside component struct Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 04/14] ALSA: hda: cs35l41: Add initial DSP support and firmware loading Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 05/14] ALSA: hda: cs35l41: Save Subsystem ID inside CS35L41 Driver Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 8:40 ` Amadeusz Sławiński
2022-06-22 7:46 ` [PATCH v7 06/14] ALSA: hda: cs35l41: Support reading subsystem id from ACPI Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 07/14] ALSA: hda: cs35l41: Support multiple load paths for firmware Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 8:40 ` Amadeusz Sławiński
2022-06-22 7:46 ` [PATCH v7 08/14] ALSA: hda: cs35l41: Support Speaker ID for laptops Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 09/14] ALSA: hda: cs35l41: Support Hibernation during Suspend Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-07-25 15:34 ` kernel test robot [this message]
2022-06-22 7:46 ` [PATCH v7 10/14] ALSA: hda: cs35l41: Read Speaker Calibration data from UEFI variables Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 11/14] ALSA: hda: hda_cs_dsp_ctl: Add fw id strings Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 12/14] ALSA: hda: cs35l41: Add defaulted values into dsp bypass config sequence Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 13/14] ALSA: hda: cs35l41: Support Firmware switching and reloading Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
2022-06-22 7:46 ` [PATCH v7 14/14] ALSA: hda: cs35l41: Add module parameter to control firmware load Vitaly Rodionov
2022-06-22 7:46 ` Vitaly Rodionov
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=202207252333.OLvVowZS-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
--cc=vitalyr@opensource.cirrus.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.