Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-22 Thread Marek Vasut
On 9/22/22 15:59, Quentin Schulz wrote: Hi Marek, Hi, [...] diff --git a/doc/README.gpio b/doc/README.gpio index 548ff37b8cc..d253f654fad 100644 --- a/doc/README.gpio +++ b/doc/README.gpio @@ -2,10 +2,8 @@   GPIO hog (CONFIG_GPIO_HOG)   -All the GPIO hog are initialized in gpio_hog_

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-22 Thread Quentin Schulz
Hi Marek, On 9/19/22 21:45, Marek Vasut wrote: The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus configure the hogged GPIO accordingly. Signed-o

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Marek Vasut
On 9/20/22 14:26, Quentin Schulz wrote: Hi all, Hi, Just so there's a written summary on the ML rather than only on IRC. Thanks [...] Something like: diff --git a/drivers/core/device.c b/drivers/core/device.c index d9ce546c0c..103ec47b88 100644 --- a/drivers/core/device.c +++ b/drivers/

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Quentin Schulz
Hi all, Just so there's a written summary on the ML rather than only on IRC. On 9/20/22 11:53, Marek Vasut wrote: On 9/20/22 11:00, Quentin Schulz wrote: Hi Marek, Hi, On 9/19/22 21:45, Marek Vasut wrote: The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PRO

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Marek Vasut
On 9/20/22 11:00, Quentin Schulz wrote: Hi Marek, Hi, On 9/19/22 21:45, Marek Vasut wrote: The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Quentin Schulz
Hi Marek, On 9/19/22 21:45, Marek Vasut wrote: The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus configure the hogged GPIO accordingly. Signed-o

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-20 Thread Patrick DELAUNAY
Hi, On 9/19/22 21:45, Marek Vasut wrote: The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus configure the hogged GPIO accordingly. Signed-off-by:

Re: [PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-19 Thread Samuel Holland
On 9/19/22 14:45, Marek Vasut wrote: > The gpio_hog_probe_all() functionality can be perfectly well replaced by > DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback > of each GPIO hog driver instance after .bind() and thus configure the > hogged GPIO accordingly. > > Signed-of

[PATCH] gpio: Get rid of gpio_hog_probe_all()

2022-09-19 Thread Marek Vasut
The gpio_hog_probe_all() functionality can be perfectly well replaced by DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback of each GPIO hog driver instance after .bind() and thus configure the hogged GPIO accordingly. Signed-off-by: Marek Vasut --- Cc: Heinrich Schuchardt C