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

2022-09-22 Thread Marek Vasut
On 9/22/22 17:33, Quentin Schulz wrote: Hi Marek, Hi, [...] +    /* + * Since gpio-hog is a U_BOOT_DRIVER and not + * a U_BOOT_CLASS, the DM core does not bind + * it and therefore it's up to this driver to + * set t

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

2022-09-22 Thread Quentin Schulz
Hi Marek, On 9/22/22 16:29, Marek Vasut wrote: On 9/22/22 16:13, Quentin Schulz wrote: [...] @@ -1503,9 +1480,26 @@ static int gpio_post_bind(struct udevice *dev)    &child);   if (ret)   return ret; + +    /* +  

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

2022-09-22 Thread Marek Vasut
On 9/22/22 16:13, Quentin Schulz wrote: [...] @@ -1503,9 +1480,26 @@ static int gpio_post_bind(struct udevice *dev) &child); if (ret) return ret; + +

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

2022-09-22 Thread Quentin Schulz
From: 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. For SPL/TPL, the DM_FLAG_PRE_RELOC als