Open FlashBurnGitHub opened 5 years ago
@haklai @Mrvl-BenjaminHuang @josephyau
Are you about to review this PR?
The patch was forwarded to Gregory Clement for mainline integration. We will merge it once it is accepted by kernel team. http://lists.infradead.org/pipermail/linux-arm-kernel/2019-March/638623.html http://lists.infradead.org/pipermail/linux-arm-kernel/2019-March/638504.html
This fixes a problem that the cpu scaling is not working.
First one needs to first unset the parent clock, before setting the same old parent clock again. This solves the problem that the wrong TBG clock source was used for the cpu.
Also one needs to multiply the current cpu frequency with the used divider so that the right cpu frequency gets calculated when applying the dividers. This was need for a 600MHz final cpu frequency to work