tree:
https://github.com/Xilinx/linux-xlnx master
head: 6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: 6ca1f4cd372fb97452dda4dfe6e79e285d604776 [324/326] usb: misc: usb5744: fix error
handling for reset-gpio
config: m68k-allmodconfig
(
https://download.01.org/0day-ci/archive/20220113/202201130345.WgSNJfhS-lk...)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/Xilinx/linux-xlnx/commit/6ca1f4cd372fb97452dda4dfe6e79...
git remote add xilinx-xlnx
https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout 6ca1f4cd372fb97452dda4dfe6e79e285d604776
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=m68k SHELL=/bin/bash drivers/usb/misc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/usb/misc/usb5744.c: In function 'usb5744_init_hw':
> drivers/usb/misc/usb5744.c:35:62: warning: format '%d'
expects argument of type 'int', but argument 4 has type 'long int'
[-Wformat=]
35 | "Failed to request reset
GPIO %d, errcode",
| ~^
| |
| int
| %ld
36 | PTR_ERR(data->reset_gpio));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long int
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_PANEL_SIMPLE
Depends on HAS_IOMEM && DRM && DRM_PANEL && OF &&
BACKLIGHT_CLASS_DEVICE && PM
Selected by
- DRM_XLNX_DSI && HAS_IOMEM && DRM_XLNX
vim +35 drivers/usb/misc/usb5744.c
25
26 static int usb5744_init_hw(struct device *dev, struct usb5744 *data)
27 {
28 data = devm_kzalloc(dev, sizeof(struct usb5744), GFP_KERNEL);
29 if (!data)
30 return -ENOMEM;
31
32 data->reset_gpio = devm_gpiod_get_optional(dev, "reset",
GPIOD_OUT_HIGH);
33 if (IS_ERR(data->reset_gpio)) {
34 dev_err_probe(dev, PTR_ERR(data->reset_gpio),
35 "Failed to request reset GPIO %d, errcode",
36 PTR_ERR(data->reset_gpio));
37 return PTR_ERR(data->reset_gpio);
38 }
39
40 if (data->reset_gpio) {
41 /* Toggle RESET_N to reset the hub. */
42 if (dev_is_platform(dev))
43 gpiod_set_value(data->reset_gpio, 0);
44 else
45 gpiod_set_value_cansleep(data->reset_gpio, 0);
46
47 /* Delay - Sleep for an approximate time 5 to 20 usecs */
48 usleep_range(5, 20);
49
50 if (dev_is_platform(dev))
51 gpiod_set_value(data->reset_gpio, 1);
52 else
53 gpiod_set_value_cansleep(data->reset_gpio, 1);
54
55 msleep(5);
56 }
57
58 return 0;
59 }
60
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org