]> git.baikalelectronics.ru Git - kernel.git/commit
bus: ti-sysc: Add separate functions for handling clocks
authorTony Lindgren <tony@atomide.com>
Thu, 21 Mar 2019 18:00:21 +0000 (11:00 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 1 Apr 2019 14:59:28 +0000 (07:59 -0700)
commit3ba54a7e860fd6243c5bdfdf4dd10deb197637c8
treede048d80029b8fcdb5de7dcd29d9d8c74a9328cd
parent40a75dd6d15b78d6ee371073e6fc5d422b834088
bus: ti-sysc: Add separate functions for handling clocks

At least McPDM module depends on an external optional clock to be
usable. To make handling of the McPDM clock easier in the following
patches, let's add separate functions for handling the main clocks
and the optional clocks.

Let's also add error handling to shut down already enabled clocks
while at it.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c