mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
clk: clocking-wizard: remove 20kHz restriction
Reviewed-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com> Reviewed-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Colin Foster <colin.foster@in-advantage.com> Signed-off-by: Brian Masney <bmasney@redhat.com>
This commit is contained in:
parent
9329714414
commit
54ed94b709
|
|
@ -113,7 +113,6 @@
|
|||
#define VER_WZRD_VCO_MAX 4320000000ULL
|
||||
#define VER_WZRD_O_MIN 2
|
||||
#define VER_WZRD_O_MAX 511
|
||||
#define WZRD_MIN_ERR 20000
|
||||
#define WZRD_FRAC_POINTS 1000
|
||||
|
||||
/* Get the mask from width */
|
||||
|
|
@ -428,7 +427,7 @@ static int clk_wzrd_get_divisors(struct clk_hw *hw, unsigned long rate,
|
|||
}
|
||||
}
|
||||
}
|
||||
return best_diff < WZRD_MIN_ERR ? 0 : -EBUSY;
|
||||
return best_diff != -1ULL ? 0 : -EBUSY;
|
||||
}
|
||||
|
||||
static int clk_wzrd_reconfig(struct clk_wzrd_divider *divider, void __iomem *div_addr)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user