From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [freescale-fslc:pr/639 14597/24603] sound/soc/fsl/fsl_xcvr.c:1364: undefined reference to `__udivdi3'
Date: Fri, 1 Sep 2023 02:58:35 +0800 [thread overview]
Message-ID: <202309010205.AHiAxLFd-lkp@intel.com> (raw)
tree: https://github.com/Freescale/linux-fslc pr/639
head: 857fbf7cebaba3b1ffccc558deee1d13ac0e11d7
commit: e8119d420e52befc919c1dbe609d467436382a13 [14597/24603] MLK-25951-2: ASoC: fsl_xcvr: Add soc data of i.MX93
config: i386-randconfig-002-20230831 (https://download.01.org/0day-ci/archive/20230901/202309010205.AHiAxLFd-lkp@intel.com/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/20230901/202309010205.AHiAxLFd-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/202309010205.AHiAxLFd-lkp@intel.com/
All errors (new ones prefixed by >>):
ld: warning: net/bpfilter/bpfilter_umh_blob.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
ld: warning: net/bpfilter/bpfilter_umh_blob.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
ld: sound/soc/fsl/fsl_xcvr.o: in function `fsl_xcvr_runtime_resume':
>> sound/soc/fsl/fsl_xcvr.c:1364: undefined reference to `__udivdi3'
vim +1364 sound/soc/fsl/fsl_xcvr.c
1342
1343 static __maybe_unused int fsl_xcvr_runtime_resume(struct device *dev)
1344 {
1345 struct fsl_xcvr *xcvr = dev_get_drvdata(dev);
1346 int ret;
1347 u64 rate, div;
1348
1349 ret = reset_control_assert(xcvr->reset);
1350 if (ret < 0) {
1351 dev_err(dev, "Failed to assert M0+ reset: %d\n", ret);
1352 return ret;
1353 }
1354
1355 ret = clk_prepare_enable(xcvr->ipg_clk);
1356 if (ret) {
1357 dev_err(dev, "failed to start IPG clock.\n");
1358 return ret;
1359 }
1360
1361 /* set clk div for xcvr ip internal use */
1362 if (xcvr->soc_data->spdif_only) {
1363 rate = clk_get_rate(xcvr->ipg_clk);
> 1364 div = rate / 1000000 - 1;
1365 ret = regmap_write(xcvr->regmap, FSL_XCVR_CLK_CTRL, div);
1366 if (ret < 0) {
1367 dev_err(dev, "Error while setting CLK_CTRL: %d\n", ret);
1368 return ret;
1369 }
1370 }
1371
1372 ret = clk_prepare_enable(xcvr->pll_ipg_clk);
1373 if (ret) {
1374 dev_err(dev, "failed to start PLL IPG clock.\n");
1375 goto stop_ipg_clk;
1376 }
1377
1378 ret = clk_prepare_enable(xcvr->phy_clk);
1379 if (ret) {
1380 dev_err(dev, "failed to start PHY clock: %d\n", ret);
1381 goto stop_pll_ipg_clk;
1382 }
1383
1384 ret = clk_prepare_enable(xcvr->spba_clk);
1385 if (ret) {
1386 dev_err(dev, "failed to start SPBA clock.\n");
1387 goto stop_phy_clk;
1388 }
1389
1390 regcache_cache_only(xcvr->regmap, false);
1391 regcache_mark_dirty(xcvr->regmap);
1392 ret = regcache_sync(xcvr->regmap);
1393
1394 if (ret) {
1395 dev_err(dev, "failed to sync regcache.\n");
1396 goto stop_spba_clk;
1397 }
1398
1399 if (xcvr->soc_data->spdif_only)
1400 return 0;
1401
1402 ret = reset_control_deassert(xcvr->reset);
1403 if (ret) {
1404 dev_err(dev, "failed to deassert M0+ reset.\n");
1405 goto stop_spba_clk;
1406 }
1407
1408 ret = fsl_xcvr_load_firmware(xcvr);
1409 if (ret) {
1410 dev_err(dev, "failed to load firmware.\n");
1411 goto stop_spba_clk;
1412 }
1413
1414 /* Release M0+ reset */
1415 ret = regmap_update_bits(xcvr->regmap, FSL_XCVR_EXT_CTRL,
1416 FSL_XCVR_EXT_CTRL_CORE_RESET, 0);
1417 if (ret < 0) {
1418 dev_err(dev, "M0+ core release failed: %d\n", ret);
1419 goto stop_spba_clk;
1420 }
1421
1422 /* Let M0+ core complete firmware initialization */
1423 msleep(50);
1424
1425 return 0;
1426
1427 stop_spba_clk:
1428 clk_disable_unprepare(xcvr->spba_clk);
1429 stop_phy_clk:
1430 clk_disable_unprepare(xcvr->phy_clk);
1431 stop_pll_ipg_clk:
1432 clk_disable_unprepare(xcvr->pll_ipg_clk);
1433 stop_ipg_clk:
1434 clk_disable_unprepare(xcvr->ipg_clk);
1435
1436 return ret;
1437 }
1438
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-08-31 18:59 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=202309010205.AHiAxLFd-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=otavio@ossystems.com.br \
/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.