Re: [PATCH 2/6] net: stmmac: dwmac-sun8i: remove regulator

From: LABBE Corentin
Date: Mon May 09 2022 - 10:38:52 EST


Le Mon, May 09, 2022 at 03:09:07PM +0100, Andre Przywara a écrit :
> On Mon, 9 May 2022 07:48:53 +0000
> Corentin Labbe <clabbe@xxxxxxxxxxxx> wrote:
>
> Hi,
>
> > Now regulator is handled by phy core, there is no need to handle it in
> > stmmac driver.
>
> I don't think you can do that, since we definitely need to maintain
> compatibility with *older* DTs.
> Is there a real need for this patch, or is it just a cleanup?
> I mean we should be able to keep both approaches in, and the respective
> board and DT version selects which it is using.
>
> Cheers,
> Andre
>

It is just a cleanup. But yes, probably keeping it will be necessary for easy compatibility.