* [PATCH] usb: misc: onboard_hub: sync compatibles with kernel
@ 2023-04-14 14:17 Ahmad Fatoum
2023-04-17 6:58 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2023-04-14 14:17 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
A couple more USB hub compatibles ave been added to the kernel in the
meantime, so let's import them.
While at it, make onboard_hub_match static. It's not used anywhere else.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/usb/misc/onboard_usb_hub.h | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h
index e90be47b6735..aca5f50eb0da 100644
--- a/drivers/usb/misc/onboard_usb_hub.h
+++ b/drivers/usb/misc/onboard_usb_hub.h
@@ -22,14 +22,31 @@ static const struct onboard_hub_pdata ti_tusb8041_data = {
.reset_us = 3000,
};
-const struct of_device_id onboard_hub_match[] = {
+static const struct onboard_hub_pdata genesys_gl850g_data = {
+ .reset_us = 3,
+};
+
+static const struct onboard_hub_pdata genesys_gl852g_data = {
+ .reset_us = 50,
+};
+
+static const struct onboard_hub_pdata vialab_vl817_data = {
+ .reset_us = 10,
+};
+
+static const struct of_device_id onboard_hub_match[] = {
{ .compatible = "usb424,2514", .data = µchip_usb424_data, },
+ { .compatible = "usb424,2517", .data = µchip_usb424_data, },
{ .compatible = "usb451,8140", .data = &ti_tusb8041_data, },
{ .compatible = "usb451,8142", .data = &ti_tusb8041_data, },
+ { .compatible = "usb5e3,608", .data = &genesys_gl850g_data, },
+ { .compatible = "usb5e3,610", .data = &genesys_gl852g_data, },
{ .compatible = "usbbda,411", .data = &realtek_rts5411_data, },
{ .compatible = "usbbda,5411", .data = &realtek_rts5411_data, },
{ .compatible = "usbbda,414", .data = &realtek_rts5411_data, },
{ .compatible = "usbbda,5414", .data = &realtek_rts5411_data, },
+ { .compatible = "usb2109,817", .data = &vialab_vl817_data, },
+ { .compatible = "usb2109,2817", .data = &vialab_vl817_data, },
{}
};
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: misc: onboard_hub: sync compatibles with kernel
2023-04-14 14:17 [PATCH] usb: misc: onboard_hub: sync compatibles with kernel Ahmad Fatoum
@ 2023-04-17 6:58 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-04-17 6:58 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Fri, Apr 14, 2023 at 04:17:03PM +0200, Ahmad Fatoum wrote:
> A couple more USB hub compatibles ave been added to the kernel in the
> meantime, so let's import them.
>
> While at it, make onboard_hub_match static. It's not used anywhere else.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> drivers/usb/misc/onboard_usb_hub.h | 19 ++++++++++++++++++-
> 1 file changed, 18 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
>
> diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h
> index e90be47b6735..aca5f50eb0da 100644
> --- a/drivers/usb/misc/onboard_usb_hub.h
> +++ b/drivers/usb/misc/onboard_usb_hub.h
> @@ -22,14 +22,31 @@ static const struct onboard_hub_pdata ti_tusb8041_data = {
> .reset_us = 3000,
> };
>
> -const struct of_device_id onboard_hub_match[] = {
> +static const struct onboard_hub_pdata genesys_gl850g_data = {
> + .reset_us = 3,
> +};
> +
> +static const struct onboard_hub_pdata genesys_gl852g_data = {
> + .reset_us = 50,
> +};
> +
> +static const struct onboard_hub_pdata vialab_vl817_data = {
> + .reset_us = 10,
> +};
> +
> +static const struct of_device_id onboard_hub_match[] = {
> { .compatible = "usb424,2514", .data = µchip_usb424_data, },
> + { .compatible = "usb424,2517", .data = µchip_usb424_data, },
> { .compatible = "usb451,8140", .data = &ti_tusb8041_data, },
> { .compatible = "usb451,8142", .data = &ti_tusb8041_data, },
> + { .compatible = "usb5e3,608", .data = &genesys_gl850g_data, },
> + { .compatible = "usb5e3,610", .data = &genesys_gl852g_data, },
> { .compatible = "usbbda,411", .data = &realtek_rts5411_data, },
> { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, },
> { .compatible = "usbbda,414", .data = &realtek_rts5411_data, },
> { .compatible = "usbbda,5414", .data = &realtek_rts5411_data, },
> + { .compatible = "usb2109,817", .data = &vialab_vl817_data, },
> + { .compatible = "usb2109,2817", .data = &vialab_vl817_data, },
> {}
> };
>
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-17 7:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-14 14:17 [PATCH] usb: misc: onboard_hub: sync compatibles with kernel Ahmad Fatoum
2023-04-17 6:58 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox