Re: [PATCH/REBASED] usb: chipidea: Properly mark little endian descriptors

2016-09-14 Thread Peter Chen
On Tue, Sep 13, 2016 at 10:53:02PM -0700, Stephen Boyd wrote: > The DMA descriptors are little endian, and we do a pretty good > job of handling them with the proper le32_to_cpu() markings, but > we don't actually mark them as __le32. This means checkers like > sparse can't easily find new bugs.

Re: [PATCH/REBASED] usb: chipidea: Properly mark little endian descriptors

2016-09-14 Thread Peter Chen
On Tue, Sep 13, 2016 at 10:53:02PM -0700, Stephen Boyd wrote: > The DMA descriptors are little endian, and we do a pretty good > job of handling them with the proper le32_to_cpu() markings, but > we don't actually mark them as __le32. This means checkers like > sparse can't easily find new bugs.

[PATCH/REBASED] usb: chipidea: Properly mark little endian descriptors

2016-09-13 Thread Stephen Boyd
The DMA descriptors are little endian, and we do a pretty good job of handling them with the proper le32_to_cpu() markings, but we don't actually mark them as __le32. This means checkers like sparse can't easily find new bugs. Let's mark the members of structures properly and fix the few places

[PATCH/REBASED] usb: chipidea: Properly mark little endian descriptors

2016-09-13 Thread Stephen Boyd
The DMA descriptors are little endian, and we do a pretty good job of handling them with the proper le32_to_cpu() markings, but we don't actually mark them as __le32. This means checkers like sparse can't easily find new bugs. Let's mark the members of structures properly and fix the few places