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

Commit 3522f6ae authored by Tianyi Gou's avatar Tianyi Gou
Browse files

msm: clock-8084: Make set rate go through usb hsic ahb clock



usb_hsic_ahb_clk_src has two branch clocks: gcc_usb_hsic_ahb_clk
and gcc_periph_noc_usb_hsic_ahb_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_usb_hsic_ahb_clk to 0 to allow clk_set_rate on this clock
to simplify the clock control.

Change-Id: I2f5a53e22856a6d7b7f1d72d79e686390dea8f2e
Signed-off-by: default avatarTianyi Gou <tgou@codeaurora.org>
parent 63f8778a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3275,9 +3275,10 @@ static struct branch_clk gcc_usb_hs_system_clk = {
	},
};

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