From: Christian Eggers <ceggers@arri.de>
To: <barebox@lists.infradead.org>
Subject: usbotg: otg_set_mode() can only be called once
Date: Thu, 24 Aug 2023 13:30:46 +0200 [thread overview]
Message-ID: <4523384.LvFx2qVVIh@n95hx1g2> (raw)
Application:
1. Try to boot via fastboot (usb device)
2. Try to boot via usb drive (usb host)
Problem:
barebox@i.MX6ULL:/ setenv otg.mode=host
imx-usb 2184000.usb@2184000.of: USB EHCI 1.00
barebox@i.MX6ULL:/ setenv otg.mode=peripheral
Cannot set parameter otg.mode: Device or resource busy
Analysis:
The otgdev core maintains one `struct otg_mode` per device. The function
checks whether the current mode is equal to USB_DR_MODE_OTG. If not, it
returns -EBUSY. There is currently no way to reset the current mode back to
USB_DR_MODE_OTG after it has been set to peripheral or host mode once.
next reply other threads:[~2023-08-24 11:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 11:30 Christian Eggers [this message]
2023-08-24 12:04 ` Christian Eggers
2023-08-24 13:23 ` Ahmad Fatoum
2023-08-24 13:35 ` Christian Eggers
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=4523384.LvFx2qVVIh@n95hx1g2 \
--to=ceggers@arri.de \
--cc=barebox@lists.infradead.org \
/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