Re: [PATCH v2 2/3] phy: renesas: Add Renesas Multi-Protocol PHY driver for R-Car X5H

From: kernel test robot

Date: Sun Nov 29 2026 - 20:39:51 EST


Hi Marek,

kernel test robot noticed the following build warnings:

[auto build test WARNING on phy/next]
[also build test WARNING on geert-renesas-devel/next soc/for-next linus/master v7.4-rc4 next-20261127]
[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/Marek-Vasut/phy-renesas-Add-Renesas-Multi-Protocol-PHY-driver-for-R-Car-X5H/20261129-183704
base: https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git next
patch link: https://lore.kernel.org/r/20261129173739.282027-2-marek.vasut%2Brenesas%40mailbox.org
patch subject: [PATCH v2 2/3] phy: renesas: Add Renesas Multi-Protocol PHY driver for R-Car X5H
config: sparc-randconfig-1001-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130092534.wxcEPXfE-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130092534.wxcEPXfE-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261130092534.wxcEPXfE-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/phy/renesas/phy-rcar-gen5-mpphy.c:635:12: warning: 'mp_phy_resume' defined but not used [-Wunused-function]
635 | static int mp_phy_resume(struct device *dev)
| ^~~~~~~~~~~~~
>> drivers/phy/renesas/phy-rcar-gen5-mpphy.c:584:12: warning: 'mp_phy_suspend' defined but not used [-Wunused-function]
584 | static int mp_phy_suspend(struct device *dev)
| ^~~~~~~~~~~~~~


vim +/mp_phy_resume +635 drivers/phy/renesas/phy-rcar-gen5-mpphy.c

583
> 584 static int mp_phy_suspend(struct device *dev)
585 {
586 struct mp_phy_priv *priv = dev_get_drvdata(dev);
587 int i, ret;
588
589 for (i = 0; i < MPPHY_NUM_CHANNELS; i++)
590 priv->chan[i].initialized = false;
591
592 ret = reset_control_bulk_assert(ARRAY_SIZE(priv->reset_phy), priv->reset_phy);
593 if (ret)
594 return dev_err_probe(dev, ret, "Failed to assert PHY resets\n");
595
596 clk_bulk_disable_unprepare(priv->num_clks, priv->clk_phy);
597
598 return 0;
599 }
600
601 static int mp_phy_suspend_late(struct device *dev)
602 {
603 struct mp_phy_priv *priv = dev_get_drvdata(dev);
604 int ret;
605
606 ret = pm_runtime_force_suspend(dev);
607 if (ret)
608 return dev_err_probe(dev, ret, "Failed to force suspend\n");
609
610 ret = reset_control_assert(priv->reset_core);
611 if (ret)
612 return dev_err_probe(dev, ret, "Failed to assert PHY core reset\n");
613
614 clk_disable_unprepare(priv->clk_core);
615
616 return 0;
617 }
618
619 static int mp_phy_resume_early(struct device *dev)
620 {
621 struct mp_phy_priv *priv = dev_get_drvdata(dev);
622 int ret;
623
624 ret = clk_prepare_enable(priv->clk_core);
625 if (ret)
626 return dev_err_probe(dev, ret, "Failed to enable PHY core clock\n");
627
628 ret = reset_control_reset(priv->reset_core);
629 if (ret)
630 return dev_err_probe(dev, ret, "Failed to deassert PHY core reset\n");
631
632 return pm_runtime_force_resume(dev);
633 }
634
> 635 static int mp_phy_resume(struct device *dev)
636 {
637 struct mp_phy_priv *priv = dev_get_drvdata(dev);
638 int i, ret;
639
640 ret = clk_bulk_prepare_enable(priv->num_clks, priv->clk_phy);
641 if (ret)
642 return dev_err_probe(dev, ret, "Failed to enable PHY clocks\n");
643
644 ret = reset_control_bulk_reset(ARRAY_SIZE(priv->reset_phy), priv->reset_phy);
645 if (ret)
646 return dev_err_probe(dev, ret, "Failed to deassert PHY resets\n");
647
648 /* Reload configuration */
649 regmap_set_bits(priv->map, MPPHY_CMNCNT1, priv->cmncnt[0]);
650 regmap_write(priv->map, MPPHY_CMNCNT2, priv->cmncnt[1]);
651
652 for (i = 0; i < MPPHY_NUM_CHANNELS; i++) {
653 regmap_set_bits(priv->map, MPPHY_PXTEST(i), MPPHY_PXTEST_BIT);
654 regmap_write(priv->map, MPPHY_PXSRAMCNT(i), priv->sramcnt[i]);
655
656 if (priv->write_cntxt1 & BIT(i)) {
657 regmap_write(priv->map, MPPHY_CHAN_BASE(i) + 0x10c, 0xff0ff);
658 regmap_write(priv->map, MPPHY_PXCNTXT1(i), 0x180023);
659 }
660
661 regmap_clear_bits(priv->map, MPPHY_PXTEST(i), MPPHY_PXTEST_BIT);
662 }
663
664 regmap_clear_bits(priv->map, MPPHY_PCS0REG1, MPPHY_PCS0REG1_VAL);
665 /*
666 * Release only the PCIe PHYs here. Ethernet PCS released while its
667 * PHY is still not initialized blocks the PCIe40 rate change (link
668 * stuck at Gen1).
669 */
670 regmap_clear_bits(priv->map, MPPHY_PCS0REG5, priv->pcs0reg5_mask);
671
672 return 0;
673 }
674

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