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 'pm-5.19-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull power management fix from Rafael Wysocki
"Fix recent regression in the cpufreq mediatek driver related to
incorrect handling of regulator_get_optional() return value
(AngeloGioacchino Del Regno)"

* tag 'pm-5.19-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
cpufreq: mediatek: Handle sram regulator probe deferral

+6 -2
+6 -2
drivers/cpufreq/mediatek-cpufreq.c
··· 439 439 440 440 /* Both presence and absence of sram regulator are valid cases. */ 441 441 info->sram_reg = regulator_get_optional(cpu_dev, "sram"); 442 - if (IS_ERR(info->sram_reg)) 442 + if (IS_ERR(info->sram_reg)) { 443 + ret = PTR_ERR(info->sram_reg); 444 + if (ret == -EPROBE_DEFER) 445 + goto out_free_resources; 446 + 443 447 info->sram_reg = NULL; 444 - else { 448 + } else { 445 449 ret = regulator_enable(info->sram_reg); 446 450 if (ret) { 447 451 dev_warn(cpu_dev, "cpu%d: failed to enable vsram\n", cpu);