linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Handling clocks on external busses
@ 2015-11-24 17:37 Charles Keepax
  2015-12-02 12:58 ` Charles Keepax
  0 siblings, 1 reply; 4+ messages in thread
From: Charles Keepax @ 2015-11-24 17:37 UTC (permalink / raw)
  To: linux-clk; +Cc: linux-i2c, linux-spi

Hi,

When a clock driver is controlling a clock that is controlled
over I2C / SPI, we need to perform a write on that bus to enable
the clock. However, such busses often have their own clocks that
must be enabled. Since all clock prepares are controlled under
one large mutex this easily causes deadlock. The device is
waiting for the I2C / SPI write to complete and the I2C / SPI
driver is waiting for the clock prepare lock to be released so it
can enable its own clock.

I have had a bit of a search and it seems the only really advice
kicking about is that all I2C / SPI drivers should leave the
clock prepared all the time. Is that intended to be the long term
solution, should I treat not leaving the clock prepared as a bug?

Thanks,
Charles

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-04  9:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24 17:37 Handling clocks on external busses Charles Keepax
2015-12-02 12:58 ` Charles Keepax
2015-12-02 13:30   ` Mark Brown
2016-04-04  9:57   ` Charles Keepax

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).