From: "Markus Schneider-Pargmann" <msp@baylibre.com>
To: "Kory Maincent" <kory.maincent@bootlin.com>,
"Markus Schneider-Pargmann (TI.com)" <msp@baylibre.com>
Cc: <u-boot@lists.denx.de>, "Marc Murphy" <marc.murphy@sancloud.com>,
"Tom Rini" <trini@konsulko.com>,
"Rasmus Villemoes" <ravi@prevas.dk>,
"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
"Romain Gantois" <romain.gantois@bootlin.com>,
"Parvathi Pudi" <parvathi@couthit.com>,
"Basharath Hussain Khaja" <basharath@couthit.com>,
"Paul Barker" <paul.barker@sancloud.com>
Subject: Re: [PATCH v2 6/7] am33xx: Support upstream devicetree binding
Date: Tue, 02 Dec 2025 16:50:03 +0100 [thread overview]
Message-ID: <DENULZHQKCD0.SD0HVKKGH4PE@baylibre.com> (raw)
In-Reply-To: <20251201141416.03333902@kmaincent-XPS-13-7390>
[-- Attachment #1: Type: text/plain, Size: 2204 bytes --]
Hi Kory,
On Mon Dec 1, 2025 at 2:14 PM CET, Kory Maincent wrote:
> On Fri, 28 Nov 2025 21:46:36 +0100
> "Markus Schneider-Pargmann (TI.com)" <msp@baylibre.com> wrote:
>
>> Support musb being probed by ti,musb-am33xx. The non-upstream DT probing
>> used a wrapper driver that probed ti-musb-peripheral and ti-musb-host.
>> This wrapper registered as UCLASS_MISC, which is why it is requested in
>> this board.c file.
>>
>> With the new devicetree the wrapper that registers as UCLASS_MISC is
>> gone, instead the UCLASS_USB and UCLASS_USB_GADGET_GENERIC have to be
>> requested.
>>
>> Also don't fail if the USB devices are not available.
>>
>> Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp@baylibre.com>
>> ---
>> arch/arm/mach-omap2/am33xx/board.c | 12 ++++++++----
>> 1 file changed, 8 insertions(+), 4 deletions(-)
>>
>> diff --git a/arch/arm/mach-omap2/am33xx/board.c
>> b/arch/arm/mach-omap2/am33xx/board.c index
>> d7db260513308257f142ea70d5d5c643afc920c9..4bfdb55b2dd5c66cd58bce360cf1c69fb7a00cd6
>> 100644 --- a/arch/arm/mach-omap2/am33xx/board.c +++
>> b/arch/arm/mach-omap2/am33xx/board.c @@ -266,12 +266,16 @@ int
>> arch_misc_init(void) struct udevice *dev;
>> int ret;
>>
>> - ret = uclass_first_device_err(UCLASS_MISC, &dev);
>> - if (ret)
>> - return ret;
>> + if (IS_ENABLED(CONFIG_OF_UPSTREAM)) {
>> + uclass_first_device_err(UCLASS_USB, &dev);
>> + ret = uclass_first_device_err(UCLASS_USB_GADGET_GENERIC,
>> &dev);
>> + } else {
>> + ret = uclass_first_device_err(UCLASS_MISC, &dev);
>> + }
>>
>> #if defined(CONFIG_DM_ETH) && defined(CONFIG_USB_ETHER)
>> - usb_ether_init();
>> + if (!ret)
>> + usb_ether_init();
>> #endif
>>
>> return 0;
>
> You are losing the error return value here.
Yes, on purpose. During my work on using the upstream devicetree I
didn't have a working USB yet but u-boot wouldn't start because
arch_misc_init failed. I don't see why u-boot shouldn't start a console
if something USB related is broken. That's why I did not return the USB
error code here.
Also if you do need USB for booting you notice it really quick.
Thanks for all your reviews.
Best
Markus
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 289 bytes --]
next prev parent reply other threads:[~2025-12-02 18:10 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 20:46 [PATCH v2 0/7] arm: am335x: Switch to upstream devicetree Markus Schneider-Pargmann (TI.com)
2025-11-28 20:46 ` [PATCH v2 1/7] arm: dts: am335x-evm: Add backlight to the panel Markus Schneider-Pargmann (TI.com)
2025-12-01 10:07 ` Kory Maincent
2025-11-28 20:46 ` [PATCH v2 2/7] configs: am335x_evm_defconfig: Enable panel Markus Schneider-Pargmann (TI.com)
2025-12-01 10:10 ` Kory Maincent
2025-11-28 20:46 ` [PATCH v2 3/7] include: configs: am335x_evm: Enable vidconsole Markus Schneider-Pargmann (TI.com)
2025-12-01 10:19 ` Kory Maincent
2025-11-28 20:46 ` [PATCH v2 4/7] arm: dts: am335x-*-u-boot: Add chosen tick-timer Markus Schneider-Pargmann (TI.com)
2025-12-01 10:22 ` Kory Maincent
2025-11-28 20:46 ` [PATCH v2 5/7] am33xx: Fix comment about config symbols Markus Schneider-Pargmann (TI.com)
2025-12-01 10:24 ` Kory Maincent
2025-11-28 20:46 ` [PATCH v2 6/7] am33xx: Support upstream devicetree binding Markus Schneider-Pargmann (TI.com)
2025-12-01 13:14 ` Kory Maincent
2025-12-02 15:50 ` Markus Schneider-Pargmann [this message]
2025-12-02 16:19 ` Kory Maincent
2025-11-28 20:46 ` [PATCH v2 7/7] configs: am335x_evm_defconfig: Switch to upstream devicetree Markus Schneider-Pargmann (TI.com)
2025-12-01 13:28 ` Kory Maincent
2025-12-01 16:17 ` Tom Rini
2025-12-02 16:00 ` Markus Schneider-Pargmann
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=DENULZHQKCD0.SD0HVKKGH4PE@baylibre.com \
--to=msp@baylibre.com \
--cc=basharath@couthit.com \
--cc=kory.maincent@bootlin.com \
--cc=marc.murphy@sancloud.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=parvathi@couthit.com \
--cc=paul.barker@sancloud.com \
--cc=ravi@prevas.dk \
--cc=romain.gantois@bootlin.com \
--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