[PATCH] bus: imx-aipstz: set default value for opacr registers

Shengjiu Wang shengjiu.wang at gmail.com
Fri Jan 23 01:59:33 PST 2026


On Fri, Jan 23, 2026 at 5:11 PM Daniel Baluta <daniel.baluta at oss.nxp.com> wrote:
>
> On 1/23/26 10:48, Shengjiu Wang wrote:
> > The sdma script app_2_mcu needs the permission to access the peripheral
> > devices, 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 apis bus, so set default
> > value for all opacr registers, that the peripheral does not require
> > supervisor privilege level for accesses.
> >
> > Signed-off-by: Shengjiu Wang <shengjiu.wang at nxp.com>
> > ---
> >  drivers/bus/imx-aipstz.c | 20 ++++++++++++++++++++
> >  1 file changed, 20 insertions(+)
> >
> <snip>
> >  static const struct of_device_id imx_aipstz_match_table[] = {
> > @@ -84,6 +99,11 @@ static const struct dev_pm_ops imx_aipstz_pm_ops = {
> >   */
> >  static const struct imx_aipstz_config imx8mp_aipstz_default_cfg = {
> >       .mpr0 = 0x77777777,
> > +     .opacr0 = 0x0,
> > +     .opacr1 = 0x0,
> > +     .opacr2 = 0x0,
> > +     .opacr3 = 0x0,
> > +     .opacr4 = 0x0,
> >  };
> >
> No need to zero these fields as they are zero by default being part of a global var.

right,  I will remove them.

Best regards
Shengjiu Wang
>
>



More information about the linux-arm-kernel mailing list