bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0483-regulator-rpi-panel-Ensure-the-backlight-is-off-duri.patch
1 From 56a0f05720575f229fbbd996c0798aaf23464924 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 8 Sep 2021 15:41:18 +0100
4 Subject: [PATCH] regulator: rpi-panel: Ensure the backlight is off
5 during probe.
6
7 The initial state of the Atmel is not defined, so ensure the
8 backlight PWM is set to 0 by default.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 drivers/regulator/rpi-panel-attiny-regulator.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 --- a/drivers/regulator/rpi-panel-attiny-regulator.c
16 +++ b/drivers/regulator/rpi-panel-attiny-regulator.c
17 @@ -250,6 +250,7 @@ static int attiny_i2c_probe(struct i2c_c
18
19 regmap_write(regmap, REG_POWERON, 0);
20 msleep(30);
21 + regmap_write(regmap, REG_PWM, 0);
22
23 config.dev = &i2c->dev;
24 config.regmap = regmap;