v4l/atomisp: let pmu driver handle power island states
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Wed, 11 Jan 2012 06:44:25 +0000 (22:44 -0800)
committerbuildbot <buildbot@intel.com>
Fri, 30 Mar 2012 11:56:27 +0000 (04:56 -0700)
commit040dd3d09f55f140de4afe48e66f1b40539fe3ca
treedb58e3714afbab50724d149cb20273bd33cf81ea
parent5a54a24bbcfa008124e97dbed0a42c1c1b604081
v4l/atomisp: let pmu driver handle power island states

BZ: 25359

When atomisp is treated as real PCI device as it should be, ISP
often refuses to transition from D3hot to D0 state. This is likely
caused by an ordering problem where in resume PCI PM core restores
config space prior to calling pci_set_power_state and the driver's
rpm resume function. PMCSR in PCI PM cap is set to D0 from D3 but
refuses to transition possibly due to the fact that power islands
are still down for atomisp.

This patch moves power island control from driver rpm callbacks to
pmu driver such that the action is better coordinated.

Change-Id: I83ac338aa391793a2da12371dd9b6787370cb21d
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-on: http://android.intel.com:8080/36782
Reviewed-by: Shevchenko, Andriy <andriy.shevchenko@intel.com>
Reviewed-by: Mansoor, Illyas <illyas.mansoor@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/platform/intel-mid/mfld-pmu.c
drivers/media/video/atomisp/atomisp_cmd.c
drivers/media/video/atomisp/atomisp_cmd.h
drivers/media/video/atomisp/atomisp_v4l2.c