Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/gpu/drm/panel:fix waveshare panel software restart/shutdown display is abnormal #5781

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions drivers/gpu/drm/panel/panel-waveshare-dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,18 @@ static void ws_panel_remove(struct i2c_client *i2c)
{
struct ws_panel *ts = i2c_get_clientdata(i2c);

ws_panel_disable(&ts->base);

drm_panel_remove(&ts->base);
}

static void ws_panel_shutdown(struct i2c_client *i2c)
{
struct ws_panel *ts = i2c_get_clientdata(i2c);

ws_panel_disable(&ts->base);
}

static const struct of_device_id ws_panel_of_ids[] = {
{
.compatible = "waveshare,2.8inch-panel",
Expand Down Expand Up @@ -403,6 +412,7 @@ static struct i2c_driver ws_panel_driver = {
},
.probe = ws_panel_probe,
.remove = ws_panel_remove,
.shutdown = ws_panel_shutdown,
};
module_i2c_driver(ws_panel_driver);

Expand Down
Loading