Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Marek Vasut <marek.vasut+renesas@mailbox.org>,
	linux-phy@lists.infradead.org
Cc: oe-kbuild-all@lists.linux.dev,
	Thanh Quan <thanh.quan.xn@renesas.com>,
	Phong Hoang <phong.hoang.wz@renesas.com>,
	Hai Pham <hai.pham.ud@renesas.com>,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Arnd Bergmann <arnd@arndb.de>,
	Biju Das <biju.das.jz@bp.renesas.com>,
	Conor Dooley <conor+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Magnus Damm <magnus.damm@gmail.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Tam Nguyen <tam.nguyen.xa@renesas.com>,
	Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>,
	Vinh Nguyen <vinh.nguyen.xz@renesas.com>,
	Vinod Koul <vkoul@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2 2/3] phy: renesas: Add Renesas Multi-Protocol PHY driver for R-Car X5H
Date: Mon, 30 Nov 2026 09:38:42 +0800	[thread overview]
Message-ID: <20261130092534.wxcEPXfE-lkp@intel.com> (raw)
In-Reply-To: <20261129173739.282027-2-marek.vasut+renesas@mailbox.org>

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@intel.com/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@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/20261130092534.wxcEPXfE-lkp@intel.com/

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

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  parent reply	other threads:[~2026-11-30  1:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 17:37 [PATCH v2 1/3] dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H Marek Vasut
2026-11-29 17:37 ` [PATCH v2 2/3] phy: renesas: Add " Marek Vasut
2026-11-29 17:55   ` sashiko-bot
2026-11-30  1:05   ` kernel test robot
2026-11-30  1:38   ` kernel test robot [this message]
2026-11-29 17:37 ` [PATCH v2 3/3] phy: renesas: rcar-gen5-mpphy: Document how to obtain firmware Marek Vasut
2026-11-29 17:46   ` sashiko-bot
2026-11-29 17:51 ` [PATCH v2 1/3] dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H sashiko-bot

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=20261130092534.wxcEPXfE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=hai.pham.ud@renesas.com \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mani@kernel.org \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=neil.armstrong@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=phong.hoang.wz@renesas.com \
    --cc=robh@kernel.org \
    --cc=tam.nguyen.xa@renesas.com \
    --cc=thanh.quan.xn@renesas.com \
    --cc=tommaso.merciai.xr@bp.renesas.com \
    --cc=vinh.nguyen.xz@renesas.com \
    --cc=vkoul@kernel.org \
    --cc=yoshihiro.shimoda.uh@renesas.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox