public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Markus Schneider-Pargmann" <msp@baylibre.com>
To: "Marek Vasut" <marek.vasut@mailbox.org>,
	"Markus Schneider-Pargmann (TI.com)" <msp@baylibre.com>,
	<u-boot@lists.denx.de>,
	"Mattijs Korpershoek" <mkorpershoek@kernel.org>
Cc: "Simon Glass" <sjg@chromium.org>, "Tom Rini" <trini@konsulko.com>,
	"Andrew Goodbody" <andrew.goodbody@linaro.org>,
	"Kory Maincent" <kory.maincent@bootlin.com>,
	"Svyatoslav Ryhel" <clamor95@gmail.com>,
	"Christian Marangi" <ansuelsmth@gmail.com>,
	"Dinesh Maniyam" <dinesh.maniyam@altera.com>,
	"Heiko Schocher" <hs@nabladev.com>,
	"Rasmus Villemoes" <ravi@prevas.dk>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"U-Boot" <u-boot-bounces@lists.denx.de>
Subject: Re: [PATCH v4 7/7] usb: musb-new: Add compatibles for ti,musb-am33xx
Date: Fri, 30 Jan 2026 10:05:35 +0100	[thread overview]
Message-ID: <DG1SYGA0ELMR.2398HVY4R18L@baylibre.com> (raw)
In-Reply-To: <25d52b97-52f4-4842-9aaa-10c5495a5ec8@mailbox.org>

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

Hi Marek,

On Tue Jan 27, 2026 at 10:15 PM CET, Marek Vasut wrote:
> On 1/27/26 12:03 PM, Markus Schneider-Pargmann (TI.com) wrote:
>
> [...]
>
>> +static int ti_musb_host_bind(struct udevice *dev)
>> +{
>> +	enum usb_dr_mode dr_mode = usb_get_dr_mode(dev_ofnode(dev));
>> +
>> +	if (dr_mode != USB_DR_MODE_HOST && dr_mode != USB_DR_MODE_OTG)
>> +		return -ENODEV;
>> +
>> +	return 0;
>> +}
>
> [...]
>
>>   #if CONFIG_IS_ENABLED(OF_CONTROL)
>> +static int ti_musb_peripheral_bind(struct udevice *dev)
>> +{
>> +	enum usb_dr_mode dr_mode = usb_get_dr_mode(dev_ofnode(dev));
>> +
>> +	if (dr_mode != USB_DR_MODE_PERIPHERAL)
>> +		return -ENODEV;
> How do you handle USB_DR_MODE_UNKNOWN , host or peripheral ?

Thanks for seeing this, I checked, USB_DR_MODE_UNKNOWN will result in
none of the drivers binding. That's the same behavior as the previous
wrapper:

	static int ti_musb_wrapper_bind(struct udevice *parent)
	{
		[...]
			switch (dr_mode) {
			case USB_DR_MODE_PERIPHERAL:
				[...]
				break;
			case USB_DR_MODE_HOST:
				[...]
				break;
			default:
				break;
			};
		}
		return 0;
	}

Thanks for reviewing the patches.

Best
Markus

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 289 bytes --]

  reply	other threads:[~2026-01-30  9:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-27 11:03 [PATCH v4 0/7] dm: core: Support same compatible in host/gadget musb drivers Markus Schneider-Pargmann (TI.com)
2026-01-27 11:03 ` [PATCH v4 1/7] dm: core: lists_bind_fdt: Remove unused variable Markus Schneider-Pargmann (TI.com)
2026-01-27 11:03 ` [PATCH v4 2/7] dm: core: lists_bind_fdt: Replace found variable Markus Schneider-Pargmann (TI.com)
2026-01-27 11:03 ` [PATCH v4 3/7] dm: core: Support multiple drivers with same compatibles Markus Schneider-Pargmann (TI.com)
2026-01-27 11:03 ` [PATCH v4 4/7] dm: core: lists_bind_fdt: Indent continuation debug log message Markus Schneider-Pargmann (TI)
2026-02-04  0:23   ` Simon Glass
2026-01-27 11:03 ` [PATCH v4 5/7] test: dm: Add compatible multimatch test Markus Schneider-Pargmann (TI.com)
2026-01-27 11:03 ` [PATCH v4 6/7] usb: musb-new: Relative ctrl_mod address parsing Markus Schneider-Pargmann (TI.com)
2026-01-27 21:15   ` Marek Vasut
2026-01-27 11:03 ` [PATCH v4 7/7] usb: musb-new: Add compatibles for ti,musb-am33xx Markus Schneider-Pargmann (TI.com)
2026-01-27 21:15   ` Marek Vasut
2026-01-30  9:05     ` Markus Schneider-Pargmann [this message]
2026-01-28 17:48 ` (subset) [PATCH v4 0/7] dm: core: Support same compatible in host/gadget musb drivers Tom Rini

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=DG1SYGA0ELMR.2398HVY4R18L@baylibre.com \
    --to=msp@baylibre.com \
    --cc=andrew.goodbody@linaro.org \
    --cc=ansuelsmth@gmail.com \
    --cc=clamor95@gmail.com \
    --cc=dinesh.maniyam@altera.com \
    --cc=hs@nabladev.com \
    --cc=kory.maincent@bootlin.com \
    --cc=marek.vasut@mailbox.org \
    --cc=mkorpershoek@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=ravi@prevas.dk \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot-bounces@lists.denx.de \
    --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