x86/mid/powerbtn: Use MSIC read/write instead of ipc_scu
authorMichael Demeter <michael.demeter@intel.com>
Mon, 5 Mar 2012 23:01:04 +0000 (15:01 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 6 Mar 2012 08:01:26 +0000 (09:01 +0100)
commit8bee7cea6c93b5514b672d1c347dad9960823f12
tree03ffc5021ee136136a6c49b9a4de1d0caa908846
parent1b7ccabcc372152d1492241610e52b8ea14b0968
x86/mid/powerbtn: Use MSIC read/write instead of ipc_scu

In the 2.6.36 kernel we did not have the MSIC driver.  Changed
all ipc_scu_reads/writes to use the MSIC driver and defines.
Added a fix from the 2.6.36 kernel where the SCU FW could send a
power button interrupt to the IA32 FW and the kernel was not
running yet.  This resulted in the interrupt not getting cleared
and the power button was ignored.  this fix just clears the
interrupt on start-up.

Signed-off-by: Michael Demeter <michael.demeter@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
[ Revert style-only changes. Remove unused variable. Fix comment style. ]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Cc: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-4runmso4t49p4waz5gcvy0ux@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/platform/x86/intel_mid_powerbtn.c