From 9a0d21907ad66e0461d4ed2c35b1486c50a4949d Mon Sep 17 00:00:00 2001 From: Felix Radensky Date: Mon, 25 Feb 2019 12:39:56 +0200 Subject: [PATCH] imx8mm-var-dart: Added udev USB rules Enabled autosuspend for USB hub on DART-MX8M-MINI carrier board to reduce power consumption --- recipes-core/udev/files/imx8mm-var-dart/usb-power.rules | 2 ++ recipes-core/udev/udev-rules-imx.bbappend | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 recipes-core/udev/files/imx8mm-var-dart/usb-power.rules diff --git a/recipes-core/udev/files/imx8mm-var-dart/usb-power.rules b/recipes-core/udev/files/imx8mm-var-dart/usb-power.rules new file mode 100755 index 00000000..964d070a --- /dev/null +++ b/recipes-core/udev/files/imx8mm-var-dart/usb-power.rules @@ -0,0 +1,2 @@ +# Microchip Technology USB2740 Hub +ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0424", ATTR{idProduct}=="2740", TEST=="power/control", ATTR{power/control}="auto" diff --git a/recipes-core/udev/udev-rules-imx.bbappend b/recipes-core/udev/udev-rules-imx.bbappend index a2ff5bee..f1f2f1fa 100644 --- a/recipes-core/udev/udev-rules-imx.bbappend +++ b/recipes-core/udev/udev-rules-imx.bbappend @@ -1,9 +1,15 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI_append_imx8m-var-dart = " file://usb-power.rules" +SRC_URI_append_imx8mm-var-dart = " file://usb-power.rules" do_install_append_imx8m-var-dart () { install -d ${D}${sysconfdir}/udev/rules.d install -m 0644 ${WORKDIR}/usb-power.rules ${D}${sysconfdir}/udev/rules.d/ } +do_install_append_imx8mm-var-dart () { + install -d ${D}${sysconfdir}/udev/rules.d + install -m 0644 ${WORKDIR}/usb-power.rules ${D}${sysconfdir}/udev/rules.d/ +} +