mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-27 06:01:12 +00:00
spmi: qpnp-int: Fix bug in setting interrupt type
Fix a bug where the code neglects to set the INT_POLARITY_LOW register to the correct value for the case IRQF_TRIGGER_LOW. It should be set with a '1' for the corresponding interrupt bit. Change-Id: Ib05193633b0e7798f5e8ac4ddfb8744a67f8c546 Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
This commit is contained in:
parent
1834bcc3fb
commit
a7285c4cc3
@ -240,7 +240,7 @@ static int qpnpint_irq_set_type(struct irq_data *d, unsigned int flow_type)
|
||||
if (flow_type & IRQF_TRIGGER_HIGH)
|
||||
per_d->pol_high |= irq_d->mask_shift;
|
||||
else
|
||||
per_d->pol_high &= ~irq_d->mask_shift;
|
||||
per_d->pol_low |= irq_d->mask_shift;
|
||||
}
|
||||
|
||||
buf[0] = per_d->type;
|
||||
|
Loading…
Reference in New Issue
Block a user