Re: About TRB_TO_EP_INDEX() macro using

2013-08-06 Thread 'gre...@linuxfoundation.org'
On Tue, Aug 06, 2013 at 08:59:32AM +, Du, ChangbinX wrote: > > On Mon, Aug 05, 2013 at 08:07:25AM +, Du, ChangbinX wrote: > > > Recently when I check xHCI code, find that some functions try to get EP > > > index > > > from a Command Completion Event TRB via TRB_TO_EP_INDEX() macro. > > > >

RE: About TRB_TO_EP_INDEX() macro using

2013-08-06 Thread Du, ChangbinX
> On Mon, Aug 05, 2013 at 08:07:25AM +, Du, ChangbinX wrote: > > Recently when I check xHCI code, find that some functions try to get EP > > index > > from a Command Completion Event TRB via TRB_TO_EP_INDEX() macro. > > > > This is totally wrong. The macro definition is: > > > > #define TR

Re: About TRB_TO_EP_INDEX() macro using

2013-08-05 Thread gre...@linuxfoundation.org
On Mon, Aug 05, 2013 at 08:07:25AM +, Du, ChangbinX wrote: > Recently when I check xHCI code, find that some functions try to get EP index > from a Command Completion Event TRB via TRB_TO_EP_INDEX() macro. > > This is totally wrong. The macro definition is: > > #define TRB_TO_EP_INDEX(

About TRB_TO_EP_INDEX() macro using

2013-08-05 Thread Du, ChangbinX
Recently when I check xHCI code, find that some functions try to get EP index from a Command Completion Event TRB via TRB_TO_EP_INDEX() macro. This is totally wrong. The macro definition is: #define TRB_TO_EP_INDEX(p) p) & (0x1f << 16)) >> 16) - 1) TRB_TO_EP_INDEX only