kernel: bump 6.1 to 6.1.83
[openwrt/staging/pepe2k.git] / target / linux / pistachio / patches-6.1 / 110-pwm-img-fix-clock-lookup.patch
1 From 58d03770ac5f78ff2d819caabea9371a041bf7be Mon Sep 17 00:00:00 2001
2 From: Zoltan HERPAI <wigyori@uid0.hu>
3 Date: Wed, 20 Mar 2024 09:36:02 +0100
4 Subject: pwm: img: fix pwm clock lookup
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 22e8e19 has introduced a regression in the imgchip->pwm_clk lookup, whereas
10 the clock name has also been renamed to "imgchip". This causes the driver
11 failing to load:
12
13 [ 0.546905] img-pwm 18101300.pwm: failed to get imgchip clock
14 [ 0.553418] img-pwm: probe of 18101300.pwm failed with error -2
15
16 Fix this lookup by reverting the clock name back to "pwm".
17
18 Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
19 Link: https://lore.kernel.org/r/20240320083602.81592-1-wigyori@uid0.hu
20 Fixes: 22e8e19a46f7 ("pwm: img: Rename variable pointing to driver private data")
21 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
22 ---
23 drivers/pwm/pwm-img.c | 4 ++--
24 1 file changed, 2 insertions(+), 2 deletions(-)
25
26 --- a/drivers/pwm/pwm-img.c
27 +++ b/drivers/pwm/pwm-img.c
28 @@ -289,9 +289,9 @@ static int img_pwm_probe(struct platform
29 return PTR_ERR(imgchip->sys_clk);
30 }
31
32 - imgchip->pwm_clk = devm_clk_get(&pdev->dev, "imgchip");
33 + imgchip->pwm_clk = devm_clk_get(&pdev->dev, "pwm");
34 if (IS_ERR(imgchip->pwm_clk)) {
35 - dev_err(&pdev->dev, "failed to get imgchip clock\n");
36 + dev_err(&pdev->dev, "failed to get pwm clock\n");
37 return PTR_ERR(imgchip->pwm_clk);
38 }
39