CC: [email protected] CC: [email protected] TO: Michael Zaidman <[email protected]> CC: Jiri Kosina <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d5ad8ec3cfb56a017de6a784835666475b4be349 commit: 6a82582d9fa438045191074856f47165334f2777 HID: ft260: add usb hid to i2c host bridge driver date: 5 months ago :::::: branch date: 8 hours ago :::::: commit date: 5 months ago compiler: powerpc-linux-gcc (GCC) 10.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> drivers/hid/hid-ft260.c:374:0: warning: syntax error [syntaxError] ^ vim +374 drivers/hid/hid-ft260.c 6a82582d9fa438 Michael Zaidman 2021-02-19 351 6a82582d9fa438 Michael Zaidman 2021-02-19 352 static int ft260_hid_output_report_check_status(struct ft260_device *dev, 6a82582d9fa438 Michael Zaidman 2021-02-19 353 u8 *data, int len) 6a82582d9fa438 Michael Zaidman 2021-02-19 354 { 6a82582d9fa438 Michael Zaidman 2021-02-19 355 int ret, usec, try = 3; 6a82582d9fa438 Michael Zaidman 2021-02-19 356 struct hid_device *hdev = dev->hdev; 6a82582d9fa438 Michael Zaidman 2021-02-19 357 6a82582d9fa438 Michael Zaidman 2021-02-19 358 ret = ft260_hid_output_report(hdev, data, len); 6a82582d9fa438 Michael Zaidman 2021-02-19 359 if (ret < 0) { 6a82582d9fa438 Michael Zaidman 2021-02-19 360 hid_err(hdev, "%s: failed to start transfer, ret %d\n", 6a82582d9fa438 Michael Zaidman 2021-02-19 361 __func__, ret); 6a82582d9fa438 Michael Zaidman 2021-02-19 362 ft260_i2c_reset(hdev); 6a82582d9fa438 Michael Zaidman 2021-02-19 363 return ret; 6a82582d9fa438 Michael Zaidman 2021-02-19 364 } 6a82582d9fa438 Michael Zaidman 2021-02-19 365 6a82582d9fa438 Michael Zaidman 2021-02-19 366 /* transfer time = 1 / clock(KHz) * 10 bits * bytes */ 6a82582d9fa438 Michael Zaidman 2021-02-19 367 usec = 10000 / dev->clock * len; 6a82582d9fa438 Michael Zaidman 2021-02-19 368 usleep_range(usec, usec + 100); 6a82582d9fa438 Michael Zaidman 2021-02-19 369 ft260_dbg("wait %d usec, len %d\n", usec, len); 6a82582d9fa438 Michael Zaidman 2021-02-19 370 do { 6a82582d9fa438 Michael Zaidman 2021-02-19 371 ret = ft260_xfer_status(dev); 6a82582d9fa438 Michael Zaidman 2021-02-19 372 if (ret != -EAGAIN) 6a82582d9fa438 Michael Zaidman 2021-02-19 373 break; 6a82582d9fa438 Michael Zaidman 2021-02-19 @374 } while (--try); 6a82582d9fa438 Michael Zaidman 2021-02-19 375 6a82582d9fa438 Michael Zaidman 2021-02-19 376 if (ret == 0 || ret == -EBUSY) 6a82582d9fa438 Michael Zaidman 2021-02-19 377 return 0; 6a82582d9fa438 Michael Zaidman 2021-02-19 378 6a82582d9fa438 Michael Zaidman 2021-02-19 379 ft260_i2c_reset(hdev); 6a82582d9fa438 Michael Zaidman 2021-02-19 380 return -EIO; 6a82582d9fa438 Michael Zaidman 2021-02-19 381 } 6a82582d9fa438 Michael Zaidman 2021-02-19 382 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
