mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
net: ipa: don't bother zeroing an already zero register
In ipa_interrupt_suspend_clear_all(), if the SUSPEND_INFO register read contains no set bits, there's no interrupt condition to clear. Skip the write to the clear register in that case. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
423df2e09d
commit
f9345952e7
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ static void ipa_interrupt_suspend_clear_all(struct ipa_interrupt *interrupt)
|
|||
val = ioread32(ipa->reg_virt + reg_n_offset(reg, unit));
|
||||
|
||||
/* SUSPEND interrupt status isn't cleared on IPA version 3.0 */
|
||||
if (ipa->version == IPA_VERSION_3_0)
|
||||
if (!val || ipa->version == IPA_VERSION_3_0)
|
||||
continue;
|
||||
|
||||
reg = ipa_reg(ipa, IRQ_SUSPEND_CLR);
|
||||
|
|
Loading…
Reference in a new issue