linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* rfc: amba_pl022: LCD and AMBA PCLK clock updates
@ 2010-08-03 16:03 wellsk40 at gmail.com
  2010-08-03 16:03 ` [PATCH 1/2] amba_pl022: Fix driver clock enable/disable balance issues wellsk40 at gmail.com
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: wellsk40 at gmail.com @ 2010-08-03 16:03 UTC (permalink / raw)
  To: linux-arm-kernel

This patch series fixes unbalanced clock enables and disables for the
pl11x driver and adds support for the AMBA PCLK via the AMBA bus driver.

This patch series depends on the AMBA PCLK patch..

The LPC32xx will thrown an ARM exception if an attempt is made to access a
peripheral register set without the clocks enabled. The LCD clock was not
enabled until a number of register accesses already occured. Because this
clock wasn't enabled, the driver wouldn't work correctly. This is fixed
with the AMBA PCLK patch.

The clock inbalance occurred during when no clocks were yet enabled and
the clcdfb_set_par() function was called during probe. It would attempt to
disable the inactive clock in clcdfb_disable(). You can also force the
inbalance by writing to /sys/class/graphics/blank. This is fixed by
preventing calls to the clk_* functions if the clock is already in the
desired state.

The LCD peripheral and AMBA PCLK are treated as 2 different clocks in the
patch. Prior to any register access, the AMBA PCLK is enabled. It's also
disabled after the access. During probe, the AMBA PCLK clock is assumed to
be initially active. Prior the leaving probe, the AMBA PLCK is disabled.
Prior to leaving the disable funciton, the AMBA clock is enabled (to be
disabled in the AMBA bus driver). Some functions will enable and disable
the AMBA PCLK if it's already enabled. These nested clock enables/disable
operations are balanced.

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

end of thread, other threads:[~2010-08-05 16:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-03 16:03 rfc: amba_pl022: LCD and AMBA PCLK clock updates wellsk40 at gmail.com
2010-08-03 16:03 ` [PATCH 1/2] amba_pl022: Fix driver clock enable/disable balance issues wellsk40 at gmail.com
2010-08-05  7:20   ` Linus Walleij
2010-08-05 16:43     ` Kevin Wells
2010-08-03 16:03 ` [PATCH 2/2] amba_pl022: Add support for amba peripheral clocking wellsk40 at gmail.com
2010-08-05  7:19 ` rfc: amba_pl022: LCD and AMBA PCLK clock updates Linus Walleij

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).