From: kernel test robot <lkp@intel.com>
To: Rui Miguel Silva <rui.silva@linaro.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Sebastian Siewior <bigeasy@linutronix.de>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Rob Herring <robh+dt@kernel.org>
Cc: kbuild-all@lists.01.org, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org,
Rui Miguel Silva <rui.silva@linaro.org>
Subject: Re: [PATCH 5/7] usb: isp1760: add support for isp1763
Date: Fri, 7 May 2021 00:50:02 +0800 [thread overview]
Message-ID: <202105070028.XpLAB6uC-lkp@intel.com> (raw)
In-Reply-To: <20210504101910.18619-6-rui.silva@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 21836 bytes --]
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 <lkp@intel.com>
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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
>> 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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39213 bytes --]
next prev parent reply other threads:[~2021-05-06 16:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-04 10:19 [PATCH 0/7] usb: isp1760: extend support for isp1763 Rui Miguel Silva
2021-05-04 10:19 ` [PATCH 1/7] usb: isp1760: move to regmap for register access Rui Miguel Silva
2021-05-06 12:24 ` Laurent Pinchart
2021-05-06 13:39 ` Rui Miguel Silva
2021-05-06 13:45 ` Laurent Pinchart
2021-05-06 14:14 ` Rui Miguel Silva
2021-05-06 14:59 ` Laurent Pinchart
2021-05-06 15:59 ` Rui Miguel Silva
2021-05-04 10:19 ` [PATCH 2/7] usb: isp1760: remove platform data struct and code Rui Miguel Silva
2021-05-04 10:19 ` [PATCH 3/7] usb: isp1760: hcd: refactor mempool config and setup Rui Miguel Silva
2021-05-04 10:19 ` [PATCH 4/7] usb: isp1760: use dr_mode binding Rui Miguel Silva
2021-05-04 10:19 ` [PATCH 5/7] usb: isp1760: add support for isp1763 Rui Miguel Silva
2021-05-04 11:53 ` kernel test robot
2021-05-06 16:50 ` kernel test robot [this message]
2021-05-04 10:19 ` [PATCH 6/7] dt-bindings: usb: nxp,isp1760: add bindings Rui Miguel Silva
2021-05-04 13:55 ` Rob Herring
2021-05-04 10:19 ` [PATCH 7/7] usb: isp1763: add peripheral mode Rui Miguel Silva
2021-05-06 10:50 ` [PATCH 0/7] usb: isp1760: extend support for isp1763 Greg Kroah-Hartman
2021-05-06 12:25 ` Laurent Pinchart
2021-05-06 13:41 ` Rui Miguel Silva
2021-05-06 14:02 ` Greg Kroah-Hartman
2021-05-06 14:15 ` Rui Miguel Silva
2021-05-06 13:29 ` Rui Miguel Silva
2021-05-06 13:38 ` Laurent Pinchart
2021-05-06 13:53 ` Rui Miguel Silva
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=202105070028.XpLAB6uC-lkp@intel.com \
--to=lkp@intel.com \
--cc=bigeasy@linutronix.de \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@lists.01.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-usb@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=rui.silva@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).