]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bus: imx-aipstz: set default value for opacr registers
authorShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 26 Jan 2026 09:11:56 +0000 (17:11 +0800)
committerFrank Li <Frank.Li@nxp.com>
Tue, 24 Feb 2026 20:51:29 +0000 (15:51 -0500)
commit26279c8d5ede072e8fad9b2f14b03fc27888f471
tree366bd525db9af9175de5637488910b362f0ec064
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
bus: imx-aipstz: set default value for opacr registers

The sdma script app_2_mcu needs the permission to access the peripheral
devices:

1) SDMA2 transactions are set to user-mode in this particular case.
2) This type of script doesn't use the peripheral interface (connected
directly to SPBA), but it uses the peripheral DMA interface, then the
SDMA2-issued transactions are subjected to AIPSTZ5's security-related
checks.

So need to clear the Supervisor Protect bit of SPBA2, otherwise the sdma
script can't work. As the imx-aipstz is a common driver for all aips bus,
so set default value (zero) for all opacr registers.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
drivers/bus/imx-aipstz.c