linux-phicomm-n1: Disable USB2 LPM. This works around several broken USB2 LPM implementations found in USB3 devices

This commit is contained in:
Justin 2020-06-11 23:34:27 +08:00
parent ee3fa034a4
commit 3c3bba9b10

View file

@ -50,6 +50,10 @@ prepare() {
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