Re: [PATCH net-next 2/2] net: macb: Add zynqmp SGMII dynamic configuration support

From: Andrew Lunn
Date: Fri Jul 29 2022 - 09:09:04 EST


> > > How robust is this? What if somebody specified a different power domain?
> >
> > Some background - init_reset_optional() fn is implemented for three
> > platforms i.e., zynqmp, versal, MPFS.
> >
> > zynqmp_pm_set_gem_config API expect first argument as GEM node id so,
> > power-domain DT property is passed to get node ID.
> >
> > However, power-domain property is read only if underlying firmware
> > supports configuration of GEM secure space. It's only true for zynqmp SGMII
> > case and for zynqmp power domain is fixed.
> > In addition to it there is an error handling in power-domain property parsing.
> > Hope this answers the question.
>
> Please let me know the implementation looks fine or needs any modification?

Given that explanation, it looks fine.

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew