Skip to content

Commit 3ebccf1

Browse files
andy-shevrafaeljw
authored andcommitted
ACPI: LPSS: Fix the fractional clock divider flags
The conversion to CLK_FRAC_DIVIDER_POWER_OF_TWO_PS uses wrong flags in the parameters and hence miscalculates the values in the clock divider. Fix this by applying the flag to the proper parameter. Fixes: 82f53f9 ("clk: fractional-divider: Introduce POWER_OF_TWO_PS flag") Reported-by: Alex Vinarskis <alex.vinarskis@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent a39b6ac commit 3ebccf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/acpi/acpi_lpss.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,9 @@ static int register_device_clock(struct acpi_device *adev,
461461
if (!clk_name)
462462
return -ENOMEM;
463463
clk = clk_register_fractional_divider(NULL, clk_name, parent,
464+
0, prv_base, 1, 15, 16, 15,
464465
CLK_FRAC_DIVIDER_POWER_OF_TWO_PS,
465-
prv_base, 1, 15, 16, 15, 0, NULL);
466+
NULL);
466467
parent = clk_name;
467468

468469
clk_name = kasprintf(GFP_KERNEL, "%s-update", devname);

0 commit comments

Comments
 (0)