]> git.baikalelectronics.ru Git - kernel.git/commit
clk: renesas: mstp: ensure register writes complete
authorChris Brandt <chris.brandt@renesas.com>
Tue, 14 Feb 2017 16:08:05 +0000 (11:08 -0500)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 16 Feb 2017 18:36:05 +0000 (10:36 -0800)
commit0c430fbcd25a4109544400f7613cdea11b0318d7
tree0e008be6cd260a00e1d49f024345af0a1d4abfa9
parent21d3ed35bf10591567f713acce6d775df6724f20
clk: renesas: mstp: ensure register writes complete

When there is no status bit, it is possible for the clock enable/disable
operation to have not completed by the time the driver code resumes
execution. This is due to the fact that write operations are sometimes
queued and delayed internally. Doing a read ensures the write operations
has completed.

Fixes: 1bfa269efe9e ("ARM: shmobile: r7s72100: add essential clock nodes to dtsi")
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/renesas/clk-mstp.c