mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm: tilcdc: don't use devm_pinctrl_get_select_default() in probe
@ 2023-09-22  7:37 Wolfram Sang
  2023-09-25 11:59 ` Geert Uytterhoeven
  2024-04-10 11:29 ` Tomi Valkeinen
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfram Sang @ 2023-09-22  7:37 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Wolfram Sang, Jyri Sarha, Tomi Valkeinen, David Airlie,
	Daniel Vetter, dri-devel, linux-kernel

Since commit ab78029ecc34 ("drivers/pinctrl: grab default handles from
device core"), we can rely on device core for setting the default pins.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/gpu/drm/tilcdc/tilcdc_panel.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
index 9aefd010acde..68093d6b6b16 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
@@ -6,7 +6,6 @@
 
 #include <linux/backlight.h>
 #include <linux/gpio/consumer.h>
-#include <linux/pinctrl/consumer.h>
 #include <linux/platform_device.h>
 
 #include <video/display_timing.h>
@@ -308,7 +307,6 @@ static int panel_probe(struct platform_device *pdev)
 	struct backlight_device *backlight;
 	struct panel_module *panel_mod;
 	struct tilcdc_module *mod;
-	struct pinctrl *pinctrl;
 	int ret;
 
 	/* bail out early if no DT data: */
@@ -342,10 +340,6 @@ static int panel_probe(struct platform_device *pdev)
 
 	tilcdc_module_init(mod, "panel", &panel_module_ops);
 
-	pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
-	if (IS_ERR(pinctrl))
-		dev_warn(&pdev->dev, "pins are not configured\n");
-
 	panel_mod->timings = of_get_display_timings(node);
 	if (!panel_mod->timings) {
 		dev_err(&pdev->dev, "could not get panel timings\n");
-- 
2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: tilcdc: don't use devm_pinctrl_get_select_default() in probe
  2023-09-22  7:37 [PATCH] drm: tilcdc: don't use devm_pinctrl_get_select_default() in probe Wolfram Sang
@ 2023-09-25 11:59 ` Geert Uytterhoeven
  2024-04-10 11:29 ` Tomi Valkeinen
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2023-09-25 11:59 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Jyri Sarha, Tomi Valkeinen, David Airlie,
	Daniel Vetter, dri-devel, linux-kernel, Linus Walleij,
	open list:GPIO SUBSYSTEM

CC pinctrl

On Fri, Sep 22, 2023 at 6:26 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> Since commit ab78029ecc34 ("drivers/pinctrl: grab default handles from
> device core"), we can rely on device core for setting the default pins.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

> --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> @@ -6,7 +6,6 @@
>
>  #include <linux/backlight.h>
>  #include <linux/gpio/consumer.h>
> -#include <linux/pinctrl/consumer.h>
>  #include <linux/platform_device.h>
>
>  #include <video/display_timing.h>
> @@ -308,7 +307,6 @@ static int panel_probe(struct platform_device *pdev)
>         struct backlight_device *backlight;
>         struct panel_module *panel_mod;
>         struct tilcdc_module *mod;
> -       struct pinctrl *pinctrl;
>         int ret;
>
>         /* bail out early if no DT data: */
> @@ -342,10 +340,6 @@ static int panel_probe(struct platform_device *pdev)
>
>         tilcdc_module_init(mod, "panel", &panel_module_ops);
>
> -       pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
> -       if (IS_ERR(pinctrl))
> -               dev_warn(&pdev->dev, "pins are not configured\n");
> -
>         panel_mod->timings = of_get_display_timings(node);
>         if (!panel_mod->timings) {
>                 dev_err(&pdev->dev, "could not get panel timings\n");

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm: tilcdc: don't use devm_pinctrl_get_select_default() in probe
  2023-09-22  7:37 [PATCH] drm: tilcdc: don't use devm_pinctrl_get_select_default() in probe Wolfram Sang
  2023-09-25 11:59 ` Geert Uytterhoeven
@ 2024-04-10 11:29 ` Tomi Valkeinen
  1 sibling, 0 replies; 3+ messages in thread
From: Tomi Valkeinen @ 2024-04-10 11:29 UTC (permalink / raw)
  To: Wolfram Sang, linux-renesas-soc
  Cc: Jyri Sarha, David Airlie, Daniel Vetter, dri-devel, linux-kernel

On 22/09/2023 10:37, Wolfram Sang wrote:
> Since commit ab78029ecc34 ("drivers/pinctrl: grab default handles from
> device core"), we can rely on device core for setting the default pins.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
>   drivers/gpu/drm/tilcdc/tilcdc_panel.c | 6 ------
>   1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> index 9aefd010acde..68093d6b6b16 100644
> --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> @@ -6,7 +6,6 @@
>   
>   #include <linux/backlight.h>
>   #include <linux/gpio/consumer.h>
> -#include <linux/pinctrl/consumer.h>
>   #include <linux/platform_device.h>
>   
>   #include <video/display_timing.h>
> @@ -308,7 +307,6 @@ static int panel_probe(struct platform_device *pdev)
>   	struct backlight_device *backlight;
>   	struct panel_module *panel_mod;
>   	struct tilcdc_module *mod;
> -	struct pinctrl *pinctrl;
>   	int ret;
>   
>   	/* bail out early if no DT data: */
> @@ -342,10 +340,6 @@ static int panel_probe(struct platform_device *pdev)
>   
>   	tilcdc_module_init(mod, "panel", &panel_module_ops);
>   
> -	pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
> -	if (IS_ERR(pinctrl))
> -		dev_warn(&pdev->dev, "pins are not configured\n");
> -
>   	panel_mod->timings = of_get_display_timings(node);
>   	if (!panel_mod->timings) {
>   		dev_err(&pdev->dev, "could not get panel timings\n");

Thanks, applying to drm-misc-next.

  Tomi


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-10 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-22  7:37 [PATCH] drm: tilcdc: don't use devm_pinctrl_get_select_default() in probe Wolfram Sang
2023-09-25 11:59 ` Geert Uytterhoeven
2024-04-10 11:29 ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®