forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/drivers/video/backlight/pwm_bl.c
....@@ -74,7 +74,7 @@
7474 struct pwm_state state;
7575
7676 pwm_get_state(pb->pwm, &state);
77
- if (!pb->enabled)
77
+ if (!pb->enabled && !state.enabled)
7878 return;
7979
8080 if (pb->enable_gpio)