mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
58acb1dd2c
This adds a bunch of patches for the v6.1 Gemini kernel. For v5.15 this was down to a single upstream patch, but for kernel v6.2 I reworked the USB code for FOTG210, so instead of carrying over the half-baked and incomplete patch from v5.15 I just backported all the v6.2 patches, 31 in total, as it creates full device USB mode for e.g. D-Link DNS-313. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
26 lines
960 B
Diff
26 lines
960 B
Diff
From 407577548b2fcd41cc72ee05df1f05a430ed30a0 Mon Sep 17 00:00:00 2001
|
|
From: Linus Walleij <linus.walleij@linaro.org>
|
|
Date: Wed, 18 Jan 2023 08:09:16 +0100
|
|
Subject: [PATCH 16/29] usb: fotg210: List different variants
|
|
|
|
There are at least two variants of the FOTG: FOTG200 and
|
|
FOTG210. Handle them in this driver and let's add
|
|
more quirks as we go along.
|
|
|
|
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|
|
Link: https://lore.kernel.org/r/20230103-gemini-fotg210-usb-v2-2-100388af9810@linaro.org
|
|
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
---
|
|
--- a/drivers/usb/fotg210/fotg210-core.c
|
|
+++ b/drivers/usb/fotg210/fotg210-core.c
|
|
@@ -127,7 +127,9 @@ static int fotg210_remove(struct platfor
|
|
|
|
#ifdef CONFIG_OF
|
|
static const struct of_device_id fotg210_of_match[] = {
|
|
+ { .compatible = "faraday,fotg200" },
|
|
{ .compatible = "faraday,fotg210" },
|
|
+ /* TODO: can we also handle FUSB220? */
|
|
{},
|
|
};
|
|
MODULE_DEVICE_TABLE(of, fotg210_of_match);
|