[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHQ1cqGkWaZYkopXign9dxaAUv4Jbe5Kee8j-5Fkh6LX4r1i0A@mail.gmail.com>
Date: Thu, 16 Mar 2017 07:37:59 -0700
From: Andrey Smirnov <andrew.smirnov@...il.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Rob Herring <robh@...nel.org>, Chris Healy <cphealy@...il.com>,
Guenter Roeck <linux@...ck-us.net>,
"linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] serdev: Add minimal bus locking API
On Tue, Mar 14, 2017 at 4:20 PM, Andy Shevchenko
<andy.shevchenko@...il.com> wrote:
> On Tue, Mar 14, 2017 at 3:48 PM, Andrey Smirnov
> <andrew.smirnov@...il.com> 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
Powered by blists - more mailing lists