clk: analogbits: Fix incorrect calculation of vco rate deltaIn wrpll_configure_for_rate() we try to determine the best PLLconfiguration for a target rate. However, in the loop where we tryvalues
clk: analogbits: Fix incorrect calculation of vco rate deltaIn wrpll_configure_for_rate() we try to determine the best PLLconfiguration for a target rate. However, in the loop where we tryvalues of R, we should compare the derived `vco` with `target_vco_rate`.However, we were in fact comparing it with `target_rate`, which isactually after Q shift. This is incorrect, and sometimes can result insuboptimal clock rates. Fix it.Fixes: 7b9487a9a5c4 ("clk: analogbits: add Wide-Range PLL library")Signed-off-by: Bo Gan <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Stephen Boyd <[email protected]>
show more ...
clk: analogbits: Allow building the library as a moduleThis library is only used by the SiFive PRCI driver. When that driver isbuilt as a module, it makes sense to build this library as a module t
clk: analogbits: Allow building the library as a moduleThis library is only used by the SiFive PRCI driver. When that driver isbuilt as a module, it makes sense to build this library as a module too.Signed-off-by: Samuel Holland <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Stephen Boyd <[email protected]>
kernel.h: split out panic and oops helperskernel.h is being used as a dump for all kinds of stuff for a long time.Here is the attempt to start cleaning it up by splitting out panic andoops helper
kernel.h: split out panic and oops helperskernel.h is being used as a dump for all kinds of stuff for a long time.Here is the attempt to start cleaning it up by splitting out panic andoops helpers.There are several purposes of doing this:- dropping dependency in bug.h- dropping a loop by moving out panic_notifier.h- unload kernel.h from something which has its own domainAt the same time convert users tree-wide to use new headers, although forthe time being include new header back to kernel.h to avoid twistedindirected includes for existing users.[[email protected]: thread_info.h needs limits.h][[email protected]: ia64 fix] Link: https://lkml.kernel.org/r/[email protected]Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Andy Shevchenko <[email protected]>Reviewed-by: Bjorn Andersson <[email protected]>Co-developed-by: Andrew Morton <[email protected]>Acked-by: Mike Rapoport <[email protected]>Acked-by: Corey Minyard <[email protected]>Acked-by: Christian Brauner <[email protected]>Acked-by: Arnd Bergmann <[email protected]>Acked-by: Kees Cook <[email protected]>Acked-by: Wei Liu <[email protected]>Acked-by: Rasmus Villemoes <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Acked-by: Sebastian Reichel <[email protected]>Acked-by: Luis Chamberlain <[email protected]>Acked-by: Stephen Boyd <[email protected]>Acked-by: Thomas Bogendoerfer <[email protected]>Acked-by: Helge Deller <[email protected]> # pariscSigned-off-by: Linus Torvalds <[email protected]>
clk: analogbits: fix doc warning in wrpll-cln28hpc.cFix the following make W=1 warning: drivers/clk/analogbits/wrpll-cln28hpc.c:227: warning: expecting prototype for wrpll_configure(). Prototype
clk: analogbits: fix doc warning in wrpll-cln28hpc.cFix the following make W=1 warning: drivers/clk/analogbits/wrpll-cln28hpc.c:227: warning: expecting prototype for wrpll_configure(). Prototype was for wrpll_configure_for_rate() insteadSigned-off-by: Yang Yingliang <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Stephen Boyd <[email protected]>
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
clk: analogbits: add Wide-Range PLL libraryAdd common library code for the Analog Bits Wide-Range PLL (WRPLL) IPblock, as implemented in TSMC CLN28HPC.There is no bus interface or register targe
clk: analogbits: add Wide-Range PLL libraryAdd common library code for the Analog Bits Wide-Range PLL (WRPLL) IPblock, as implemented in TSMC CLN28HPC.There is no bus interface or register target associated with this PLL.This library is intended to be used by drivers for IP blocks thatexpose registers connected to the PLL configuration and statussignals.Based on code originally written by Wesley Terpstra<[email protected]>:https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d456d221b2ee56bb60This version incorporates several changes requested by StephenBoyd <[email protected]>.Signed-off-by: Paul Walmsley <[email protected]>Signed-off-by: Paul Walmsley <[email protected]>Cc: Wesley Terpstra <[email protected]>Cc: Palmer Dabbelt <[email protected]>Cc: Michael Turquette <[email protected]>Cc: Stephen Boyd <[email protected]>Cc: Megan Wachs <[email protected]>Cc: [email protected]Cc: [email protected][[email protected]: Fix some const issues]Signed-off-by: Stephen Boyd <[email protected]>