From: Chen-Yu Yeh <chenyou910331@gmail.com>
To: Inochi Amaoto <inochiama@gmail.com>
Cc: Chen Wang <chen.wang@linux.dev>,
Hiago De Franco <hfranco@baylibre.com>,
sophgo@lists.linux.dev
Subject: Re: Milk-V Duo 256M: USB peripheral mode works on mainline, how should dr_mode be handled?
Date: Tue, 27 Oct 2026 15:36:26 +0800 [thread overview]
Message-ID: <20261027073626.975104-1-chenyou910331@gmail.com> (raw)
In-Reply-To: <at09avHegBuX6Evc@inochi.infowork>
(Resending as plain text, the list rejected the HTML version. Sorry for
the duplicate.)
Inochi Amaoto wrote:
> In fact, neither is prefered, the right way to use dual-role switch,
> but it seems like broken. If you want to fix this, feel free to do
> that. If not, ship the dts with the behavior from vendor.
Thanks. I'll look into getting the dual-role switch working on CV18xx,
so that one DTB can do both host and peripheral.
Could you tell me what you saw broken when you tried it? From reading
the code, my guess is the PHY: with dr_mode = "otg", usb_add_hcd() sets
the PHY to host mode at probe (ID override in the top syscon), and
nothing sets it back when the role switches to device. The PHY driver
also treats OTG mode as a no-op. I'll start testing from there.
And to make sure I read you correctly: if this can't be fixed in
reasonable time, do you mean I should send a dts patch that matches
the vendor image's behavior (peripheral by default)?
Thanks,
Chen-Yu
next prev parent reply other threads:[~2026-10-27 7:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-24 15:05 Milk-V Duo 256M: USB peripheral mode works on mainline, how should dr_mode be handled? Chen-Yu Yeh
2026-10-24 23:23 ` Inochi Amaoto
2026-10-27 7:36 ` Chen-Yu Yeh [this message]
2026-10-27 8:46 ` Inochi Amaoto
2026-10-27 16:43 ` 葉宸佑
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=20261027073626.975104-1-chenyou910331@gmail.com \
--to=chenyou910331@gmail.com \
--cc=chen.wang@linux.dev \
--cc=hfranco@baylibre.com \
--cc=inochiama@gmail.com \
--cc=sophgo@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.