back-ported the driver. Bluetooth is now working on both boards
(bpi-m2-zero and nanoPi Air)
On Sunday, November 18, 2018 at 9:51:10 PM UTC-2, @lex wrote:
>
> Hi,
> I am trying to enable Bluetooth on bpi-m2-zero and nanopi-air on kernel
> 4.20.0-rc2 but i get kernel Tainted when rfkill-gpio is loaded.
> Can anyone pinpoint what is wrong with this and how to fix it?
>
> [ 224.360665] rfkill_gpio rfkill_bt: sunxi-bt device probe.
> [ 224.385774] rfkill_gpio rfkill_bt: sunxi-bt device registered.
> [ 224.385806] ------------[ cut here ]------------
> [ 224.385856] WARNING: CPU: 0 PID: 114 at drivers/clk/clk.c:888
> clk_core_enable+0x90/0xa4
> [ 224.385861] Enabling unprepared osc32k
> [ 224.385867] Modules linked in: rfkill_gpio(+) ov5640 v4l2_fwnode
> v4l2_common videodev sunxi_cir media mali(O) hci_uart btintel bluetooth
> ecdh_generic brcmfmac brcmutil cfg80211 rfkill g_serial ipv6
> [ 224.385918] CPU: 0 PID: 114 Comm: kworker/0:2 Tainted: G O
> 4.20.0-rc2-m2z-otg-gadget #5
> [ 224.385921] Hardware name: Allwinner sun8i Family
> [ 224.385951] Workqueue: events rfkill_sync_work [rfkill]
> [ 224.385990] [<c010e81c>] (unwind_backtrace) from [<c010b914>]
> (show_stack+0x10/0x14)
> [ 224.386007] [<c010b914>] (show_stack) from [<c085b18c>]
> (dump_stack+0x88/0x9c)
> [ 224.386022] [<c085b18c>] (dump_stack) from [<c011d264>]
> (__warn+0xdc/0xf4)
> [ 224.386033] [<c011d264>] (__warn) from [<c011d2c4>]
> (warn_slowpath_fmt+0x48/0x6c)
> [ 224.386046] [<c011d2c4>] (warn_slowpath_fmt) from [<c04dee44>]
> (clk_core_enable+0x90/0xa4)
> [ 224.386061] [<c04dee44>] (clk_core_enable) from [<c04dee70>]
> (clk_core_enable_lock+0x18/0x2c)
> [ 224.386084] [<c04dee70>] (clk_core_enable_lock) from [<bf25d294>]
> (rfkill_gpio_set_power+0x8c/0x90 [rfkill_gpio])
> [ 224.386135] [<bf25d294>] (rfkill_gpio_set_power [rfkill_gpio]) from
> [<bf086d20>] (rfkill_set_block+0x8c/0x134 [rfkill])
> [ 224.386157] [<bf086d20>] (rfkill_set_block [rfkill]) from [<bf086f64>]
> (rfkill_sync_work+0x34/0x40 [rfkill])
> [ 224.386175] [<bf086f64>] (rfkill_sync_work [rfkill]) from [<c0134370>]
> (process_one_work+0x204/0x418)
> [ 224.386186] [<c0134370>] (process_one_work) from [<c013518c>]
> (worker_thread+0x44/0x5c0)
> [ 224.386201] [<c013518c>] (worker_thread) from [<c0139d70>]
> (kthread+0x148/0x150)
> [ 224.386213] [<c0139d70>] (kthread) from [<c01010e8>]
> (ret_from_fork+0x14/0x2c)
> [ 224.386221] Exception stack(0xdeea1fb0 to 0xdeea1ff8)
> [ 224.386229] 1fa0: 00000000 00000000
> 00000000 00000000
> [ 224.386237] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> [ 224.386244] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> [ 224.386250] ---[ end trace f571ad4d980c1aff ]---
>
> DTS:
> rfkill_bt {
> compatible = "rfkill-gpio";
> pinctrl-names = "default";
> pinctrl-0 = <&bt_pwr_pin>;
> reset-gpios = <&pio 6 12 0>; // PG13 on nanopi
> clocks = <&osc32k>;
> name = "sunxi-bt";
> type = "bluetooth";
> };
>
> I have to manually load rfkill-gpio.
>
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.