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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user