All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pawel Laszczak via B4 Relay
	<devnull+pawell.cadence.com@kernel.org>,
	Peter Chen <peter.chen@kernel.org>,
	Roger Quadros <rogerq@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Bjorn Helgaas <helgaas@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pci@vger.kernel.org, Pawel Laszczak <pawell@cadence.com>
Subject: Re: [PATCH v3] usb: cdnsp: Add support for device-only configuration
Date: Thu, 14 May 2026 10:48:46 +0800	[thread overview]
Message-ID: <202605141023.18vWXyw3-lkp@intel.com> (raw)
In-Reply-To: <20260508-no_drd_config-v3-1-0614f5044721@cadence.com>

Hi Pawel,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 17c7841d09ee7d33557fd075562d9289b6018c90]

url:    https://github.com/intel-lab-lkp/linux/commits/Pawel-Laszczak-via-B4-Relay/usb-cdnsp-Add-support-for-device-only-configuration/20260513-191545
base:   17c7841d09ee7d33557fd075562d9289b6018c90
patch link:    https://lore.kernel.org/r/20260508-no_drd_config-v3-1-0614f5044721%40cadence.com
patch subject: [PATCH v3] usb: cdnsp: Add support for device-only configuration
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260514/202605141023.18vWXyw3-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605141023.18vWXyw3-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/202605141023.18vWXyw3-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/usb/cdns3/drd.c:187:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
     187 |         if (cdns->no_drd)
         |             ^~~~~~~~~~~~
   drivers/usb/cdns3/drd.c:209:9: note: uninitialized use occurs here
     209 |         return ret;
         |                ^~~
   drivers/usb/cdns3/drd.c:187:2: note: remove the 'if' if its condition is always false
     187 |         if (cdns->no_drd)
         |         ^~~~~~~~~~~~~~~~~
     188 |                 goto phy_set;
         |                 ~~~~~~~~~~~~
   drivers/usb/cdns3/drd.c:185:9: note: initialize the variable 'ret' to silence this warning
     185 |         int ret;
         |                ^
         |                 = 0
   1 warning generated.


vim +187 drivers/usb/cdns3/drd.c

   175	
   176	/**
   177	 * cdns_drd_host_on - start host.
   178	 * @cdns: Pointer to controller context structure.
   179	 *
   180	 * Returns 0 on success otherwise negative errno.
   181	 */
   182	int cdns_drd_host_on(struct cdns *cdns)
   183	{
   184		u32 val, ready_bit;
   185		int ret;
   186	
 > 187		if (cdns->no_drd)
   188			goto phy_set;
   189	
   190		/* Enable host mode. */
   191		writel(OTGCMD_HOST_BUS_REQ | OTGCMD_OTG_DIS,
   192		       &cdns->otg_regs->cmd);
   193	
   194		if (cdns->version == CDNSP_CONTROLLER_V2)
   195			ready_bit = OTGSTS_CDNSP_XHCI_READY;
   196		else
   197			ready_bit = OTGSTS_CDNS3_XHCI_READY;
   198	
   199		dev_dbg(cdns->dev, "Waiting till Host mode is turned on\n");
   200		ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val,
   201						val & ready_bit, 1, 100000);
   202	
   203		if (ret)
   204			dev_err(cdns->dev, "timeout waiting for xhci_ready\n");
   205	
   206	phy_set:
   207		phy_set_mode(cdns->usb2_phy, PHY_MODE_USB_HOST);
   208		phy_set_mode(cdns->usb3_phy, PHY_MODE_USB_HOST);
   209		return ret;
   210	}
   211	

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

      parent reply	other threads:[~2026-05-14  2:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-08 10:06 [PATCH v3] usb: cdnsp: Add support for device-only configuration Pawel Laszczak
2026-05-08 10:06 ` Pawel Laszczak via B4 Relay
2026-05-08 14:42 ` Bjorn Helgaas
2026-05-12  6:16   ` Pawel Laszczak
2026-05-08 20:21 ` sashiko-bot
2026-05-09  1:31 ` Peter Chen (CIX)
2026-05-14  2:48 ` kernel test robot [this message]

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=202605141023.18vWXyw3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devnull+pawell.cadence.com@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=helgaas@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pawell@cadence.com \
    --cc=peter.chen@kernel.org \
    --cc=rogerq@kernel.org \
    /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.