[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAFEKEBVJ0OxWc78ik=0SpZ0+4qY8v3TghsghCiEz3BWq8JGgAQ@mail.gmail.com>
Date: Mon, 9 Jan 2017 16:13:33 +0800
From: Morgan Chang <mingdien.chang@...il.com>
To: Vahram Aharonyan <Vahram.Aharonyan@...opsys.com>,
"John.Youn@...opsys.com" <John.Youn@...opsys.com>
Cc: Robert Baldyga <r.baldyga@...sung.com>,
"balbi@...com" <balbi@...com>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"m.szyprowski@...sung.com" <m.szyprowski@...sung.com>,
"b.zolnierkie@...sung.com" <b.zolnierkie@...sung.com>
Subject: Re: [PATCH v2 1/5] usb: dwc2: gadget: use ep->fifo_index in context
of FIFO registers
Hi, John
On Thu, Feb 4, 2016 at 8:25 PM, Vahram Aharonyan
<Vahram.Aharonyan@...opsys.com> wrote:
> On 2/3/2016 3:40 PM, Robert Baldyga wrote:
>
> Hi Robert,
>
> DTXFSTS register is linked with endpoint, not FIFO - it contains information about how much space is used in the FIFO assigned to the endpoint. Changing ep->index to ep->fifo_index will work, if FIFO number assigned to that endpoint coincides with ep->index. For example, TX FIFO #1 has been assigned to EP 1 In. If TX FIFO #2 was assigned to EP #1, then with this change DTXFSTS[2] will be used instead of DTXFSTS[1] for EP #1.
>
> Thanks,
> Vahram.
As mentioned by Vahram, DTXFSTS registers are indexed by endpoint
number, instead of FIFO number.
It should be reverted.
Powered by blists - more mailing lists