Re: [PATCH 5/7] usb: isp1760: add support for isp1763
From: kernel test robot <hidden>
Date: 2021-05-06 16:51:06
Also in:
linux-usb, oe-kbuild-all
Hi Rui, I love your patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on robh/for-next v5.12 next-20210506] [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] url: https://github.com/0day-ci/linux/commits/Rui-Miguel-Silva/usb-isp1760-extend-support-for-isp1763/20210504-182126 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: x86_64-randconfig-s022-20210506 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty # https://github.com/0day-ci/linux/commit/e20d3193f1d1eef8bfdf1eb6a4001a916d4c463c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Rui-Miguel-Silva/usb-isp1760-extend-support-for-isp1763/20210504-182126 git checkout e20d3193f1d1eef8bfdf1eb6a4001a916d4c463c # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> sparse warnings: (new ones prefixed by >>) drivers/usb/isp1760/isp1760-hcd.c:300:32: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:321:23: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:397:38: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __le32 [usertype] @@ drivers/usb/isp1760/isp1760-hcd.c:397:38: sparse: expected unsigned int val drivers/usb/isp1760/isp1760-hcd.c:397:38: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:418:30: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __le32 [usertype] @@ drivers/usb/isp1760/isp1760-hcd.c:418:30: sparse: expected unsigned int val drivers/usb/isp1760/isp1760-hcd.c:418:30: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:487:20: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:487:20: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:487:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw0 @@ got unsigned int [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:487:18: sparse: expected restricted __dw [usertype] dw0 drivers/usb/isp1760/isp1760-hcd.c:487:18: sparse: got unsigned int [usertype] drivers/usb/isp1760/isp1760-hcd.c:488:20: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:488:20: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:488:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw1 @@ got unsigned int [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:488:18: sparse: expected restricted __dw [usertype] dw1 drivers/usb/isp1760/isp1760-hcd.c:488:18: sparse: got unsigned int [usertype] drivers/usb/isp1760/isp1760-hcd.c:489:20: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:489:20: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:489:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw2 @@ got unsigned int [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:489:18: sparse: expected restricted __dw [usertype] dw2 drivers/usb/isp1760/isp1760-hcd.c:489:18: sparse: got unsigned int [usertype] drivers/usb/isp1760/isp1760-hcd.c:490:20: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:490:20: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:490:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw3 @@ got unsigned int [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:490:18: sparse: expected restricted __dw [usertype] dw3 drivers/usb/isp1760/isp1760-hcd.c:490:18: sparse: got unsigned int [usertype] drivers/usb/isp1760/isp1760-hcd.c:491:20: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:491:20: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:491:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw4 @@ got unsigned int [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:491:18: sparse: expected restricted __dw [usertype] dw4 drivers/usb/isp1760/isp1760-hcd.c:491:18: sparse: got unsigned int [usertype] drivers/usb/isp1760/isp1760-hcd.c:492:20: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:492:20: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:492:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw5 @@ got unsigned int [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:492:18: sparse: expected restricted __dw [usertype] dw5 drivers/usb/isp1760/isp1760-hcd.c:492:18: sparse: got unsigned int [usertype] drivers/usb/isp1760/isp1760-hcd.c:493:20: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:493:20: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:493:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw6 @@ got unsigned int [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:493:18: sparse: expected restricted __dw [usertype] dw6 drivers/usb/isp1760/isp1760-hcd.c:493:18: sparse: got unsigned int [usertype] drivers/usb/isp1760/isp1760-hcd.c:494:20: sparse: sparse: cast to restricted __le32 drivers/usb/isp1760/isp1760-hcd.c:494:20: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:494:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw7 @@ got unsigned int [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:494:18: sparse: expected restricted __dw [usertype] dw7 drivers/usb/isp1760/isp1760-hcd.c:494:18: sparse: got unsigned int [usertype] drivers/usb/isp1760/isp1760-hcd.c:514:19: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:514:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw0 @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:514:17: sparse: expected restricted __dw [usertype] dw0 drivers/usb/isp1760/isp1760-hcd.c:514:17: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:515:19: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:515:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw1 @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:515:17: sparse: expected restricted __dw [usertype] dw1 drivers/usb/isp1760/isp1760-hcd.c:515:17: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:516:19: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:516:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw2 @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:516:17: sparse: expected restricted __dw [usertype] dw2 drivers/usb/isp1760/isp1760-hcd.c:516:17: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:517:19: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:517:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw3 @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:517:17: sparse: expected restricted __dw [usertype] dw3 drivers/usb/isp1760/isp1760-hcd.c:517:17: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:518:19: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:518:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw4 @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:518:17: sparse: expected restricted __dw [usertype] dw4 drivers/usb/isp1760/isp1760-hcd.c:518:17: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:519:19: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:519:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw5 @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:519:17: sparse: expected restricted __dw [usertype] dw5 drivers/usb/isp1760/isp1760-hcd.c:519:17: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:520:19: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:520:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw6 @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:520:17: sparse: expected restricted __dw [usertype] dw6 drivers/usb/isp1760/isp1760-hcd.c:520:17: sparse: got restricted __le32 [usertype] drivers/usb/isp1760/isp1760-hcd.c:521:19: sparse: sparse: cast from restricted __dw
quoted
drivers/usb/isp1760/isp1760-hcd.c:521:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw7 @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-hcd.c:521:17: sparse: expected restricted __dw [usertype] dw7
drivers/usb/isp1760/isp1760-hcd.c:521:17: sparse: got restricted __le32 [usertype]
drivers/usb/isp1760/isp1760-hcd.c:536:65: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int const [usertype] *[assigned] src @@ got restricted __dw * @@
drivers/usb/isp1760/isp1760-hcd.c:536:65: sparse: expected unsigned int const [usertype] *[assigned] src
drivers/usb/isp1760/isp1760-hcd.c:536:65: sparse: got restricted __dw *
drivers/usb/isp1760/isp1760-hcd.c:539:46: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int const [usertype] *[assigned] src @@ got restricted __dw * @@
drivers/usb/isp1760/isp1760-hcd.c:539:46: sparse: expected unsigned int const [usertype] *[assigned] src
drivers/usb/isp1760/isp1760-hcd.c:539:46: sparse: got restricted __dw *
drivers/usb/isp1760/isp1760-hcd.c:802:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw0 @@ got int @@
drivers/usb/isp1760/isp1760-hcd.c:802:18: sparse: expected restricted __dw [usertype] dw0
drivers/usb/isp1760/isp1760-hcd.c:802:18: sparse: got int
drivers/usb/isp1760/isp1760-hcd.c:803:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:803:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:803:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:804:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:804:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:804:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:805:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:805:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:805:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:808:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw1 @@ got unsigned int @@
drivers/usb/isp1760/isp1760-hcd.c:808:18: sparse: expected restricted __dw [usertype] dw1
drivers/usb/isp1760/isp1760-hcd.c:808:18: sparse: got unsigned int
drivers/usb/isp1760/isp1760-hcd.c:809:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:809:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:809:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:810:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:810:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:810:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:813:26: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:813:26: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:813:26: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:815:26: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:815:26: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:815:26: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:820:26: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:820:26: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:820:26: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:822:34: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:822:34: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:822:34: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:824:26: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:824:26: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:824:26: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:825:26: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:825:26: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:825:26: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:830:34: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:830:34: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:830:34: sparse: right side has type int
drivers/usb/isp1760/isp1760-hcd.c:835:26: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:835:26: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:835:26: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:838:34: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:838:34: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:838:34: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:842:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:842:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:842:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:843:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:843:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:843:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:846:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:846:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:846:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:847:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:847:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:847:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:850:34: sparse: sparse: invalid assignment: &=
drivers/usb/isp1760/isp1760-hcd.c:850:34: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:850:34: sparse: right side has type int
drivers/usb/isp1760/isp1760-hcd.c:852:34: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:852:34: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:852:34: sparse: right side has type int
drivers/usb/isp1760/isp1760-hcd.c:855:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:855:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:855:18: sparse: right side has type int
drivers/usb/isp1760/isp1760-hcd.c:857:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:857:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:857:18: sparse: right side has type int
drivers/usb/isp1760/isp1760-hcd.c:902:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw5 @@ got int @@
drivers/usb/isp1760/isp1760-hcd.c:902:26: sparse: expected restricted __dw [usertype] dw5
drivers/usb/isp1760/isp1760-hcd.c:902:26: sparse: got int
drivers/usb/isp1760/isp1760-hcd.c:908:18: sparse: sparse: invalid assignment: |=
drivers/usb/isp1760/isp1760-hcd.c:908:18: sparse: left side has type restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:908:18: sparse: right side has type unsigned int
drivers/usb/isp1760/isp1760-hcd.c:909:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __dw [usertype] dw4 @@ got unsigned int [assigned] [usertype] usof @@
drivers/usb/isp1760/isp1760-hcd.c:909:18: sparse: expected restricted __dw [usertype] dw4
drivers/usb/isp1760/isp1760-hcd.c:909:18: sparse: got unsigned int [assigned] [usertype] usof
drivers/usb/isp1760/isp1760-hcd.c:1241:13: sparse: sparse: bad assignment (>>=) to restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:1246:16: sparse: sparse: restricted __dw degrades to integer
drivers/usb/isp1760/isp1760-hcd.c:1251:33: sparse: sparse: restricted __dw degrades to integer
drivers/usb/isp1760/isp1760-hcd.c:1272:29: sparse: sparse: bad assignment (>>=) to restricted __dw
drivers/usb/isp1760/isp1760-hcd.c:1285:16: sparse: sparse: restricted __dw degrades to integer
drivers/usb/isp1760/isp1760-hcd.c:1286:24: sparse: sparse: restricted __dw degrades to integer
drivers/usb/isp1760/isp1760-hcd.c:1288:26: sparse: sparse: restricted __dw degrades to integer
drivers/usb/isp1760/isp1760-hcd.c:1303:17: sparse: sparse: restricted __dw degrades to integer
drivers/usb/isp1760/isp1760-hcd.c:1303:47: sparse: sparse: restricted __dw degrades to integer
drivers/usb/isp1760/isp1760-hcd.c:1309:14: sparse: sparse: restricted __dw degrades to integer
drivers/usb/isp1760/isp1760-hcd.c:1309:49: sparse: sparse: restricted __dw degrades to integer
vim +487 drivers/usb/isp1760/isp1760-hcd.c
478
479 static void isp1763_ptd_read(struct usb_hcd *hcd, u32 ptd_offset, u32 slot,
480 struct ptd *ptd)
481 {
482 u16 src_offset = ptd_offset + slot * sizeof(*ptd);
483 struct ptd le32_ptd;
484
485 isp1763_mem_read(hcd, src_offset, (u16 *)&le32_ptd, sizeof(le32_ptd));
486 /* Normalize the data obtained */
> 487 ptd->dw0 = le32_to_cpu(le32_ptd.dw0);
> 488 ptd->dw1 = le32_to_cpu(le32_ptd.dw1);
> 489 ptd->dw2 = le32_to_cpu(le32_ptd.dw2);
> 490 ptd->dw3 = le32_to_cpu(le32_ptd.dw3);
> 491 ptd->dw4 = le32_to_cpu(le32_ptd.dw4);
> 492 ptd->dw5 = le32_to_cpu(le32_ptd.dw5);
> 493 ptd->dw6 = le32_to_cpu(le32_ptd.dw6);
> 494 ptd->dw7 = le32_to_cpu(le32_ptd.dw7);
495 }
496
497 static void ptd_read(struct usb_hcd *hcd, u32 ptd_offset, u32 slot,
498 struct ptd *ptd)
499 {
500 struct isp1760_hcd *priv = hcd_to_priv(hcd);
501
502 if (!priv->is_isp1763)
503 return isp1760_ptd_read(hcd, ptd_offset, slot, ptd);
504
505 isp1763_ptd_read(hcd, ptd_offset, slot, ptd);
506 }
507
508 static void isp1763_ptd_write(struct usb_hcd *hcd, u32 ptd_offset, u32 slot,
509 struct ptd *cpu_ptd)
510 {
511 u16 dst_offset = ptd_offset + slot * sizeof(*cpu_ptd);
512 struct ptd ptd;
513
> 514 ptd.dw0 = cpu_to_le32(cpu_ptd->dw0);
> 515 ptd.dw1 = cpu_to_le32(cpu_ptd->dw1);
> 516 ptd.dw2 = cpu_to_le32(cpu_ptd->dw2);
> 517 ptd.dw3 = cpu_to_le32(cpu_ptd->dw3);
> 518 ptd.dw4 = cpu_to_le32(cpu_ptd->dw4);
> 519 ptd.dw5 = cpu_to_le32(cpu_ptd->dw5);
> 520 ptd.dw6 = cpu_to_le32(cpu_ptd->dw6);
> 521 ptd.dw7 = cpu_to_le32(cpu_ptd->dw7);
522
523 isp1763_mem_write(hcd, dst_offset, (u16 *)&ptd.dw0,
524 8 * sizeof(ptd.dw0));
525 }
526
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 39213 bytes