diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2017-04-04 19:32:03 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-12 10:41:15 (GMT) |
commit | e02a5d1d5a053374dffe9ed6300113a125121f29 (patch) | |
tree | c98efa84dcd3dddfc4b5aaf8de7f94f27f383a07 /drivers/hid/hid-lg4ff.h | |
parent | 666d5f34d8972d1d159b9f79f56620b6e817cc8a (diff) | |
download | linux-e02a5d1d5a053374dffe9ed6300113a125121f29.tar.xz |
clk: lpc32xx: add a quirk for PWM and MS clock dividers
[ Upstream commit f84d42a9cffc4ecd96f1ce3a038f841782142eb2 ]
In common clock framework CLK_DIVIDER_ONE_BASED or'ed with
CLK_DIVIDER_ALLOW_ZERO flags indicates that
1) a divider clock may be set to zero value,
2) divider's zero value is interpreted as a non-divided clock.
On the LPC32xx platform clock dividers of PWM and memory card clocks
comply with the first condition, but zero value means a gated clock,
thus it may happen that the divider value is not updated when
the clock is enabled and the clock remains gated.
The change adds one-shot quirks, which check for zero value of divider
on initialization and set it to a non-zero value, therefore in runtime
a gate clock will work as expected.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Sylvain Lemieux <slemieux.tyco@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hid/hid-lg4ff.h')
0 files changed, 0 insertions, 0 deletions