clk: shmobile: fix setting paretn clock rate
authorBen Dooks <ben.dooks@codethink.co.uk>
Mon, 31 Mar 2014 17:47:27 +0000 (18:47 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:05 +0000 (09:21 +0900)
commitc881950a7b62767200c89364d14de297c9b58252
tree3aea8239d1075ec544f1134124f4b981c174c019
parentfba105eaed66943c39612820fb837bab4c66087e
clk: shmobile: fix setting paretn clock rate

If the driver needs to change a clock rate, then it must be propogated
through the MSTP clock to the parent clock (such as shdi0 -> sd0). Without
this we cannot up-rate default clocks which are really slow (such as the
mmcif1 which defaults to 12MHz where it could be running at 97MHz)

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
(cherry picked from commit e44df332f30bf3040c60c1ed6674d1431fdb48b9)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clk/shmobile/clk-mstp.c