summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorSaravana Kannan <skannan@codeaurora.org>2012-05-15 22:43:42 +0200
committerMike Turquette <mturquette@linaro.org>2012-05-16 07:42:10 +0200
commit7e0fa1b5fa91d9aa456d102c273b2cf0f2e95d39 (patch)
treee9292f18566fa2289227d2c207a48c798e952618 /drivers/ata
parentclk: Provide dummy clk_unregister() (diff)
downloadlinux-7e0fa1b5fa91d9aa456d102c273b2cf0f2e95d39.tar.xz
linux-7e0fa1b5fa91d9aa456d102c273b2cf0f2e95d39.zip
clk: Fix CLK_SET_RATE_GATE flag validation in clk_set_rate().
The clk_set_rate() code shouldn't check the clock's enable count when validating CLK_SET_RATE_GATE flag since the enable count could change after the validation. Similar to clk_set_parent(), it should instead check the prepare count. The prepare count should go to zero only when the end user expects the clock to not be enabled in the future. Since the code already grabs the prepare count before validation, it's not possible for prepare count to change after validation and by association not possible for a well behaving end user to enable the clock while the set rate is in progress. Signed-off-by: Saravana Kannan <skannan@codeaurora.org> Reviewed-by: Richard Zhao <richard.zhao@freescale.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions