drm/panel: r61307/r69328: minor updates
Subsystems (3)
cover drm/panel: r61307/r69328: minor updates
Align r61307 with schema property and update r61307/r69328 according to latest DRM changes.
Svyatoslav Ryhel (5):
drm/panel: r61307: align with schema property drm/panel: r61307/r69328: convert to
drm_connector_helper_get_modes_fixed
drm/panel: r61307/r69328: remove redundant checks drm/panel: r61307/r69328: return accumulated errors drm/panel: r61307/r69328: convert to devm_mipi_dsi_attach
drivers/gpu/drm/panel/Kconfig | 2 + drivers/gpu/drm/panel/panel-renesas-r61307.c | 40 ++++---------------- drivers/gpu/drm/panel/panel-renesas-r69328.c | 38 +++---------------- 3 files changed, 15 insertions(+), 65 deletions(-)
Signature · 1 line
2.51.0
PATCH 1/5 drm/panel: r61307: align with schema property
Rename renesas,inversion to renesas,column-inversion according to schema.
--- drivers/gpu/drm/panel/panel-renesas-r61307.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-renesas-r61307.c +1 -1
@@ -259,7 +259,7 @@ static int renesas_r61307_probe(struct mipi_dsi_device *dsi)return dev_err_probe (dev,PTR_ERR (priv->reset_gpio),"Failed to get reset gpios\n" ); -if (device_property_read_bool (dev,"renesas,inversion" )) +if (device_property_read_bool (dev,"renesas,column-inversion" )) priv->inversion = true;if (device_property_read_bool (dev,"renesas,contrast" ))
Signature · 1 line
2.51.0
Re: [PATCH v1 1/5] drm/panel: r61307: align with schema property
Quoted 12 lines · Svyatoslav Ryhel
Rename renesas,inversion to renesas,column-inversion according to schema.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- drivers/gpu/drm/panel/panel-renesas-r61307.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/panel/panel-renesas-r61307.c +0
-0
drivers/gpu/drm/panel/panel-renesas-r61307.c static int renesas_r61307_probe(struct mipi_dsi_device *dsi) · line 265
Quoted 8 lines
drivers/gpu/drm/panel/panel-renesas-r61307.c +1
-1@@ -259,7 +259,7 @@ static int renesas_r61307_probe(struct mipi_dsi_device *dsi)return dev_err_probe (dev,PTR_ERR (priv->reset_gpio),"Failed to get reset gpios\n" ); -if (device_property_read_bool (dev,"renesas,inversion" )) +if (device_property_read_bool (dev,"renesas,column-inversion" )) priv->inversion = true;if (device_property_read_bool (dev,"renesas,contrast" ))
Thanks,
Neil
PATCH 2/5 drm/panel: r61307/r69328: convert to drm_connector_helper_get_modes_fixed
In reply to Svyatoslav RyhelSwitch to use of drm_connector_helper_get_modes_fixed helper for get_modes operation.
--- drivers/gpu/drm/panel/Kconfig | 2 ++ drivers/gpu/drm/panel/panel-renesas-r61307.c | 17 +++-------------- drivers/gpu/drm/panel/panel-renesas-r69328.c | 17 +++-------------- 3 files changed, 8 insertions(+), 28 deletions(-)
drivers/gpu/drm/panel/Kconfig +2 -0
@@ -700,6 +700,7 @@ config DRM_PANEL_RENESAS_R61307 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS help Say Y here if you want to enable support for KOE tx13d100vm0eaa IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
@@ -713,6 +714,7 @@ config DRM_PANEL_RENESAS_R69328 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS help Say Y here if you want to enable support for JDI dx12d100vm0eaa IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280
drivers/gpu/drm/panel/panel-renesas-r61307.c +3 -14
@@ -14,6 +14,7 @@#include <drm/drm_mipi_dsi.h> #include <drm/drm_modes.h> #include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> #define R61307_MACP 0xb0/* Manufacturer CMD Protect */ #define R61307_MACP_ON 0x03
@@ -202,25 +203,13 @@ static const struct drm_display_mode renesas_r61307_mode = { .vtotal = 1024 + 24 + 8 + 2, .width_mm = 76, .height_mm = 101, + .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };static int renesas_r61307_get_modes (struct drm_panel *panel,struct drm_connector *connector) { -struct drm_display_mode *mode; - - mode =drm_mode_duplicate (connector->dev, &renesas_r61307_mode); -if (!mode) -return -ENOMEM ; - -drm_mode_set_name (mode); - - mode->type =DRM_MODE_TYPE_DRIVER |DRM_MODE_TYPE_PREFERRED ; - connector->display_info.width_mm = mode->width_mm; - connector->display_info.height_mm = mode->height_mm; -drm_mode_probed_add (connector, mode); - -return 1 ; +return drm_connector_helper_get_modes_fixed (connector, &renesas_r61307_mode); }static const struct drm_panel_funcs renesas_r61307_panel_funcs = {
drivers/gpu/drm/panel/panel-renesas-r69328.c +3 -14
@@ -14,6 +14,7 @@#include <drm/drm_mipi_dsi.h> #include <drm/drm_modes.h> #include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> #define R69328_MACP 0xb0/* Manufacturer Access CMD Protect */ #define R69328_MACP_ON 0x03
@@ -167,25 +168,13 @@ static const struct drm_display_mode renesas_r69328_mode = { .vtotal = 1280 + 6 + 3 + 1, .width_mm = 59, .height_mm = 105, + .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };static int renesas_r69328_get_modes (struct drm_panel *panel,struct drm_connector *connector) { -struct drm_display_mode *mode; - - mode =drm_mode_duplicate (connector->dev, &renesas_r69328_mode); -if (!mode) -return -ENOMEM ; - -drm_mode_set_name (mode); - - mode->type =DRM_MODE_TYPE_DRIVER |DRM_MODE_TYPE_PREFERRED ; - connector->display_info.width_mm = mode->width_mm; - connector->display_info.height_mm = mode->height_mm; -drm_mode_probed_add (connector, mode); - -return 1 ; +return drm_connector_helper_get_modes_fixed (connector, &renesas_r69328_mode); }static const struct drm_panel_funcs renesas_r69328_panel_funcs = {
Signature · 1 line
2.51.0
Re: [PATCH v1 2/5] drm/panel: r61307/r69328: convert to drm_connector_helper_get_modes_fixed
Quoted 100 lines · Svyatoslav Ryhel
Switch to use of
drm_connector_helper_get_modes_fixedhelper forget_modesoperation.Signed-off-by Svyatoslav Ryhel <[email protected]>--- drivers/gpu/drm/panel/Kconfig | 2 ++ drivers/gpu/drm/panel/panel-renesas-r61307.c | 17 +++-------------- drivers/gpu/drm/panel/panel-renesas-r69328.c | 17 +++-------------- 3 files changed, 8 insertions(+), 28 deletions(-)drivers/gpu/drm/panel/Kconfig +2
-0@@ -700,6 +700,7 @@ config DRM_PANEL_RENESAS_R61307 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS help Say Y here if you want to enable support for KOE tx13d100vm0eaa IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768@@ -713,6 +714,7 @@ config DRM_PANEL_RENESAS_R69328 depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS help Say Y here if you want to enable support for JDI dx12d100vm0eaa IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280drivers/gpu/drm/panel/panel-renesas-r61307.c +3
-14@@ -14,6 +14,7 @@#include <drm/drm_mipi_dsi.h> #include <drm/drm_modes.h> #include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> #define R61307_MACP 0xb0/* Manufacturer CMD Protect */ #define R61307_MACP_ON 0x03@@ -202,25 +203,13 @@ static const struct drm_display_mode renesas_r61307_mode = { .vtotal = 1024 + 24 + 8 + 2, .width_mm = 76, .height_mm = 101, + .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };static int renesas_r61307_get_modes (struct drm_panel *panel,struct drm_connector *connector) { -struct drm_display_mode *mode; - - mode =drm_mode_duplicate (connector->dev, &renesas_r61307_mode); -if (!mode) -return -ENOMEM ; - -drm_mode_set_name (mode); - - mode->type =DRM_MODE_TYPE_DRIVER |DRM_MODE_TYPE_PREFERRED ; - connector->display_info.width_mm = mode->width_mm; - connector->display_info.height_mm = mode->height_mm; -drm_mode_probed_add (connector, mode); - -return 1 ; +return drm_connector_helper_get_modes_fixed (connector, &renesas_r61307_mode); }static const struct drm_panel_funcs renesas_r61307_panel_funcs = {drivers/gpu/drm/panel/panel-renesas-r69328.c +2
-8@@ -14,6 +14,7 @@#include <drm/drm_mipi_dsi.h> #include <drm/drm_modes.h> #include <drm/drm_panel.h> +#include <drm/drm_probe_helper.h> #define R69328_MACP 0xb0/* Manufacturer Access CMD Protect */ #define R69328_MACP_ON 0x03@@ -167,25 +168,13 @@ static const struct drm_display_mode renesas_r69328_mode = { .vtotal = 1280 + 6 + 3 + 1, .width_mm = 59, .height_mm = 105, + .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };static int renesas_r69328_get_modes (struct drm_panel *panel,struct drm_connector *connector) { -struct drm_display_mode *mode; - - mode =drm_mode_duplicate (connector->dev, &renesas_r69328_mode); -if (!mode) -return -ENOMEM ; - -drm_mode_set_name (mode); -
drivers/gpu/drm/panel/panel-renesas-r69328.c static const struct drm_display_mode renesas_r69328_mode = { · line 180
Quoted 10 lines
drivers/gpu/drm/panel/panel-renesas-r69328.c +1
-6- mode->type =DRM_MODE_TYPE_DRIVER |DRM_MODE_TYPE_PREFERRED ; - connector->display_info.width_mm = mode->width_mm; - connector->display_info.height_mm = mode->height_mm; -drm_mode_probed_add (connector, mode); - -return 1 ; +return drm_connector_helper_get_modes_fixed (connector, &renesas_r69328_mode); }static const struct drm_panel_funcs renesas_r69328_panel_funcs = {
Thanks,
Neil
PATCH 3/5 drm/panel: r61307/r69328: remove redundant checks
In reply to Svyatoslav RyhelThis is now done by the DRM framework itself.
--- drivers/gpu/drm/panel/panel-renesas-r61307.c | 10 ---------- drivers/gpu/drm/panel/panel-renesas-r69328.c | 10 ---------- 2 files changed, 20 deletions(-)
drivers/gpu/drm/panel/panel-renesas-r61307.c +0 -10
@@ -35,8 +35,6 @@ struct renesas_r61307 {struct gpio_desc *reset_gpio; -bool prepared; -bool dig_cont_adj;bool inversion;u32 gamma;
@@ -92,9 +90,6 @@ static int renesas_r61307_prepare(struct drm_panel *panel)struct device *dev = &priv->dsi->dev;int ret; -if (priv->prepared) -return 0 ; - ret =regulator_enable (priv->vcc_supply);if (ret) {dev_err (dev,"failed to enable vcc power supply\n" );
@@ -113,7 +108,6 @@ static int renesas_r61307_prepare(struct drm_panel *panel)renesas_r61307_reset (priv); - priv->prepared = true;return 0 ; }
@@ -175,9 +169,6 @@ static int renesas_r61307_unprepare(struct drm_panel *panel) {struct renesas_r61307 *priv =to_renesas_r61307 (panel); -if (!priv->prepared) -return 0 ; -usleep_range (10000 ,11000 );gpiod_set_value_cansleep (priv->reset_gpio,1 );
@@ -187,7 +178,6 @@ static int renesas_r61307_unprepare(struct drm_panel *panel)usleep_range (2000 ,3000 );regulator_disable (priv->vcc_supply); - priv->prepared = false;return 0 ; }
drivers/gpu/drm/panel/panel-renesas-r69328.c +0 -10
@@ -33,8 +33,6 @@ struct renesas_r69328 {struct regulator *vdd_supply;struct regulator *vddio_supply;struct gpio_desc *reset_gpio; - -bool prepared; };static inline struct renesas_r69328 *to_renesas_r69328 (struct drm_panel *panel)
@@ -56,9 +54,6 @@ static int renesas_r69328_prepare(struct drm_panel *panel)struct device *dev = &priv->dsi->dev;int ret; -if (priv->prepared) -return 0 ; - ret =regulator_enable (priv->vdd_supply);if (ret) {dev_err (dev,"failed to enable vdd power supply\n" );
@@ -77,7 +72,6 @@ static int renesas_r69328_prepare(struct drm_panel *panel)renesas_r69328_reset (priv); - priv->prepared = true;return 0 ; }
@@ -142,9 +136,6 @@ static int renesas_r69328_unprepare(struct drm_panel *panel) {struct renesas_r69328 *priv =to_renesas_r69328 (panel); -if (!priv->prepared) -return 0 ; -gpiod_set_value_cansleep (priv->reset_gpio,1 );usleep_range (5000 ,6000 );
@@ -152,7 +143,6 @@ static int renesas_r69328_unprepare(struct drm_panel *panel)regulator_disable (priv->vddio_supply);regulator_disable (priv->vdd_supply); - priv->prepared = false;return 0 ; }
Signature · 1 line
2.51.0
Re: [PATCH v1 3/5] drm/panel: r61307/r69328: remove redundant checks
Quoted 99 lines · Svyatoslav Ryhel
This is now done by the DRM framework itself.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- drivers/gpu/drm/panel/panel-renesas-r61307.c | 10 ---------- drivers/gpu/drm/panel/panel-renesas-r69328.c | 10 ---------- 2 files changed, 20 deletions(-)drivers/gpu/drm/panel/panel-renesas-r61307.c +0
-10@@ -35,8 +35,6 @@ struct renesas_r61307 {struct gpio_desc *reset_gpio; -bool prepared; -bool dig_cont_adj;bool inversion;u32 gamma;@@ -92,9 +90,6 @@ static int renesas_r61307_prepare(struct drm_panel *panel)struct device *dev = &priv->dsi->dev;int ret; -if (priv->prepared) -return 0 ; - ret =regulator_enable (priv->vcc_supply);if (ret) {dev_err (dev,"failed to enable vcc power supply\n" );@@ -113,7 +108,6 @@ static int renesas_r61307_prepare(struct drm_panel *panel)renesas_r61307_reset (priv); - priv->prepared = true;return 0 ; }@@ -175,9 +169,6 @@ static int renesas_r61307_unprepare(struct drm_panel *panel) {struct renesas_r61307 *priv =to_renesas_r61307 (panel); -if (!priv->prepared) -return 0 ; -usleep_range (10000 ,11000 );gpiod_set_value_cansleep (priv->reset_gpio,1 );@@ -187,7 +178,6 @@ static int renesas_r61307_unprepare(struct drm_panel *panel)usleep_range (2000 ,3000 );regulator_disable (priv->vcc_supply); - priv->prepared = false;return 0 ; }drivers/gpu/drm/panel/panel-renesas-r69328.c +0
-9@@ -33,8 +33,6 @@ struct renesas_r69328 {struct regulator *vdd_supply;struct regulator *vddio_supply;struct gpio_desc *reset_gpio; - -bool prepared; };static inline struct renesas_r69328 *to_renesas_r69328 (struct drm_panel *panel)@@ -56,9 +54,6 @@ static int renesas_r69328_prepare(struct drm_panel *panel)struct device *dev = &priv->dsi->dev;int ret; -if (priv->prepared) -return 0 ; - ret =regulator_enable (priv->vdd_supply);if (ret) {dev_err (dev,"failed to enable vdd power supply\n" );@@ -77,7 +72,6 @@ static int renesas_r69328_prepare(struct drm_panel *panel)renesas_r69328_reset (priv); - priv->prepared = true;return 0 ; }@@ -142,9 +136,6 @@ static int renesas_r69328_unprepare(struct drm_panel *panel) {struct renesas_r69328 *priv =to_renesas_r69328 (panel); -if (!priv->prepared) -return 0 ; -gpiod_set_value_cansleep (priv->reset_gpio,1 );usleep_range (5000 ,6000 );
drivers/gpu/drm/panel/panel-renesas-r69328.c static int renesas_r69328_unprepare(struct drm_panel *panel) · line 148
Quoted 7 lines
drivers/gpu/drm/panel/panel-renesas-r69328.c +0
-1@@ -152,7 +143,6 @@ static int renesas_r69328_unprepare(struct drm_panel *panel)regulator_disable (priv->vddio_supply);regulator_disable (priv->vdd_supply); - priv->prepared = false;return 0 ; }
Thanks,
Neil
PATCH 4/5 drm/panel: r61307/r69328: return accumulated errors
In reply to Svyatoslav RyhelReturn accumulated errors from dsi function calls.
--- drivers/gpu/drm/panel/panel-renesas-r61307.c | 4 ++-- drivers/gpu/drm/panel/panel-renesas-r69328.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/panel/panel-renesas-r61307.c +2 -2
@@ -150,7 +150,7 @@ static int renesas_r61307_enable(struct drm_panel *panel)mipi_dsi_dcs_set_display_on_multi (&ctx);mipi_dsi_msleep (&ctx,50 ); -return 0 ; +return ctx.accum_err; }static int renesas_r61307_disable (struct drm_panel *panel)
@@ -162,7 +162,7 @@ static int renesas_r61307_disable(struct drm_panel *panel)mipi_dsi_msleep (&ctx,100 );mipi_dsi_dcs_enter_sleep_mode_multi (&ctx); -return 0 ; +return ctx.accum_err; }static int renesas_r61307_unprepare (struct drm_panel *panel)
drivers/gpu/drm/panel/panel-renesas-r69328.c +2 -2
@@ -117,7 +117,7 @@ static int renesas_r69328_enable(struct drm_panel *panel)mipi_dsi_dcs_set_display_on_multi (&ctx);mipi_dsi_msleep (&ctx,50 ); -return 0 ; +return ctx.accum_err; }static int renesas_r69328_disable (struct drm_panel *panel)
@@ -129,7 +129,7 @@ static int renesas_r69328_disable(struct drm_panel *panel)mipi_dsi_msleep (&ctx,60 );mipi_dsi_dcs_enter_sleep_mode_multi (&ctx); -return 0 ; +return ctx.accum_err; }static int renesas_r69328_unprepare (struct drm_panel *panel)
Signature · 1 line
2.51.0
Re: [PATCH v1 4/5] drm/panel: r61307/r69328: return accumulated errors
Quoted 44 lines · Svyatoslav Ryhel
Return accumulated errors from dsi function calls.
Signed-off-by Svyatoslav Ryhel <[email protected]>--- drivers/gpu/drm/panel/panel-renesas-r61307.c | 4 ++-- drivers/gpu/drm/panel/panel-renesas-r69328.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/panel/panel-renesas-r61307.c +2
-2@@ -150,7 +150,7 @@ static int renesas_r61307_enable(struct drm_panel *panel)mipi_dsi_dcs_set_display_on_multi (&ctx);mipi_dsi_msleep (&ctx,50 ); -return 0 ; +return ctx.accum_err; }static int renesas_r61307_disable (struct drm_panel *panel)@@ -162,7 +162,7 @@ static int renesas_r61307_disable(struct drm_panel *panel)mipi_dsi_msleep (&ctx,100 );mipi_dsi_dcs_enter_sleep_mode_multi (&ctx); -return 0 ; +return ctx.accum_err; }static int renesas_r61307_unprepare (struct drm_panel *panel)drivers/gpu/drm/panel/panel-renesas-r69328.c +1
-1@@ -117,7 +117,7 @@ static int renesas_r69328_enable(struct drm_panel *panel)mipi_dsi_dcs_set_display_on_multi (&ctx);mipi_dsi_msleep (&ctx,50 ); -return 0 ; +return ctx.accum_err; }static int renesas_r69328_disable (struct drm_panel *panel)
drivers/gpu/drm/panel/panel-renesas-r69328.c static int renesas_r69328_disable(struct drm_panel *panel) · line 135
Quoted 8 lines
drivers/gpu/drm/panel/panel-renesas-r69328.c +1
-1@@ -129,7 +129,7 @@ static int renesas_r69328_disable(struct drm_panel *panel)mipi_dsi_msleep (&ctx,60 );mipi_dsi_dcs_enter_sleep_mode_multi (&ctx); -return 0 ; +return ctx.accum_err; }static int renesas_r69328_unprepare (struct drm_panel *panel)
Thanks,
Neil
PATCH 5/5 drm/panel: r61307/r69328: convert to devm_mipi_dsi_attach
In reply to Svyatoslav RyhelSwitch to device managed version of mipi_dsi_attach.
--- drivers/gpu/drm/panel/panel-renesas-r61307.c | 7 +------ drivers/gpu/drm/panel/panel-renesas-r69328.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-)
drivers/gpu/drm/panel/panel-renesas-r61307.c +1 -6
@@ -261,7 +261,7 @@ static int renesas_r61307_probe(struct mipi_dsi_device *dsi)drm_panel_add (&priv->panel); - ret =mipi_dsi_attach (dsi); + ret =devm_mipi_dsi_attach (dev, dsi);if (ret) {drm_panel_remove (&priv->panel);return dev_err_probe (dev, ret,"Failed to attach to DSI host\n" );
@@ -273,11 +273,6 @@ static int renesas_r61307_probe(struct mipi_dsi_device *dsi)static void renesas_r61307_remove (struct mipi_dsi_device *dsi) {struct renesas_r61307 *priv =mipi_dsi_get_drvdata (dsi); -int ret; - - ret =mipi_dsi_detach (dsi); -if (ret) -dev_err (&dsi->dev,"Failed to detach from DSI host: %d\n" , ret);drm_panel_remove (&priv->panel); }
drivers/gpu/drm/panel/panel-renesas-r69328.c +1 -6
@@ -217,7 +217,7 @@ static int renesas_r69328_probe(struct mipi_dsi_device *dsi)drm_panel_add (&priv->panel); - ret =mipi_dsi_attach (dsi); + ret =devm_mipi_dsi_attach (dev, dsi);if (ret) {drm_panel_remove (&priv->panel);return dev_err_probe (dev, ret,"Failed to attach to DSI host\n" );
@@ -229,11 +229,6 @@ static int renesas_r69328_probe(struct mipi_dsi_device *dsi)static void renesas_r69328_remove (struct mipi_dsi_device *dsi) {struct renesas_r69328 *priv =mipi_dsi_get_drvdata (dsi); -int ret; - - ret =mipi_dsi_detach (dsi); -if (ret) -dev_err (&dsi->dev,"Failed to detach from DSI host: %d\n" , ret);drm_panel_remove (&priv->panel); }
Signature · 1 line
2.51.0
Re: [PATCH v1 5/5] drm/panel: r61307/r69328: convert to devm_mipi_dsi_attach
Quoted 48 lines · Svyatoslav Ryhel
Switch to device managed version of
mipi_dsi_attach.Signed-off-by Svyatoslav Ryhel <[email protected]>--- drivers/gpu/drm/panel/panel-renesas-r61307.c | 7 +------ drivers/gpu/drm/panel/panel-renesas-r69328.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-)drivers/gpu/drm/panel/panel-renesas-r61307.c +1
-6@@ -261,7 +261,7 @@ static int renesas_r61307_probe(struct mipi_dsi_device *dsi)drm_panel_add (&priv->panel); - ret =mipi_dsi_attach (dsi); + ret =devm_mipi_dsi_attach (dev, dsi);if (ret) {drm_panel_remove (&priv->panel);return dev_err_probe (dev, ret,"Failed to attach to DSI host\n" );@@ -273,11 +273,6 @@ static int renesas_r61307_probe(struct mipi_dsi_device *dsi)static void renesas_r61307_remove (struct mipi_dsi_device *dsi) {struct renesas_r61307 *priv =mipi_dsi_get_drvdata (dsi); -int ret; - - ret =mipi_dsi_detach (dsi); -if (ret) -dev_err (&dsi->dev,"Failed to detach from DSI host: %d\n" , ret);drm_panel_remove (&priv->panel); }drivers/gpu/drm/panel/panel-renesas-r69328.c +1
-1@@ -217,7 +217,7 @@ static int renesas_r69328_probe(struct mipi_dsi_device *dsi)drm_panel_add (&priv->panel); - ret =mipi_dsi_attach (dsi); + ret =devm_mipi_dsi_attach (dev, dsi);if (ret) {drm_panel_remove (&priv->panel);return dev_err_probe (dev, ret,"Failed to attach to DSI host\n" );@@ -229,11 +229,6 @@ static int renesas_r69328_probe(struct mipi_dsi_device *dsi)static void renesas_r69328_remove (struct mipi_dsi_device *dsi)
drivers/gpu/drm/panel/panel-renesas-r69328.c static int renesas_r69328_probe(struct mipi_dsi_device *dsi) · line 234
Quoted 10 lines
drivers/gpu/drm/panel/panel-renesas-r69328.c +0
-5{struct renesas_r69328 *priv =mipi_dsi_get_drvdata (dsi); -int ret; - - ret =mipi_dsi_detach (dsi); -if (ret) -dev_err (&dsi->dev,"Failed to detach from DSI host: %d\n" , ret);drm_panel_remove (&priv->panel); }
Thanks,
Neil
Hi,
Quoted 11 lines · Svyatoslav Ryhel
Align r61307 with schema property and update r61307/r69328 according to latest DRM changes.
Svyatoslav Ryhel (5):
drm/panel: r61307: align with schema property drm/panel: r61307/r69328: convert to
drm_connector_helper_get_modes_fixed
drm/panel: r61307/r69328: remove redundant checks drm/panel: r61307/r69328: return accumulated errors drm/panel: r61307/r69328: convert todevm_mipi_dsi_attach
Quoted 1 line
[...]
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/5] drm/panel: r61307: align with schema property
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/c1a4c55d75c0471710f444f56527f5bce9739c7e [2/5] drm/panel: r61307/r69328: convert to drm_connector_helper_get_modes_fixed https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/839ed86975721a428f4798c52cf167349164b2fb [3/5] drm/panel: r61307/r69328: remove redundant checks https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/1f8ba5e3508d17fef2602cb2826426afe593de78 [4/5] drm/panel: r61307/r69328: return accumulated errors https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/a4ad5575ce195d2a49a302e823cd42aa5c4133d5 [5/5] drm/panel: r61307/r69328: convert to devm_mipi_dsi_attach https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/3efe01ff79041fe64a6f6637191b69abf310fd0d
Signature · 1 line
Neil