Skip to content

Commit c722839

Browse files
rmileckilinvjw
authored andcommitted
bcma: implement disabling PLLs
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 93ecbd6 commit c722839

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎drivers/bcma/core.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,13 @@ void bcma_core_pll_ctl(struct bcma_device *core, u32 req, u32 status, bool on)
104104
if (i)
105105
bcma_err(core->bus, "PLL enable timeout\n");
106106
} else {
107-
bcma_warn(core->bus, "Disabling PLL not supported yet!\n");
107+
/*
108+
* Mask the PLL but don't wait for it to be disabled. PLL may be
109+
* shared between cores and will be still up if there is another
110+
* core using it.
111+
*/
112+
bcma_mask32(core, BCMA_CLKCTLST, ~req);
113+
bcma_read32(core, BCMA_CLKCTLST);
108114
}
109115
}
110116
EXPORT_SYMBOL_GPL(bcma_core_pll_ctl);

0 commit comments

Comments
 (0)