From: kernel test robot <lkp@intel.com>
To: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v5 2/2] usb: misc: onboard_usb_dev: add Microchip usb5744 SMBus programming support
Date: Sun, 8 Sep 2024 01:05:59 +0800 [thread overview]
Message-ID: <202409080045.SSIeS90P-lkp@intel.com> (raw)
In-Reply-To: <1725620423-1758964-3-git-send-email-radhey.shyam.pandey@amd.com>
Hi Radhey,
kernel test robot noticed the following build warnings:
[auto build test WARNING on b831f83e40a24f07c8dcba5be408d93beedc820f]
url: https://github.com/intel-lab-lkp/linux/commits/Radhey-Shyam-Pandey/usb-misc-onboard_dev-extend-platform-data-to-add-power-on-delay-field/20240906-190218
base: b831f83e40a24f07c8dcba5be408d93beedc820f
patch link: https://lore.kernel.org/r/1725620423-1758964-3-git-send-email-radhey.shyam.pandey%40amd.com
patch subject: [PATCH v5 2/2] usb: misc: onboard_usb_dev: add Microchip usb5744 SMBus programming support
config: alpha-randconfig-r131-20240907 (https://download.01.org/0day-ci/archive/20240908/202409080045.SSIeS90P-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
reproduce: (https://download.01.org/0day-ci/archive/20240908/202409080045.SSIeS90P-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/202409080045.SSIeS90P-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/usb/misc/onboard_usb_dev.c: In function 'onboard_dev_5744_i2c_init':
>> drivers/usb/misc/onboard_usb_dev.c:347:1: warning: no return statement in function returning non-void [-Wreturn-type]
347 | }
| ^
vim +347 drivers/usb/misc/onboard_usb_dev.c
311
312 static int onboard_dev_5744_i2c_init(struct i2c_client *client)
313 {
314 #if IS_ENABLED(CONFIG_I2C)
315 struct device *dev = &client->dev;
316 int ret;
317
318 /*
319 * Set BYPASS_UDC_SUSPEND bit to ensure MCU is always enabled
320 * and ready to respond to SMBus runtime commands.
321 * The command writes 5 bytes to memory and single data byte in
322 * configuration register.
323 */
324 char wr_buf[7] = {USB5744_CREG_MEM_ADDR, 5,
325 USB5744_CREG_WRITE, 1,
326 USB5744_CREG_RUNTIMEFLAGS2,
327 USB5744_CREG_RUNTIMEFLAGS2_LSB,
328 USB5744_CREG_BYPASS_UDC_SUSPEND};
329
330 ret = i2c_smbus_write_block_data(client, 0, sizeof(wr_buf), wr_buf);
331 if (ret)
332 return dev_err_probe(dev, ret, "BYPASS_UDC_SUSPEND bit configuration failed\n");
333
334 ret = i2c_smbus_write_word_data(client, USB5744_CMD_CREG_ACCESS,
335 USB5744_CMD_CREG_ACCESS_LSB);
336 if (ret)
337 return dev_err_probe(dev, ret, "Configuration Register Access Command failed\n");
338
339 /* Send SMBus command to boot hub. */
340 ret = i2c_smbus_write_word_data(client, USB5744_CMD_ATTACH,
341 USB5744_CMD_ATTACH_LSB);
342 if (ret < 0)
343 return dev_err_probe(dev, ret, "USB Attach with SMBus command failed\n");
344
345 return ret;
346 #endif
> 347 }
348
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-09-07 17:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-06 11:00 [PATCH v5 0/2] usb: misc: onboard_usb_dev: add Microchip usb5744 SMBus support Radhey Shyam Pandey
2024-09-06 11:00 ` [PATCH v5 1/2] usb: misc: onboard_dev: extend platform data to add power on delay field Radhey Shyam Pandey
2024-09-06 11:00 ` [PATCH v5 2/2] usb: misc: onboard_usb_dev: add Microchip usb5744 SMBus programming support Radhey Shyam Pandey
2024-09-07 17:05 ` 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=202409080045.SSIeS90P-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=radhey.shyam.pandey@amd.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 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.