From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>,
u-boot@lists.denx.de, Kevin Hilman <khilman@baylibre.com>,
Lukasz Majewski <lukma@denx.de>, Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH v4 1/4] cmd: bind: Add unbind command with driver filter
Date: Fri, 4 Aug 2023 19:46:38 +0200 [thread overview]
Message-ID: <20230804194638.21128f5e@xps-13> (raw)
In-Reply-To: <72e90424-fadc-7213-7af9-2aace3577ff9@denx.de>
Hi Marek,
marex@denx.de wrote on Fri, 4 Aug 2023 19:31:50 +0200:
> On 8/4/23 19:24, Miquel Raynal wrote:
>
> Hi,
>
> >>>>>>> exit not allowed from main input shell.
> >>>>>>> => unbind /ocp/usb@47400000/usb@47401000 usb_ether
> >>>>>>
> >>>>>> Does
> >>>>>> >>>> => unbind ethernet 0
> >>>>>>
> >>>>>> work ?
> >>>>>>
> >>>>>> If so, 1/4 in this series can be skipped altogether.
> >>>>>>
> >>>>>> You likely won't even need the rebinding of ti-musb-peripheral anymore.
> >>
> >> Did you test this yet ?
> >
> > Unfortunately it does not work. Indeed it would be much simpler than
> > using the node path. Any idea why?
>
> Since you provided literally zero information, no.
>
> Console log would be a good starting point.
Here it is, the unbind command itself does not complain has it seems to
catch the regular Ethernet controller (there is one in the SoC, but it
is not wired on the board). So the first time it does nothing, but the
second time it works as the USB gadget get dropped! And after the
second call, fastboot works without the bind call.
=> dm tree
misc 0 [ + ] ti-musb-wrapper | |-- usb@47400000
usb 0 [ + ] ti-musb-peripheral | | |-- usb@47401000
ethernet 1 [ + ] usb_ether | | | `-- usb_ether
bootdev 3 [ ] eth_bootdev | | | `-- usb_ether.bootdev
usb 0 [ ] ti-musb-host | | `-- usb@47401800
ethernet 0 [ + ] eth_cpsw | |-- ethernet@4a100000
bootdev 2 [ ] eth_bootdev | | `-- ethernet@4a100000.bootdev
=> unbind ethernet 0
=> dm tree
misc 0 [ + ] ti-musb-wrapper | |-- usb@47400000
usb 0 [ + ] ti-musb-peripheral | | |-- usb@47401000
ethernet 0 [ + ] usb_ether | | | `-- usb_ether
bootdev 2 [ ] eth_bootdev | | | `-- usb_ether.bootdev
usb 0 [ ] ti-musb-host | | `-- usb@47401800
=> unbind ethernet 0
=> dm tree
misc 0 [ + ] ti-musb-wrapper | |-- usb@47400000
usb 0 [ ] ti-musb-peripheral | | |-- usb@47401000
usb 0 [ ] ti-musb-host | | `-- usb@47401800
So actually the unbind works, but was not targeting the right
controller, because it's listed as the second Ethernet controller on
this board. Hence this actually works:
=> unbind ethernet 1
=> fastboot usb 0
\o/
Thanks,
Miquèl
next prev parent reply other threads:[~2023-08-04 17:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-02 12:46 [PATCH v4 1/4] cmd: bind: Add unbind command with driver filter Marek Vasut
2023-08-02 12:46 ` [PATCH v4 2/4] usb: gadget: ether: Inline functions used once Marek Vasut
2023-08-02 12:46 ` [PATCH v4 3/4] usb: gadget: ether: Move probe function above driver structure Marek Vasut
2023-08-02 12:46 ` [PATCH v4 4/4] usb: gadget: ether: Handle gadget driver registration in probe and remove Marek Vasut
2023-08-02 21:31 ` [PATCH v4 1/4] cmd: bind: Add unbind command with driver filter Simon Glass
2023-08-02 22:04 ` Marek Vasut
2023-08-04 7:00 ` Miquel Raynal
2023-08-04 14:42 ` Marek Vasut
2023-08-04 15:01 ` Tom Rini
2023-08-04 15:05 ` Marek Vasut
2023-08-04 15:12 ` Miquel Raynal
2023-08-04 15:40 ` Marek Vasut
2023-08-04 16:00 ` Miquel Raynal
2023-08-04 16:15 ` Tom Rini
2023-08-04 17:01 ` Miquel Raynal
2023-08-04 17:18 ` Marek Vasut
2023-08-04 17:20 ` Tom Rini
2023-08-04 18:01 ` Miquel Raynal
2023-08-04 18:51 ` Tom Rini
2023-08-04 19:38 ` Miquel Raynal
2023-08-04 16:37 ` Tom Rini
2023-08-04 17:04 ` Miquel Raynal
2023-08-04 17:19 ` Marek Vasut
2023-08-04 17:23 ` Tom Rini
2023-08-04 17:24 ` Miquel Raynal
2023-08-04 17:31 ` Marek Vasut
2023-08-04 17:46 ` Miquel Raynal [this message]
2023-08-04 17:54 ` Marek Vasut
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=20230804194638.21128f5e@xps-13 \
--to=miquel.raynal@bootlin.com \
--cc=khilman@baylibre.com \
--cc=lukma@denx.de \
--cc=marex@denx.de \
--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