diff options
-rw-r--r-- | recipes-kernel/linux/linux-at91-4.9.87/i2c-at91.conf | 3 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-at91_4.9.87.bb | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-at91-4.9.87/i2c-at91.conf b/recipes-kernel/linux/linux-at91-4.9.87/i2c-at91.conf new file mode 100644 index 0000000..a5d7ff4 --- /dev/null +++ b/recipes-kernel/linux/linux-at91-4.9.87/i2c-at91.conf @@ -0,0 +1,3 @@ +# For some reason, dynamic debug is turned on for module i2c_at91. +# Turn it off. +install i2c-at91 modprobe --ignore-install i2c_at91 ; echo 'module i2c_at91 -p' >/sys/kernel/debug/dynamic_debug/control diff --git a/recipes-kernel/linux/linux-at91_4.9.87.bb b/recipes-kernel/linux/linux-at91_4.9.87.bb index 24f1812..ecac868 100644 --- a/recipes-kernel/linux/linux-at91_4.9.87.bb +++ b/recipes-kernel/linux/linux-at91_4.9.87.bb @@ -50,6 +50,7 @@ COMMON_PATCHES = " \ file://0001-linux-4.9-quectel_qmi_wwan_support.patch \ file://0002-linux-4.9-telit_print_qmi_wwan.patch \ file://make-kernel-reproducible.patch \ + file://i2c-at91.conf \ " @@ -158,6 +159,9 @@ do_install_append() { cp -a ${STAGING_KERNEL_DIR}/include/dt-bindings ${D}${includedir}/linux/ install -d -m 0755 ${STAGING_DIR_TARGET}/${includedir}/linux cp -a ${STAGING_KERNEL_DIR}/include/dt-bindings ${STAGING_DIR_TARGET}/${includedir}/linux + install -d -m 0755 ${D}${sysconfdir}/modprobe.d + install -m 0644 ${WORKDIR}/i2c-at91.conf ${D}${sysconfdir}/modprobe.d } -FILES_kernel-dt-bindings-dev = "/usr/include/linux/dt-bindings"
\ No newline at end of file +FILES_kernel-dt-bindings-dev = "/usr/include/linux/dt-bindings" +FILES_kernel-module-i2c-at91 += "${sysconfdir}/modprobe.d"
\ No newline at end of file |