From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: neil.armstrong@linaro.org, Christian Hewitt <christianshewitt@gmail.com>
Cc: u-boot@lists.denx.de, Marek Vasut <marex@denx.de>,
u-boot-amlogic@groups.io
Subject: Re: [PATCH 0/2] mach-meson: port dwc2_otg usage to CONFIG_DM_USB_GADGET=y
Date: Wed, 14 Dec 2022 15:45:12 +0100 [thread overview]
Message-ID: <87cz8mcadj.fsf@baylibre.com> (raw)
In-Reply-To: <55e46ad9-63cb-ff2c-d087-ab9af41d20ea@linaro.org>
Hi Neil,
On Thu, Nov 24, 2022 at 10:34, Neil Armstrong <neil.armstrong@linaro.org> wrote:
> Hi Mattijs,
>
> On 23/11/2022 16:42, Mattijs Korpershoek wrote:
>> While working on some USB bugs on the VIM3L board, we stumbled upon the fact
>> that mach-meson still uses legacy board_usb_*() functions instead of using DM [1]
>>
>> This series aim to switch the g12a based boards to use CONFIG_DM_USB_GADGET and
>> removes the board_usb_*() logic.
>>
>> * The first patch adds mode switching in the dwc3-meson-g12a glue driver whenever
>> the dwc2 otg driver is probed()/removed().
>>
>> * The second patch enables the config option and cleans up all board_usb_*().
>>
>> This has been mainly tested with khadas-vim3l_android_defconfig using fastboot:
>>
>> => fastboot usb 0
>>
>> => # hit Ctrl-c
>>
>> Other tests:
>> * ums 0 mmc 2 # can list / mount partitions from host
>> * usb start; usb storage # list usb thumb drive
>> * all defconfigs have been build tested
>>
>> [1] https://lore.kernel.org/u-boot/938b9439-9014-5ee8-1627-16af508bface@linaro.org/
>> Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
>
> I'll run some tests on other G12 boards but so far this looks very good, thanks !
I got my hands on an odroid-c4 board and I also tested:
=> fastboot usb 0
=> # hit Ctrl-c
# disconnection is ok
And tested "usb start" and could list a usb thumb drive.
Any other tests you would like me to do?
>
> Neil
>
>>
>> ---
>> Mattijs Korpershoek (2):
>> usb: dwc3-meson-g12a: force mode on child add/removal
>> ARM: meson: g12a: switch dwc2 otg to DM
>>
>> arch/arm/mach-meson/board-g12a.c | 127 ------------------------------
>> configs/bananapi-m5_defconfig | 1 +
>> configs/beelink-gsking-x_defconfig | 1 +
>> configs/beelink-gtking_defconfig | 1 +
>> configs/beelink-gtkingpro_defconfig | 1 +
>> configs/khadas-vim3_android_ab_defconfig | 1 +
>> configs/khadas-vim3_android_defconfig | 1 +
>> configs/khadas-vim3_defconfig | 1 +
>> configs/khadas-vim3l_android_ab_defconfig | 1 +
>> configs/khadas-vim3l_android_defconfig | 1 +
>> configs/khadas-vim3l_defconfig | 1 +
>> configs/odroid-c4_defconfig | 1 +
>> configs/odroid-hc4_defconfig | 1 +
>> configs/odroid-n2_defconfig | 1 +
>> configs/radxa-zero_defconfig | 1 +
>> configs/sei510_defconfig | 1 +
>> configs/sei610_defconfig | 1 +
>> configs/u200_defconfig | 1 +
>> drivers/usb/dwc3/dwc3-meson-g12a.c | 18 +++++
>> 19 files changed, 35 insertions(+), 127 deletions(-)
>> ---
>> base-commit: 7b70f68977578360d9c47bb25d6d1937075153b4
>> change-id: 20221024-meson-dm-usb-60e413696519
>>
>> Best regards,
next prev parent reply other threads:[~2022-12-14 14:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-23 15:42 [PATCH 0/2] mach-meson: port dwc2_otg usage to CONFIG_DM_USB_GADGET=y Mattijs Korpershoek
2022-11-23 15:42 ` [PATCH 1/2] usb: dwc3-meson-g12a: force mode on child add/removal Mattijs Korpershoek
2022-11-23 15:42 ` [PATCH 2/2] ARM: meson: g12a: switch dwc2 otg to DM Mattijs Korpershoek
2022-11-24 9:34 ` [PATCH 0/2] mach-meson: port dwc2_otg usage to CONFIG_DM_USB_GADGET=y Neil Armstrong
2022-12-14 14:45 ` Mattijs Korpershoek [this message]
2022-12-14 14:49 ` neil.armstrong
2023-01-10 11:01 ` Mattijs Korpershoek
2023-01-10 14:25 ` neil.armstrong
2023-01-17 8:27 ` Neil Armstrong
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=87cz8mcadj.fsf@baylibre.com \
--to=mkorpershoek@baylibre.com \
--cc=christianshewitt@gmail.com \
--cc=marex@denx.de \
--cc=neil.armstrong@linaro.org \
--cc=u-boot-amlogic@groups.io \
--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