diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2019-01-26 13:36:49 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-01-26 21:46:32 +0100 |
commit | e44d1e17da089fdc7e7cb1cfa48334993e8aa427 (patch) | |
tree | 7c6a7addfd8fd99b05975faf6d2571e5b6de1584 /target/linux/gemini/patches-4.19/0015-usb-host-fotg2-add-device-tree-probing.patch | |
parent | c2bdd018a301662258ec745bf4da71d6d6193af1 (diff) | |
download | upstream-e44d1e17da089fdc7e7cb1cfa48334993e8aa427.tar.gz upstream-e44d1e17da089fdc7e7cb1cfa48334993e8aa427.tar.bz2 upstream-e44d1e17da089fdc7e7cb1cfa48334993e8aa427.zip |
gemini: Add v4.19 kernel patches
This is the remainder of kernel patches for the v4.19
kernel. A whole slew of the previous patch stack is now
upstream, so this mainly contains the stuff that was
added upstream between v4.19 and v5.0-rc1, and then
the USB FOTG201 patches from Hans.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'target/linux/gemini/patches-4.19/0015-usb-host-fotg2-add-device-tree-probing.patch')
-rw-r--r-- | target/linux/gemini/patches-4.19/0015-usb-host-fotg2-add-device-tree-probing.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-4.19/0015-usb-host-fotg2-add-device-tree-probing.patch b/target/linux/gemini/patches-4.19/0015-usb-host-fotg2-add-device-tree-probing.patch new file mode 100644 index 0000000000..5673352f14 --- /dev/null +++ b/target/linux/gemini/patches-4.19/0015-usb-host-fotg2-add-device-tree-probing.patch @@ -0,0 +1,48 @@ +From 8f45c69ba80a993a6dba2397825b27e11fa9dea7 Mon Sep 17 00:00:00 2001 +From: Hans Ulli Kroll <ulli.kroll@googlemail.com> +Date: Thu, 9 Feb 2017 15:20:49 +0100 +Subject: [PATCH 15/18] usb: host: fotg2: add device tree probing + +Add device tree probing to the fotg2 driver. + +Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com> +[Drop DMA mask coercion, drivers/of/platform.c does the job] +Signed-off-by: Linus Walleij <linus.walleij@linaro.org> +--- + drivers/usb/host/fotg210-hcd.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c +index 058ff82ea789..6e4b40cd5916 100644 +--- a/drivers/usb/host/fotg210-hcd.c ++++ b/drivers/usb/host/fotg210-hcd.c +@@ -10,6 +10,7 @@ + * Most of code borrowed from the Linux-3.7 EHCI driver + */ + #include <linux/module.h> ++#include <linux/of.h> + #include <linux/device.h> + #include <linux/dmapool.h> + #include <linux/kernel.h> +@@ -5672,9 +5673,18 @@ static int fotg210_hcd_remove(struct platform_device *pdev) + return 0; + } + ++#ifdef CONFIG_OF ++static const struct of_device_id fotg210_of_match[] = { ++ { .compatible = "faraday,fotg210" }, ++ {}, ++}; ++MODULE_DEVICE_TABLE(of, fotg210_of_match); ++#endif ++ + static struct platform_driver fotg210_hcd_driver = { + .driver = { + .name = "fotg210-hcd", ++ .of_match_table = of_match_ptr(fotg210_of_match), + }, + .probe = fotg210_hcd_probe, + .remove = fotg210_hcd_remove, +-- +2.19.2 + |