[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202410132130.a2tOwnm4-lkp@intel.com>
Date: Sun, 13 Oct 2024 21:41:54 +0800
From: kernel test robot <lkp@...el.com>
To: Mukesh Kumar Savaliya <quic_msavaliy@...cinc.com>,
andi.shyti@...nel.org, quic_bjorande@...cinc.com,
--cc=linux-arm-msm@...r.kernel.org, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org, konrad.dybcio@...aro.org,
quic_vdadhani@...cinc.com, vkoul@...nel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Mukesh Kumar Savaliya <quic_msavaliy@...cinc.com>
Subject: Re: [PATCH v2] i2c: i2c-qcom-geni: Serve transfer during early
resume stage
Hi Mukesh,
kernel test robot noticed the following build errors:
[auto build test ERROR on v6.12-rc2]
[also build test ERROR on linus/master]
[cannot apply to andi-shyti/i2c/i2c-host next-20241011]
[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/Mukesh-Kumar-Savaliya/i2c-i2c-qcom-geni-Serve-transfer-during-early-resume-stage/20241011-202013
base: v6.12-rc2
patch link: https://lore.kernel.org/r/20241011121757.2267336-1-quic_msavaliy%40quicinc.com
patch subject: [PATCH v2] i2c: i2c-qcom-geni: Serve transfer during early resume stage
config: i386-buildonly-randconfig-001-20241013 (https://download.01.org/0day-ci/archive/20241013/202410132130.a2tOwnm4-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241013/202410132130.a2tOwnm4-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410132130.a2tOwnm4-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/i2c/busses/i2c-qcom-geni.c:711:28: error: no member named 'usage_count' in 'struct dev_pm_info'
711 | atomic_read(&dev->power.usage_count));
| ~~~~~~~~~~ ^
include/linux/dev_printk.h:165:39: note: expanded from macro 'dev_dbg'
165 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:274:19: note: expanded from macro 'dynamic_dev_dbg'
274 | dev, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:250:59: note: expanded from macro '_dynamic_func_call'
250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:248:65: note: expanded from macro '_dynamic_func_call_cls'
248 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:224:15: note: expanded from macro '__dynamic_func_call_cls'
224 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
1 error generated.
vim +711 drivers/i2c/busses/i2c-qcom-geni.c
696
697 static int geni_i2c_xfer(struct i2c_adapter *adap,
698 struct i2c_msg msgs[],
699 int num)
700 {
701 struct geni_i2c_dev *gi2c = i2c_get_adapdata(adap);
702 struct device *dev = gi2c->se.dev;
703 int ret;
704
705 gi2c->err = 0;
706 reinit_completion(&gi2c->done);
707
708 /* Serve I2C transfer by forced resume whether Runtime PM is enbled or not */
709 if (!pm_runtime_enabled(dev) && gi2c->suspended) {
710 dev_dbg(dev, "Runtime PM is disabled hence force resume, pm_usage_count: %d\n",
> 711 atomic_read(&dev->power.usage_count));
712 ret = geni_i2c_force_resume(gi2c);
713 if (ret)
714 return ret;
715 } else {
716 ret = pm_runtime_get_sync(dev);
717 if (ret == -EACCES && gi2c->suspended) {
718 dev_dbg(dev, "pm_runtime_get_sync() failed-%d, force resume\n", ret);
719 ret = geni_i2c_force_resume(gi2c);
720 if (ret)
721 return ret;
722 }
723 }
724
725 qcom_geni_i2c_conf(gi2c);
726
727 if (gi2c->gpi_mode)
728 ret = geni_i2c_gpi_xfer(gi2c, msgs, num);
729 else
730 ret = geni_i2c_fifo_xfer(gi2c, msgs, num);
731
732 /* Does Opposite to Forced Resume when runtime PM was not enabled and served
733 * Transfer via forced resume.
734 */
735 if (!pm_runtime_enabled(dev) && !gi2c->suspended) {
736 pm_runtime_put_noidle(dev);
737 pm_runtime_set_suspended(dev);
738 /* Reset flag same as runtime suspend, next xfer PM can be enabled */
739 gi2c->suspended = 0;
740 } else {
741 pm_runtime_mark_last_busy(gi2c->se.dev);
742 pm_runtime_put_autosuspend(gi2c->se.dev);
743 }
744
745 gi2c->cur = NULL;
746 gi2c->err = 0;
747 return ret;
748 }
749
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists