diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-08-12 20:00:24 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-08-12 22:42:00 +0300 |
commit | 82f53f9ee5770177eb102446cc3513bf07e2668a (patch) | |
tree | 40ff03911a7d5b565cf0f889c5c8a8ad6cfb7892 /drivers/acpi/acpi_lpss.c | |
parent | 928f9e2686110825262685b7aedc7b21b805fecd (diff) | |
download | linux-82f53f9ee5770177eb102446cc3513bf07e2668a.tar.xz |
clk: fractional-divider: Introduce POWER_OF_TWO_PS flag
The newly introduced POWER_OF_TWO_PS flag, when set, makes the flow
to skip the assumption that the caller will use an additional 2^scale
prescaler to get the desired clock rate.
Reported-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210812170025.67074-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/acpi/acpi_lpss.c')
-rw-r--r-- | drivers/acpi/acpi_lpss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index 894b7e6ae144..55c5e89d6a7b 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c @@ -434,8 +434,8 @@ static int register_device_clock(struct acpi_device *adev, if (!clk_name) return -ENOMEM; clk = clk_register_fractional_divider(NULL, clk_name, parent, - 0, prv_base, - 1, 15, 16, 15, 0, NULL); + CLK_FRAC_DIVIDER_POWER_OF_TWO_PS, + prv_base, 1, 15, 16, 15, 0, NULL); parent = clk_name; clk_name = kasprintf(GFP_KERNEL, "%s-update", devname); |