Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'leds-6.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/johan/linux

Pull LED fix from Johan Hovold:
"Here's a fix for a regression in 6.4-rc1 which broke the backlight on
machines such as the Lenovo ThinkPad X13s"

Acked-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/lkml/20230602091928.GR449117@google.com/

* tag 'leds-6.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/johan/linux:
leds: qcom-lpg: Fix PWM period limits

+4 -4
+4 -4
drivers/leds/rgb/leds-qcom-lpg.c
··· 312 312 max_res = LPG_RESOLUTION_9BIT; 313 313 } 314 314 315 - min_period = (u64)NSEC_PER_SEC * 316 - div64_u64((1 << pwm_resolution_arr[0]), clk_rate_arr[clk_len - 1]); 315 + min_period = div64_u64((u64)NSEC_PER_SEC * (1 << pwm_resolution_arr[0]), 316 + clk_rate_arr[clk_len - 1]); 317 317 if (period <= min_period) 318 318 return -EINVAL; 319 319 320 320 /* Limit period to largest possible value, to avoid overflows */ 321 - max_period = (u64)NSEC_PER_SEC * max_res * LPG_MAX_PREDIV * 322 - div64_u64((1 << LPG_MAX_M), 1024); 321 + max_period = div64_u64((u64)NSEC_PER_SEC * max_res * LPG_MAX_PREDIV * (1 << LPG_MAX_M), 322 + 1024); 323 323 if (period > max_period) 324 324 period = max_period; 325 325