Re: [PATCH v1] regmap: Add can_sleep configuration option

From: Dmitry Osipenko
Date: Wed Sep 02 2020 - 11:36:50 EST


02.09.2020 17:53, Marek Szyprowski пишет:
> Hi Dmitry,
>
> On 02.09.2020 16:18, Dmitry Osipenko wrote:
>> Regmap can't sleep if spinlock is used for the locking protection.
>> This patch fixes regression caused by a previous commit that switched
>> regmap to use fsleep() and this broke Amlogic S922X platform.
>>
>> This patch adds new configuration option for regmap users, allowing to
>> specify whether regmap operations can sleep and assuming that sleep is
>> allowed if mutex is used for the regmap locking protection.
>>
>> Reported-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
>> Fixes: 2b32d2f7ce0a ("regmap: Use flexible sleep")
>> Signed-off-by: Dmitry Osipenko <digetx@xxxxxxxxx>
>
> This fixes the issue I've reported. Thanks!
>
> Tested-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>

Awesome! Thank you!