linux_dsm_epyc7002/arch/arm/plat-omap
Janusz Krzysztofik 8561a84f85 omap: Fix omapfb/lcdc on OMAP1510 broken when PM set
With CONFIG_PM=y, the omapfb/lcdc device on Amstrad Delta, after initially
starting correctly, breaks with the following error messages:

omapfb omapfb: resetting (status 0xffffff96,reset count 1)
...
omapfb omapfb: resetting (status 0xffffff96,reset count 100)
omapfb omapfb: too many reset attempts, giving up.

Looking closer at this I have found that it had been broken almost 2 years ago
with commit 2418996e3b100114edb2ae110d5d4acb928909d2, PM fixes for OMAP1.

The definite reason for broken omapfb/lcdc behavoiur in PM mode
appeared to be ARM_IDLECT1:IDLIF_ARM (bit 6) put into idle regardless of LCD
DMA possibly running. The bit were set based on return value of the
omap_dma_running() function that did not check for dedicated LCD DMA
channel status. The patch below fixes this.

Note that the hardcoded register value will be fixed during the next merge
cycle to use OMAP_LCDC_ defines. Currently the OMAP_LCDC_ defines are local
to drivers/video/omap/lcdc.c, so let's not start moving those right now.

Created against linux-2.6.32-rc6

Tested on Amstrad Delta

Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2009-11-11 11:00:03 -08:00
..
include/mach omap: Fix omap-keypad by restoring old keypad.h without breaking omap2 boards that use matrix_keypad 2009-10-22 14:43:17 -07:00
clock.c OMAP clock: use debugfs_remove_recursive() for rewinding 2009-09-03 20:14:06 +03:00
common.c Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 2009-09-18 09:19:26 -07:00
cpu-omap.c OMAP: PM: CPUfreq: obey min/max settings of policy 2009-08-05 09:10:54 -07:00
debug-devices.c ARM: OMAP: Switch to gpio_request/free calls 2008-12-10 17:35:30 -08:00
debug-leds.c ARM: Rework omap suspend_late()/resume_early() 2009-07-22 00:28:38 +02:00
devices.c ARM: OMAP4: Add minimal support for omap4 2009-05-28 14:16:04 -07:00
dma.c omap: Fix omapfb/lcdc on OMAP1510 broken when PM set 2009-11-11 11:00:03 -08:00
dmtimer.c OMAP: Remove OMAP_IO_ADDRESS, use OMAP1_IO_ADDRESS and OMAP2_IO_ADDRESS instead 2009-08-28 10:50:33 -07:00
fb.c ARM: OMAP: Fix printing of reserved memory for frambuffer 2009-05-11 09:58:19 -07:00
gpio.c omap: Fix a OMAP_MPUIO_VBASE typo for 850 2009-09-24 16:23:14 -07:00
i2c.c ARM: OMAP: Update contact address of I2C registration helper 2009-05-25 11:08:43 -07:00
io.c OMAP: Remove ifdefs for io.h 2009-08-28 10:50:37 -07:00
iommu-debug.c OMAP: iommu: add initial debugfs support 2009-08-28 10:54:41 -07:00
iommu.c omap: iommu: fix wrong condition check for SUPERSECTION 2009-10-22 14:46:32 -07:00
iopgtable.h omap iommu: tlb and pagetable primitives 2009-05-05 14:52:39 +03:00
iovmm.c omap: iovmm: Add missing mutex_unlock 2009-10-06 08:31:50 -07:00
Kconfig OMAP2/3 PM: create the OMAP PM interface and add a default OMAP PM no-op layer 2009-09-03 20:14:01 +03:00
mailbox.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
Makefile OMAP2/3/4 core: create omap_device layer 2009-09-03 20:14:05 +03:00
mcbsp.c omap: McBSP: Fix incorrect receiver stop in omap_mcbsp_stop 2009-10-14 09:56:35 -07:00
mux.c ARM: OMAP4: Add minimal support for omap4 2009-05-28 14:16:04 -07:00
ocpi.c [ARM] Convert asm/io.h to linux/io.h 2008-09-06 12:10:45 +01:00
omap_device.c OMAP2/3/4 core: create omap_device layer 2009-09-03 20:14:05 +03:00
omap-pm-noop.c OMAP2/3 PM: create the OMAP PM interface and add a default OMAP PM no-op layer 2009-09-03 20:14:01 +03:00
sram.c omap: SRAM: flush the right address after memcpy in omap_sram_push 2009-10-06 08:31:50 -07:00
usb.c ARM: OMAP: get rid of OMAP_TAG_USB, v2 2009-03-23 18:51:20 -07:00