generic: 6.1, 6.6: replace Airoha EN8811H PHY driver with upstream
[openwrt/openwrt.git] / target / linux / gemini / patches-6.1 / 0016-usb-fotg210-List-different-variants.patch
1 From 407577548b2fcd41cc72ee05df1f05a430ed30a0 Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Wed, 18 Jan 2023 08:09:16 +0100
4 Subject: [PATCH 16/29] usb: fotg210: List different variants
5
6 There are at least two variants of the FOTG: FOTG200 and
7 FOTG210. Handle them in this driver and let's add
8 more quirks as we go along.
9
10 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
11 Link: https://lore.kernel.org/r/20230103-gemini-fotg210-usb-v2-2-100388af9810@linaro.org
12 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 ---
14 --- a/drivers/usb/fotg210/fotg210-core.c
15 +++ b/drivers/usb/fotg210/fotg210-core.c
16 @@ -127,7 +127,9 @@ static int fotg210_remove(struct platfor
17
18 #ifdef CONFIG_OF
19 static const struct of_device_id fotg210_of_match[] = {
20 + { .compatible = "faraday,fotg200" },
21 { .compatible = "faraday,fotg210" },
22 + /* TODO: can we also handle FUSB220? */
23 {},
24 };
25 MODULE_DEVICE_TABLE(of, fotg210_of_match);