From: Marek Vasut <marex@denx.de>
To: Mattijs Korpershoek <mkorpershoek@baylibre.com>,
Varadarajan Narayanan <quic_varada@quicinc.com>,
ni@konsulko.com, caleb.connolly@linaro.org,
neil.armstrong@linaro.org, u-boot@lists.denx.de
Subject: Re: [PATCH v2] usb: dwc3: core: Fix timeout check
Date: Tue, 21 Jan 2025 00:58:27 +0100 [thread overview]
Message-ID: <d39646fd-9c3f-4e5d-8d2b-e3d17feed604@denx.de> (raw)
In-Reply-To: <87frlj85qu.fsf@baylibre.com>
On 1/16/25 10:31 AM, Mattijs Korpershoek wrote:
> Hi Varadarajan,
>
> Thank you for the patch.
>
> On mer., janv. 15, 2025 at 11:50, Varadarajan Narayanan <quic_varada@quicinc.com> wrote:
>
>> dwc3_core_init loops 'timeout' times to check if the IP block is out
>> of reset using 'while (timeout--)'. If there is some issue and
>> the block doesn't come out of reset, the loop will run till
>> 'timeout' becomes zero and the post decrement operator would set
>> timeout to 0xffffffff. Though the IP block is not out reset, the
>> subsequent if check 'if !timeout' would fail as timeout is not
>> equal to zero and the function proceeds with the initialization.
>>
>> Use poll API instead to resolve this.
>>
>> Tested-By: Varadarajan Narayanan <quic_varada@quicinc.com>
>
> s/Tested-By/Tested-by
>
> See ./scripts/checkpatch.pl:
>
> λ ~/work/upstream/src/u-boot/ varadarajan/dwc3-timeout ./scripts/checkpatch.pl --u-boot --git HEAD^..HEAD
> WARNING: 'Tested-by:' is the preferred signature form
> #16:
> Tested-By: Varadarajan Narayanan <quic_varada@quicinc.com>
>
> total: 0 errors, 1 warnings, 0 checks, 33 lines checked
>
>> Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
>
> I think Marek can fix-up that when he applies, but if you send a v3 to
> correct this, feel free to add:
TB by author is a bit odd, so I dropped both TBs and kept RBs only.
next prev parent reply other threads:[~2025-01-21 0:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-15 6:20 [PATCH v2] usb: dwc3: core: Fix timeout check Varadarajan Narayanan
2025-01-16 9:31 ` Mattijs Korpershoek
2025-01-20 23:58 ` Marek Vasut [this message]
2025-01-17 7:03 ` Caleb Connolly
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=d39646fd-9c3f-4e5d-8d2b-e3d17feed604@denx.de \
--to=marex@denx.de \
--cc=caleb.connolly@linaro.org \
--cc=mkorpershoek@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=ni@konsulko.com \
--cc=quic_varada@quicinc.com \
--cc=u-boot@lists.denx.de \
/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