Re: [PATCH v2 2/2] gpio: add gpio-line-mux driver
From: Thomas Richard
Date: Tue Oct 28 2025 - 06:23:05 EST
Hi Peter,
On 10/28/25 11:09 AM, Peter Rosin wrote:
> Hi!
>
> 2025-10-28 at 10:45, Thomas Richard wrote:
>> On 10/27/25 12:17 AM, Jonas Jelonek wrote:
>>> + ret = mux_control_select(glm->mux, glm->gpio_mux_states[offset]);
>>> + if (ret < 0)
>>> + return ret;
>>> +
>>> + ret = gpiod_get_raw_value_cansleep(glm->shared_gpio);
>>
>> Why ignoring ACTIVE_LOW status ?
>> And cansleep depends on your shared_gpio line, maybe it is not the case.
>>
>>> + mux_control_deselect(glm->mux);
>
> *snip*
>
>>> + glm->gc.can_sleep = true;
>>
>> depends on your shared_gpio line.
>
> Does it? In this case, the gpio will always need to be able to
> sleep, since mux_control_select() may sleep. Or, what am I
> missing?
Oh yes you're right, I forgot the mux part.
Best Regards,
Thomas