On Tue, Mar 14, 2017 at 4:20 PM, Andy Shevchenko
<[email protected]> wrote:
> On Tue, Mar 14, 2017 at 3:48 PM, Andrey Smirnov
> <[email protected]> wrote:
>> Add minimal bus locking API which is useful for serial devices that
>> implement request-reply protocol
>
> Can you put an example here?
>
> I'm not sure mutex is needed at all.

My use case is a "supervisory" microcontroller connected to SoC via
UART various aspects of which are exposed via MFD. I saw this kind of
"device design pattern" a number of times in my career, so I thought
and abstraction to help dealing with cases like that might be useful.

However, since Rob mentioned that API's expectation is that any such
locking is driver's responsibility, I'll drop this patch.

Thanks,
Andrey Smirnov

Reply via email to