diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-11-30 17:31:38 -0800 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-11-30 18:24:20 -0800 |
commit | fab88ca788dcacf2fbb006d5663456cbd390ee18 (patch) | |
tree | 368375c9eec5fe35ee81f588a9a0231da70d7b19 /tools/net/bpf_dbg.c | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) |
clk: divider: Cap table divider values to 'width' member
When we use a clk divider with a divider table, we limit the
maximum divider value in divider_get_val() to the
div_mask(width), but when we calculate the divider in
divider_round_rate() we don't consider that the maximum divider
may be limited by the width. Pass the width along to
_get_table_maxdiv() so that we only return the maximum divider
that is valid. This is useful for clocks that want to share the
same divider table while limiting the available dividers to some
subset of the table depending on the width of the bitfield.
Cc: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'tools/net/bpf_dbg.c')
0 files changed, 0 insertions, 0 deletions