mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
platform/x86: intel_mid_powerbtn: Use SCU IPC directly
On older Intel MID platforms is using SCU IPC library beneath MSIC calls. To make access unified between old and new platforms use SCU IPC library directly. It's safe since serialization is done in the library. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
ca45ba0688
commit
25b4a38fcf
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ static int mid_pbstat(struct mid_pb_ddata *ddata, int *value)
|
|||
int ret;
|
||||
u8 pbstat;
|
||||
|
||||
ret = intel_msic_reg_read(ddata->pbstat_addr, &pbstat);
|
||||
ret = intel_scu_ipc_ioread8(ddata->pbstat_addr, &pbstat);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@ -76,7 +76,7 @@ static int mid_pbstat(struct mid_pb_ddata *ddata, int *value)
|
|||
|
||||
static int mid_irq_ack(struct mid_pb_ddata *ddata)
|
||||
{
|
||||
return intel_msic_reg_update(ddata->mirqlvl1_addr, 0, MSIC_PWRBTNM);
|
||||
return intel_scu_ipc_update_register(ddata->mirqlvl1_addr, 0, MSIC_PWRBTNM);
|
||||
}
|
||||
|
||||
static int mrfld_setup(struct mid_pb_ddata *ddata)
|
||||
|
|
Loading…
Reference in a new issue