• Chen-Yu Tsai's avatar
    Bluetooth: hci_bcm: Use "txco" and "extclk" to get clock reference · 55dbfcd0
    Chen-Yu Tsai authored
    Originally the device tree binding only specified one clock reference,
    with the name "extclk". The driver simply retrieves the clock without
    bothering to specify a name.
    
    Since we added a second clock to the binding, we need to fetch the
    clocks by name now. First we try the new name "txco", then fall back
    to the old name "extclk", and finally try retrieving a clock without
    using any name, to cover any instances where a bad device tree or
    firmware worked by accident.
    
    In the last case, we should take care that we don't get the same
    clock twice when we add support for the "lpo" clock.
    Tested-by: default avatarOndrej Jirman <megous@megous.com>
    Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    55dbfcd0
hci_bcm.c 30.9 KB