From 3c3bba9b1091a9ff42a6217d172ece0f2f6031a3 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 11 Jun 2020 23:34:27 +0800 Subject: [PATCH] linux-phicomm-n1: Disable USB2 LPM. This works around several broken USB2 LPM implementations found in USB3 devices --- linux-phicomm-n1/PKGBUILD | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux-phicomm-n1/PKGBUILD b/linux-phicomm-n1/PKGBUILD index 3d206e2..2f4e1f2 100644 --- a/linux-phicomm-n1/PKGBUILD +++ b/linux-phicomm-n1/PKGBUILD @@ -49,6 +49,10 @@ prepare() { # self-maintained dtb for phicomm-n1 target_dts="meson-gxl-s905d-phicomm-n1.dts" cat "${srcdir}/${target_dts}" > "./arch/arm64/boot/dts/amlogic/${target_dts}" + + # Disable USB2 LPM. This works around several broken USB2 LPM implementations found in USB3 devices. + # https://isolated.site/2019/03/05/several-patches-im-using-for-running-linux-5-0-on-phicomm-n1/ + sed -i '/snps,dis_u2_susphy_quirk;/a usb2-lpm-disable;' arch/arm64/boot/dts/amlogic/meson-gxl.dtsi # add pkgrel to extraversion sed -ri "s|^(EXTRAVERSION =)(.*)|\1 \2-${pkgrel}|" Makefile