From: sashiko-bot@kernel.org
To: "Sebastian Reichel" <sebastian.reichel@collabora.com>
Cc: olteanv@gmail.com, vkoul@kernel.org, neil.armstrong@linaro.org,
linux-phy@lists.infradead.org
Subject: Re: [PATCH v16 2/6] usb: dwc3: rockchip: introduce glue driver
Date: Thu, 24 Sep 2026 17:36:47 +0000 [thread overview]
Message-ID: <20260924173648.564561F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260924-b4-rockchip-dwc3-rockchip-glue-v16-2-126a2e9133c3@collabora.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] usb: dwc3: unconditional blocklist breaks USB fallback without rockchip glue
--
commit b1c2a157ba4928faa78118602b451577e3210786
Author: Sebastian Reichel <sebastian.reichel@collabora.com>
usb: dwc3: rockchip: introduce glue driver
This commit introduces Rockchip specific glue code for the Synopsys DWC3
USB driver. It currently handles things identically to the default glue.
> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> index fd5c2cd36c595..4b7132887a030 100644
> --- a/drivers/usb/dwc3/core.c
> +++ b/drivers/usb/dwc3/core.c
> @@ -2448,11 +2448,26 @@ int dwc3_core_probe(const struct dwc3_probe_data *data)
> }
> EXPORT_SYMBOL_GPL(dwc3_core_probe);
>
> +/*
> + * List of compatibles, which have "synopsys,dwc3" as a fallback
> + * compatible, but have a vendor specific glue driver that should
> + * be used instead of this one.
> + */
> +static const char *const dwc3_compatible_blocklist[] = {
> + "rockchip,rk3588-dwc3",
> + "rockchip,rk3576-dwc3",
> +};
> +
> static int dwc3_probe(struct platform_device *pdev)
> {
> struct dwc3_probe_data probe_data = {};
> struct resource *res;
> struct dwc3 *dwc;
> + int i;
> +
> + for (i = 0; i < ARRAY_SIZE(dwc3_compatible_blocklist); i++)
> + if (device_is_compatible(&pdev->dev, dwc3_compatible_blocklist[i]))
> + return -ENODEV;
[Severity: Medium]
Does this unconditional blocklist break the USB fallback mechanism when the
kernel is built without CONFIG_USB_DWC3_ROCKCHIP?
The device tree bindings for these boards specify snps,dwc3 as a fallback
so the generic driver can bind if the specialized Rockchip driver is
unavailable. By unconditionally blocklisting the Rockchip compatibles in
dwc3_probe(), the fallback mechanism is defeated.
If a user configures their kernel without the newly added
CONFIG_USB_DWC3_ROCKCHIP, will the device be rejected completely and leave
the system with no USB functionality?
Could these blocklist entries be conditionally compiled (for example, using
IS_ENABLED(CONFIG_USB_DWC3_ROCKCHIP)) so the generic driver can still serve
as a fallback when the glue driver is not built?
>
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> if (!res) {
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260924-b4-rockchip-dwc3-rockchip-glue-v16-0-126a2e9133c3@collabora.com?part=2
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2026-09-24 17:36 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-24 17:25 [PATCH v16 0/6] usb: dwc3: introduce Rockchip glue driver Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` [PATCH v16 1/6] phy: core: add notifier infrastructure Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:35 ` sashiko-bot
2026-09-26 7:47 ` Manivannan Sadhasivam
2026-09-26 7:47 ` Manivannan Sadhasivam
2026-09-26 7:47 ` Manivannan Sadhasivam
2026-10-03 9:04 ` Vinod Koul
2026-10-03 9:04 ` Vinod Koul
2026-10-03 9:04 ` Vinod Koul
2026-10-04 12:44 ` Sebastian Reichel
2026-10-04 12:44 ` Sebastian Reichel
2026-10-04 12:44 ` Sebastian Reichel
2026-10-05 8:30 ` Vinod Koul
2026-10-05 8:30 ` Vinod Koul
2026-10-05 8:30 ` Vinod Koul
2026-10-06 1:11 ` Sebastian Reichel
2026-10-06 1:11 ` Sebastian Reichel
2026-10-06 1:11 ` Sebastian Reichel
2026-09-24 17:25 ` [PATCH v16 2/6] usb: dwc3: rockchip: introduce glue driver Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:36 ` sashiko-bot [this message]
2026-09-24 17:25 ` [PATCH v16 3/6] usb: dwc3: core: add post PHY registration hook for platform glue Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` [PATCH v16 4/6] usb: dwc3: rockchip: support PHY reset notifications Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:38 ` sashiko-bot
2026-09-26 7:51 ` Manivannan Sadhasivam
2026-09-26 7:51 ` Manivannan Sadhasivam
2026-09-26 7:51 ` Manivannan Sadhasivam
2026-10-02 23:39 ` Thinh Nguyen
2026-10-02 23:39 ` Thinh Nguyen
2026-10-02 23:39 ` Thinh Nguyen
2026-09-24 17:25 ` [PATCH v16 5/6] usb: gadget: define stub for usb_udc_vbus_handler Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` [PATCH v16 6/6] usb: dwc3: rockchip: fix USB-C reconnect in gadget mode Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:25 ` Sebastian Reichel
2026-09-24 17:40 ` sashiko-bot
2026-09-27 12:02 ` Igor Paunovic
2026-09-27 12:02 ` Igor Paunovic
2026-09-27 12:02 ` Igor Paunovic
2026-10-02 22:57 ` Thinh Nguyen
2026-10-02 22:57 ` Thinh Nguyen
2026-10-02 22:57 ` Thinh Nguyen
2026-09-27 12:02 ` [PATCH v16 0/6] usb: dwc3: introduce Rockchip glue driver Igor Paunovic
2026-09-27 12:02 ` Igor Paunovic
2026-09-27 12:02 ` Igor Paunovic
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=20260924173648.564561F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sebastian.reichel@collabora.com \
--cc=vkoul@kernel.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 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.