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

2016-09-13 Thread Peter Chen
On Wed, Sep 14, 2016 at 10:37:40AM +0800, Peter Chen wrote: > On Tue, Sep 13, 2016 at 04:06:31PM -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

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

2016-09-13 Thread Peter Chen
On Tue, Sep 13, 2016 at 04:06:31PM -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] 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