U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Sam Protsenko <semen.protsenko@linaro.org>,
	Mattijs Korpershoek <mkorpershoek@kernel.org>
Cc: Tom Rini <trini@konsulko.com>, Marek Vasut <marex@denx.de>,
	Minkyu Kang <mk7.kang@samsung.com>,
	Minkyu Kang <promsoft@gmail.com>, Simon Glass <sjg@chromium.org>,
	Oliver Gaskell <Oliver.Gaskell@analog.com>,
	Greg Malysa <malysagreg@gmail.com>,
	Nathan Barrett-Morrison <nathan.morrison@timesys.com>,
	Jerome Forissier <jerome.forissier@linaro.org>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Roger Quadros <rogerq@kernel.org>,
	u-boot@lists.denx.de
Subject: Re: [PATCH 1/9] phy: samsung: Add Exynos USB DRD PHY driver
Date: Mon, 21 Jul 2025 11:26:37 +0200	[thread overview]
Message-ID: <87ikjllws2.fsf@kernel.org> (raw)
In-Reply-To: <CAPLW+4moDYL0Q9TjSuWbqOuLQV2KCCrrzR_02-YUhivWuvQ=SA@mail.gmail.com>

On Sun, Jul 20, 2025 at 14:57, Sam Protsenko <semen.protsenko@linaro.org> wrote:

> On Thu, Jul 17, 2025 at 1:58 AM Mattijs Korpershoek
> <mkorpershoek@kernel.org> wrote:
>>
>> Hi Sam,
>>
>> Thank you for the patch.
>>
>
> [snip]
>
>> > +
>> > +#define EXYNOS850_DRD_UTMI                   0x50
>> > +#define UTMI_FORCE_SLEEP                     BIT(0)
>> > +#define UTMI_FORCE_SUSPEND                   BIT(1)
>> > +#define UTMI_DM_PULLDOWN                     BIT(2)
>> > +#define UTMI_DP_PULLDOWN                     BIT(3)
>> > +#define UTMI_FORCE_BVALID                    BIT(4)
>> > +#define UTMI_FORCE_VBUSVALID                 BIT(5)
>>
>> Comparing with the linux driver using
>> commit cc52a697f87e ("phy: exynos5-usbdrd: support Exynos USBDRD 3.2 4nm controller")
>>
>> I notice that the defines are in reverse order (from 0 to 5 and linux
>> has from 5 to 0).
>>
>> Is there any particular reason for this?
>> I don't mind it too much but it makes diffing between linux and U-Boot a
>> bit harder.
>>
>> Anyway, I've compared this with the linux driver and it looks good to
>> me!
>>
>> Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
>>
>
> Thank for reviewing this, Mattijs! Yeah, I kinda flipped the register
> bits w.r.t. kernel's version, just because it looks better to me this
> way (easier to read when it's sorted properly). Due to the driver
> model API differences between kernel and U-Boot I had to rework the
> whole structure of the driver, and I only added Exynos850 support for
> now, so the difference between U-Boot and kernel versions is quite big
> as it is anyway, so I figured it's not a big deal to reorder things
> even more. Hope it's ok with you?

It's ok with me. I was just curious if there was any special reason for
re-ordering. I agree that it's easier to read with the sorting you have
applied.
I've noticed that only Exynos850 is supported for now. That's fine as
well in my opinion!

Feel free to pick this up through your tree.

  reply	other threads:[~2025-07-21  9:26 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-09 22:29 [PATCH 0/9] board: samsung: e850-96: Enable USB Sam Protsenko
2025-07-09 22:29 ` [PATCH 1/9] phy: samsung: Add Exynos USB DRD PHY driver Sam Protsenko
2025-07-17  6:58   ` Mattijs Korpershoek
2025-07-20 19:57     ` Sam Protsenko
2025-07-21  9:26       ` Mattijs Korpershoek [this message]
2025-07-22  4:30         ` Sam Protsenko
2025-07-22  7:42           ` Minkyu Kang
2025-07-22 19:21             ` Sam Protsenko
2025-07-24  9:44               ` Minkyu Kang
2025-07-24 19:16                 ` Sam Protsenko
2025-07-25  5:07                   ` Minkyu Kang
2025-07-09 22:29 ` [PATCH 2/9] usb: dwc3-generic: Add Exynos850 support Sam Protsenko
2025-07-17  6:59   ` Mattijs Korpershoek
2025-07-09 22:29 ` [PATCH 3/9] board: samsung: e850-96: Setup serial# env var Sam Protsenko
2025-07-09 22:29 ` [PATCH 4/9] board: samsung: e850-96: Add dfu_alt_info Sam Protsenko
2025-07-09 22:29 ` [PATCH 5/9] board: samsung: e850-96: Add Android partitions Sam Protsenko
2025-07-09 22:29 ` [PATCH 6/9] configs: e850-96: Increase malloc() pool size Sam Protsenko
2025-07-09 22:29 ` [PATCH 7/9] configs: e850-96: Enable USB gadget and fastboot Sam Protsenko
2025-07-09 22:29 ` [PATCH 8/9] board: samsung: e850-96: Enable EFI Capsule Update mechanism Sam Protsenko
2025-07-09 22:29 ` [PATCH 9/9] doc: samsung: Describe flashing process for E850-96 Sam Protsenko
2025-07-25  5:08 ` [PATCH 0/9] board: samsung: e850-96: Enable USB Minkyu Kang

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=87ikjllws2.fsf@kernel.org \
    --to=mkorpershoek@kernel.org \
    --cc=Oliver.Gaskell@analog.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jerome.forissier@linaro.org \
    --cc=malysagreg@gmail.com \
    --cc=marex@denx.de \
    --cc=mk7.kang@samsung.com \
    --cc=nathan.morrison@timesys.com \
    --cc=promsoft@gmail.com \
    --cc=rogerq@kernel.org \
    --cc=semen.protsenko@linaro.org \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.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