mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
i2c: i2c-msm-v2: set irq flag to IRQF_EARLY_RESUME for i2c
I2C interrupts get enabled/disabled during transfers,if a client driver tries to do transfer as part of early system resume, i2c interrupts may not fire as they are not registered as EARLY_RESUME IRQ's. Change is to register interrupt as IRQF_EARLY_RESUME. Change-Id: Iecbe887c51302dc64632ef45daee4e5ba3d18aa2 Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
This commit is contained in:
parent
64ddfd32ef
commit
c9289da0fe
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2014-2019, 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2019, 2020-2021 The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
/*
|
||||
|
|
@ -2488,7 +2488,7 @@ static int i2c_msm_rsrcs_irq_init(struct platform_device *pdev,
|
|||
return irq;
|
||||
}
|
||||
|
||||
ret = request_irq(irq, i2c_msm_qup_isr, IRQF_TRIGGER_HIGH,
|
||||
ret = request_irq(irq, i2c_msm_qup_isr, IRQF_TRIGGER_HIGH | IRQF_EARLY_RESUME,
|
||||
"i2c-msm-v2-irq", ctrl);
|
||||
if (ret) {
|
||||
dev_err(ctrl->dev, "error request_irq(irq_num:%d ) ret:%d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue