Re: Handling clocks on external busses

Mark Brown
2015-12-02T13:30:24Z

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

On Wed, Dec 02, 2015 at 12:58:55PM +0000, Charles Keepax wrote:

> So after a bit more digging it seems this has been mitigated slightly
> as a lot of SPI driver have been updated to execute transfers in
> thread rather than from a worker thread and it seems the clock
> framework lets you re-enter the locked sections if called from the
> same thread.

No, this isn't something the drivers support (it's a framework feature)
and it isn't something that we're guaranteed to do, if the bus is busy
we defer to the thread and it's possible the drivers might do something
multi-threaded themselves. It might work a lot of the time but it's
never going to be guaranteed to work.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]