From 11e571ff86122ea1d8074c5e162a2aedc9c27ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 7 Sep 2018 14:35:17 +0200 Subject: [PATCH] Add CONFIG_FW_LOADER_USER_HELPER(_FALLBACK)=y to imx_v6_v7_defconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Yes udev stopped checking firmware entries in sysfs but there are other helpers still doing so: I my case it is networkmanager which makes Bluetooth work after applying this patch on Variscite VarSOM. Without this patch it seems kernel tries three times to load firmware without success (at that time there is no rootfs yet): | Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2 | Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: request_firmware failed(errno -2) for ti-connectivity/TIInit_11.8.32.bts | Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: download firmware failed, retrying... | ... | Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2 | Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: request_firmware failed(errno -2) for ti-connectivity/TIInit_11.8.32.bts | Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: download firmware failed, retrying... | ... | Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2 | Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: request_firmware failed(errno -2) for ti-connectivity/TIInit_11.8.32.bts | Aug 24 13:34:24 imx6qdl-variscite-som kernel: Bluetooth: hci0: download firmware failed, retrying... With this patch: | Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2 | Aug 24 13:34:24 imx6qdl-variscite-som kernel: hci-ti serial0-0: Falling back to user helper | ... | Aug 24 13:34:34 imx6qdl-variscite-som NetworkManager[362]: [1535117674.5468] manager[0x17fd0d8]: monitoring kernel firmware directory '/lib/firmware'. | ... | Aug 24 13:34:47 imx6qdl-variscite-som kernel: Bluetooth: hci0: send command failed | Aug 24 13:34:47 imx6qdl-variscite-som kernel: Bluetooth: hci0: download firmware failed, retrying... | Aug 24 13:34:48 imx6qdl-variscite-som kernel: Bluetooth: hci0: change remote baud rate command in firmware It seems there is one failure on download but the firmware is reachable and it ends with succes: there is a working Bluetooth! Signed-off-by: Andreas Müller --- arch/arm/configs/imx_v6_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 8bee1f96867bf9..62ad715fea4d6d 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -91,6 +91,8 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y # CONFIG_STANDALONE is not set CONFIG_CMA_SIZE_MBYTES=64 +CONFIG_FW_LOADER_USER_HELPER=y +CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y CONFIG_IMX_WEIM=y CONFIG_CONNECTOR=y CONFIG_MTD=y