clk: Always notify whole subtree when reparenting
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 16 Apr 2013 17:06:50 +0000 (10:06 -0700)
committer黄涛 <huangtao@rock-chips.com>
Wed, 8 Jan 2014 03:02:33 +0000 (11:02 +0800)
commit37950832f59d39d2c2b520f02f51aa9df6da7856
treea35193c930878a5d59ebcf051f0d42d39a21e64c
parent70ac521b4d375aca21af83772b8e68c4abf0722b
clk: Always notify whole subtree when reparenting

A clock's notifier count only reflects notifiers which are registered
directly for that clock. A reparent operation though affects the whole
subtree because of a potential rate change.
When issuing the pre rate change notifications only the notifier count
for the clock to be changed is considered and notifiers for subclocks
may never be called. Resulting in clocks in the subtree which have
registered notifiers, may receive a POST_- or ABORT_RATE_CHANGE
notification, without a PRE_RATE_CHANGE_NOTIFICATION.
Therefore always traverse the whole subtree when issueing pre rate
change notifications during a reparent operation.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c