Bluetooth: hci_bcm: Handle deferred probing for the clock supply
authorChen-Yu Tsai <wens@csie.org>
Mon, 17 Dec 2018 04:04:39 +0000 (12:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:47:13 +0000 (19:47 +0100)
commit38f18b370546d266738dde7491dd466515491fe6
treea6d9b1ee00dd8a255ae03bb3ec14ecc9174b3516
parent1baca23ade65af672080550aac5da653e53f413c
Bluetooth: hci_bcm: Handle deferred probing for the clock supply

[ Upstream commit 28ac03b9ac3f784c2f048a910c8d0a7a87483b66 ]

On some systems that actually have the bluetooth controller wired up
with an extra clock signal, it's possible the bluetooth controller
probes before the clock provider. clk_get would return a defer probe
error, which was not handled by this driver.

Handle this properly, so that these systems can work reliably.

Tested-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/hci_bcm.c