Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45e6c452 authored by Tianyi Gou's avatar Tianyi Gou
Browse files

msm: clock-8084: Make set rate go through usb30 sec master clock



usb30_sec_master_clk_src has two branch clocks: gcc_usb30_sec_master_clk
and gcc_sys_noc_usb3_sec_axi_clk . Since these branch clocks are
controlled by the same client driver and need to be turned on and off
at the same time, just set the sibling field of gcc_usb30_sec_master_clk
to 0 to allow clk_set_rate on this clock to simplify the clock control.

Change-Id: I6db42f68ef3a89923aeb544809efbac7234b0ee5
Signed-off-by: default avatarTianyi Gou <tgou@codeaurora.org>
parent 8b91f443
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3227,9 +3227,10 @@ static struct branch_clk gcc_usb30_sleep_clk = {
	},
};

/* Set has_sibling to 0 to allow set rate on this branch clock */
static struct branch_clk gcc_usb30_sec_master_clk = {
	.cbcr_reg = USB30_SEC_MASTER_CBCR,
	.has_sibling = 1,
	.has_sibling = 0,
	.base = &virt_bases[GCC_BASE],
	.c = {
		.parent = &usb30_sec_master_clk_src.c,