Re: [PATCH V2 01/10] drm/panel: himax-hx8394: Drop prepare/unprepare tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/12/2023 19:57, Chris Morgan wrote:
From: Chris Morgan <macromorgan@xxxxxxxxxxx>

Drop the panel specific prepare/unprepare logic. This is now tracked
by the DRM stack [1].

[1] commit d2aacaf07395 ("drm/panel: Check for already prepared/enabled in
drm_panel")

Signed-off-by: Chris Morgan <macromorgan@xxxxxxxxxxx>
---
  drivers/gpu/drm/panel/panel-himax-hx8394.c | 11 -----------
  1 file changed, 11 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-himax-hx8394.c b/drivers/gpu/drm/panel/panel-himax-hx8394.c
index c73243d85de7..3823ff388b96 100644
--- a/drivers/gpu/drm/panel/panel-himax-hx8394.c
+++ b/drivers/gpu/drm/panel/panel-himax-hx8394.c
@@ -68,7 +68,6 @@ struct hx8394 {
  	struct gpio_desc *reset_gpio;
  	struct regulator *vcc;
  	struct regulator *iovcc;
-	bool prepared;
const struct hx8394_panel_desc *desc;
  };
@@ -262,16 +261,11 @@ static int hx8394_unprepare(struct drm_panel *panel)
  {
  	struct hx8394 *ctx = panel_to_hx8394(panel);
- if (!ctx->prepared)
-		return 0;
-
  	gpiod_set_value_cansleep(ctx->reset_gpio, 1);
regulator_disable(ctx->iovcc);
  	regulator_disable(ctx->vcc);
- ctx->prepared = false;
-
  	return 0;
  }
@@ -280,9 +274,6 @@ static int hx8394_prepare(struct drm_panel *panel)
  	struct hx8394 *ctx = panel_to_hx8394(panel);
  	int ret;
- if (ctx->prepared)
-		return 0;
-
  	gpiod_set_value_cansleep(ctx->reset_gpio, 1);
ret = regulator_enable(ctx->vcc);
@@ -301,8 +292,6 @@ static int hx8394_prepare(struct drm_panel *panel)
msleep(180); - ctx->prepared = true;
-
  	return 0;
disable_vcc:

Reviewed-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux