]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: owl: add "much needed" clk_prepare_enable()
authorAmit Singh Tomar <amittomer25@gmail.com>
Thu, 16 Apr 2020 20:11:57 +0000 (01:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 13:46:30 +0000 (15:46 +0200)
commit396d6e01f49c17ba2671b314278f40960e92aa34
treea01cc430aee6b04f692ab4d7b388f3c1cb037c45
parentbc12a3a0808116dca55dd94f1bb1773ca5b691a1
tty: serial: owl: add "much needed" clk_prepare_enable()

commit a9874c6ceea6 ("arm64: dts: actions: s700: Add Clock Management Unit")
breaks the UART on Cubieboard7-lite (based on S700 SoC), This is due to the
fact that generic clk routine clk_disable_unused() disables the gate clks,
and that in turns disables OWL UART (but UART driver never enables it). To
prove this theory, Andre suggested to use "clk_ignore_unused" in kernel
commnd line and it worked (Kernel happily lands into RAMFS world :)).

This commit fix this up by adding clk_prepare_enable().

Fixes: a9874c6ceea6 ("arm64: dts: actions: s700: Add Clock Management Unit")
Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/1587067917-1400-1-git-send-email-amittomer25@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/owl-uart.c