]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mpic: Pass first free vector number to mpic_setup_error_int()
authorBharat Bhushan <Bharat.Bhushan@nxp.com>
Fri, 29 Jun 2018 10:24:32 +0000 (15:54 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Jul 2018 11:58:09 +0000 (21:58 +1000)
commit3ba3a94e9043882ec4ac9b478e84aa3140cdcefe
tree87e82200dffc020248d7a970d3202cd73dce719e
parent1bf04be0ebb80f5c0595f1da9dda5c3e9fa173d3
powerpc/mpic: Pass first free vector number to mpic_setup_error_int()

Update the comment to account for the spurious interrupt number. The
code was already accounting for it, but that was unclear because it
was achieved by mpic_setup_error_int() knowing that the number it was
passed was the last used vector, rather than the first free vector.

So change the meaning of the argument to the first free vector and
update the caller to pass 13, instead of 12, to achieve the same
result.

Signed-off-by: Bharat Bhushan <Bharat.Bhushan@nxp.com>
[mpe: Rewrite change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/fsl_mpic_err.c
arch/powerpc/sysdev/mpic.c