]> git.dujemihanovic.xyz Git - u-boot.git/commit
powerpc: mpc8xxx: Extend find_law() to find_law_by_addr_id()
authorPali Rohár <pali@kernel.org>
Thu, 6 Jun 2024 16:33:23 +0000 (18:33 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jul 2024 19:07:43 +0000 (13:07 -0600)
commit89b009dfdcb7077e64e3d104e12d7377721c9102
treeeee18c1646f5c711247dea0a2c0f9ad3947839ce
parent07928d4fec0e07ee57707011e799c9933afbc1c1
powerpc: mpc8xxx: Extend find_law() to find_law_by_addr_id()

The find_law() function searches for LAW just by physical address. This
is unsuitable for cases with overlapping LAWs. Extend it to
find_law_by_addr_id(), which searches for LAW by physical address and
target id.

Add a static inline definition of the original find_law() into fsl_law.h
header.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
arch/powerpc/cpu/mpc8xxx/law.c
arch/powerpc/include/asm/fsl_law.h