]> www.infradead.org Git - users/dwmw2/linux.git/commit
clk: socfpga: stratix10: fix rate caclulationg for cnt_clks
authorDinh Nguyen <dinguyen@kernel.org>
Wed, 14 Aug 2019 15:30:14 +0000 (10:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:30:21 +0000 (08:30 +0200)
commite9e5f8e96fe63dbf4b023e1d9ff7cd4fd5fd810e
treee11f1a66d9540f348fde621b8c2db9d6d6d88e90
parent328380940d3ab433ee3d60451cb6072cb041b76b
clk: socfpga: stratix10: fix rate caclulationg for cnt_clks

commit c7ec75ea4d5316518adc87224e3cff47192579e7 upstream.

Checking bypass_reg is incorrect for calculating the cnt_clk rates.
Instead we should be checking that there is a proper hardware register
that holds the clock divider.

Cc: stable@vger.kernel.org
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lkml.kernel.org/r/20190814153014.12962-1-dinguyen@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/socfpga/clk-periph-s10.c