lkml.org 
[lkml]   [2020]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v1] regmap: Add can_sleep configuration option
From
Date
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@samsung.com>
>> Fixes: 2b32d2f7ce0a ("regmap: Use flexible sleep")
>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
>
> This fixes the issue I've reported. Thanks!
>
> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>

Awesome! Thank you!

\
 
 \ /
  Last update: 2020-09-02 17:37    [W:0.061 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site