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: llvm@lists.linux.dev, 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:05:01 +0800	[thread overview]
Message-ID: <20261130085824.jctLCHNP-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: s390-allmodconfig (https://download.01.org/0day-ci/archive/20261130/20261130085824.jctLCHNP-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 04597ff5c4eda9d66da39a536aa26a7bab2fb2dd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130085824.jctLCHNP-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/20261130085824.jctLCHNP-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/phy/renesas/phy-rcar-gen5-mpphy.c:455:13: warning: variable 'tx_ack' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
     455 |         } else if (priv->num_lanes[phy->id] == 8) {
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/phy/renesas/phy-rcar-gen5-mpphy.c:466:11: note: uninitialized use occurs here
     466 |         return !(tx_ack & BIT(9)) && !(rx_ack & BIT(1));
         |                  ^~~~~~
   drivers/phy/renesas/phy-rcar-gen5-mpphy.c:455:9: note: remove the 'if' if its condition is always true
     455 |         } else if (priv->num_lanes[phy->id] == 8) {
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/phy/renesas/phy-rcar-gen5-mpphy.c:445:20: note: initialize the variable 'tx_ack' to silence this warning
     445 |         u32 rx_ack, tx_ack;
         |                           ^
         |                            = 0
   drivers/phy/renesas/phy-rcar-gen5-mpphy.c:584:12: warning: unused function 'mp_phy_suspend' [-Wunused-function]
     584 | static int mp_phy_suspend(struct device *dev)
         |            ^~~~~~~~~~~~~~
   drivers/phy/renesas/phy-rcar-gen5-mpphy.c:635:12: warning: unused function 'mp_phy_resume' [-Wunused-function]
     635 | static int mp_phy_resume(struct device *dev)
         |            ^~~~~~~~~~~~~
   3 warnings generated.


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

   441	
   442	static int mp_phy_read_poll_pcie4(struct phy *phy)
   443	{
   444		struct mp_phy_priv *priv = phy_get_drvdata(phy);
   445		u32 rx_ack, tx_ack;
   446	
   447		if (priv->num_lanes[phy->id] == 2) {
   448			tx_ack = readl(priv->base + MPPHY_PXTXREQ(2 * phy->id));
   449			rx_ack = readl(priv->base + MPPHY_PXRXREQ1(2 * phy->id));
   450		} else if (priv->num_lanes[phy->id] == 4) {
   451			tx_ack = readl(priv->base + MPPHY_PXTXREQ(2 * phy->id)) &
   452				 readl(priv->base + MPPHY_PXTXREQ((2 * phy->id) + 1));
   453			rx_ack = readl(priv->base + MPPHY_PXRXREQ1(2 * phy->id)) &
   454				 readl(priv->base + MPPHY_PXRXREQ1((2 * phy->id) + 1));
 > 455		} else if (priv->num_lanes[phy->id] == 8) {
   456			tx_ack = readl(priv->base + MPPHY_PXTXREQ(0)) &
   457				 readl(priv->base + MPPHY_PXTXREQ(1)) &
   458				 readl(priv->base + MPPHY_PXTXREQ(2)) &
   459				 readl(priv->base + MPPHY_PXTXREQ(3));
   460			rx_ack = readl(priv->base + MPPHY_PXRXREQ1(0)) &
   461				 readl(priv->base + MPPHY_PXRXREQ1(1)) &
   462				 readl(priv->base + MPPHY_PXRXREQ1(2)) &
   463				 readl(priv->base + MPPHY_PXRXREQ1(3));
   464		}
   465	
   466		return !(tx_ack & BIT(9)) && !(rx_ack & BIT(1));
   467	}
   468	

-- 
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:05 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 [this message]
2026-11-30  1:38   ` kernel test robot
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=20261130085824.jctLCHNP-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=llvm@lists.linux.dev \
    --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