Skip to contentSkip to conversation

drivers/pci/controller/dwc/pci-imx6.c:1203: undefined reference to `dw_pcie_suspend_noirq'

PATCH kernel test robot 1 participant 1 message Jan 17, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0907e7fb35756464aa34c35d6abb02998418164b
commit: 08e27c9cdbfacf5df2e721b892a5365dae0d31c3 [8789/9563] PCI: imx6: Use DWC common suspend resume method
config: x86_64-buildonly-randconfig-004-20250117 (https://download.01.org/0day-ci/archive/20250117/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250117/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx_pcie_suspend_noirq':

>> drivers/pci/controller/dwc/pci-imx6.c:1203: undefined reference to `dw_pcie_suspend_noirq'
   ld: drivers/pci/controller/dwc/pci-imx6.o: in function `imx_pcie_resume_noirq':
>> drivers/pci/controller/dwc/pci-imx6.c:1233: undefined reference to `dw_pcie_resume_noirq'

vim +1203 drivers/pci/controller/dwc/pci-imx6.c

1185
1186 static int imx_pcie_suspend_noirq(struct device *dev)
1187 {
1188 struct imx_pcie *imx_pcie = dev_get_drvdata(dev);
1189
1190 if (!(imx_pcie->drvdata->flags & IMX_PCIE_FLAG_SUPPORTS_SUSPEND))
1191 return 0;
1192
1193 imx_pcie_msi_save_restore(imx_pcie, true);
1194 if (imx_check_flag(imx_pcie, IMX_PCIE_FLAG_BROKEN_SUSPEND)) {
1195 /*
1196 * The minimum for a workaround would be to set PERST# and to
1197 * set the PCIE_TEST_PD flag. However, we can also disable the
1198 * clock which saves some power.
1199 */
1200 imx_pcie_assert_core_reset(imx_pcie);
1201 imx_pcie->drvdata->enable_ref_clk(imx_pcie, false);
1202 } else {

> 1203			return dw_pcie_suspend_noirq(imx_pcie->pci);
  1204		}
  1205	
  1206		return 0;
  1207	}
  1208	
  1209	static int imx_pcie_resume_noirq(struct device *dev)
  1210	{
  1211		int ret;
  1212		struct imx_pcie *imx_pcie = dev_get_drvdata(dev);
  1213	
  1214		if (!(imx_pcie->drvdata->flags & IMX_PCIE_FLAG_SUPPORTS_SUSPEND))
  1215			return 0;
  1216	
  1217		if (imx_check_flag(imx_pcie, IMX_PCIE_FLAG_BROKEN_SUSPEND)) {
  1218			ret = imx_pcie->drvdata->enable_ref_clk(imx_pcie, true);
  1219			if (ret)
  1220				return ret;
  1221			ret = imx_pcie_deassert_core_reset(imx_pcie);
  1222			if (ret)
  1223				return ret;
  1224			/*
  1225			 * Using PCIE_TEST_PD seems to disable MSI and powers down the
  1226			 * root complex. This is why we have to setup the rc again and
  1227			 * why we have to restore the MSI register.
  1228			 */
  1229			ret = dw_pcie_setup_rc(&imx_pcie->pci->pp);
  1230			if (ret)
  1231				return ret;
  1232		} else {
> 1233			ret = dw_pcie_resume_noirq(imx_pcie->pci);

1234 if (ret)
1235 return ret;
1236 }
1237 imx_pcie_msi_save_restore(imx_pcie, false);
1238
1239 return 0;
1240 }
1241

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