forked from Minki/linux
369d561445
Add usecounting for wakeup and sleep dependencies. In the current situation, if several functions add dependencies on the same clockdomains, when the first dependency removal function is called, the dependency will be incorrectly removed from the hardware. Add clkdm_clear_all_wkdeps() and clkdm_clear_all_sleepdeps(), which provide a fast and usecounting-consistent way to clear all hardware clockdomain dependencies, since accesses to these registers can be quite slow. pm{2,3}4xx.c has been updated to use these new functions. The original version of this patch did not touch these files, which previously wrote directly to the wkdep registers, and thus confused the usecounting code. This problem was found by Kevin Hilman <khilman@deeprootsystems.com>. N.B.: This patch introduces one significant functional difference over the previous pm34xx.c code: sleepdeps are now cleared during clockdomain initialization, whereas previously they were left untouched. This has been tested by Kevin and confirmed to work. The original version of this patch also did not take into consideration that some clockdomains do not have sleep or wakeup dependency sources, which caused NULL pointer dereferences. This problem was debugged and fixed by Kevin Hilman <khilman@deeprootsystems.com>. Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com> Cc: Jouni Högander <jouni.hogander@nokia.com> |
||
---|---|---|
.. | ||
blizzard.h | ||
board-ams-delta.h | ||
board-sx1.h | ||
board-voiceblue.h | ||
board.h | ||
clkdev_omap.h | ||
clkdev.h | ||
clock.h | ||
clockdomain.h | ||
common.h | ||
control.h | ||
cpu.h | ||
display.h | ||
dma.h | ||
dmtimer.h | ||
dsp_common.h | ||
fpga.h | ||
gpio-switch.h | ||
gpio.h | ||
gpmc-smc91x.h | ||
gpmc.h | ||
hardware.h | ||
hwa742.h | ||
i2c.h | ||
io.h | ||
iommu2.h | ||
iommu.h | ||
iovmm.h | ||
irda.h | ||
irqs.h | ||
keypad.h | ||
lcd_mipid.h | ||
led.h | ||
mailbox.h | ||
mcbsp.h | ||
mcspi.h | ||
memory.h | ||
menelaus.h | ||
mmc.h | ||
mux.h | ||
nand.h | ||
omap7xx.h | ||
omap16xx.h | ||
omap24xx.h | ||
omap34xx.h | ||
omap44xx.h | ||
omap730.h | ||
omap850.h | ||
omap1510.h | ||
omap_device.h | ||
omap_hwmod.h | ||
omap-alsa.h | ||
omap-pm.h | ||
onenand.h | ||
param.h | ||
powerdomain.h | ||
prcm.h | ||
sdrc.h | ||
serial.h | ||
smp.h | ||
sram.h | ||
system.h | ||
tc.h | ||
timer-gp.h | ||
timex.h | ||
uncompress.h | ||
usb.h | ||
vram.h | ||
vrfb.h |