diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-12-10 18:42:44 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-01-22 22:51:02 +0100 |
commit | ad2b3bf310f7642bd9b5f30c6c7c17a343749f46 (patch) | |
tree | 00ac533efa23cb6d047acc8f6171c683de3a1737 /target/linux/sunxi/patches-4.14/115-musb-ignore-vbus-errors.patch | |
parent | dda475ca307581132593d29ee2796efb645975c7 (diff) | |
download | mtk-20170518-ad2b3bf310f7642bd9b5f30c6c7c17a343749f46.zip mtk-20170518-ad2b3bf310f7642bd9b5f30c6c7c17a343749f46.tar.gz mtk-20170518-ad2b3bf310f7642bd9b5f30c6c7c17a343749f46.tar.bz2 |
sunxi: Add support for kernel 4.14
This is based on the code for kernel 4.9, but a lot of 4.9 patches are
backports from more recent kernel version and can be removed now.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/sunxi/patches-4.14/115-musb-ignore-vbus-errors.patch')
-rw-r--r-- | target/linux/sunxi/patches-4.14/115-musb-ignore-vbus-errors.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.14/115-musb-ignore-vbus-errors.patch b/target/linux/sunxi/patches-4.14/115-musb-ignore-vbus-errors.patch new file mode 100644 index 0000000..ea9187e --- /dev/null +++ b/target/linux/sunxi/patches-4.14/115-musb-ignore-vbus-errors.patch @@ -0,0 +1,26 @@ +From fce20ac5d8c98f1a8ea5298051d9fa669e455f04 Mon Sep 17 00:00:00 2001 +From: Hans de Goede <hdegoede@redhat.com> +Date: Tue, 4 Aug 2015 23:22:45 +0200 +Subject: [PATCH] musb: sunxi: Ignore VBus errors in host-only mode + +For some unclear reason sometimes we get VBus errors in host-only mode, +even though we do not have any vbus-detection then. Ignore these. + +Signed-off-by: Hans de Goede <hdegoede@redhat.com> +--- + drivers/usb/musb/sunxi.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/drivers/usb/musb/sunxi.c ++++ b/drivers/usb/musb/sunxi.c +@@ -192,6 +192,10 @@ static irqreturn_t sunxi_musb_interrupt( + musb_writeb(musb->mregs, MUSB_FADDR, 0); + } + ++ /* Ignore Vbus errors when in host only mode */ ++ if (musb->port_mode == MUSB_PORT_MODE_HOST) ++ musb->int_usb &= ~MUSB_INTR_VBUSERROR; ++ + musb->int_tx = readw(musb->mregs + SUNXI_MUSB_INTRTX); + if (musb->int_tx) + writew(musb->int_tx, musb->mregs + SUNXI_MUSB_INTRTX); |