Re: [PATCH v1 5/9] phy: qcom-qmp: Get dp_com I/O resource by index

From: Bjorn Andersson
Date: Wed Aug 26 2020 - 21:59:49 EST


On Wed 26 Aug 16:32 CDT 2020, Stephen Boyd wrote:

> Quoting Bjorn Andersson (2020-08-25 21:36:16)
> > On Tue 25 Aug 21:47 CDT 2020, Stephen Boyd wrote:
> >
> > > The dp_com resource is always at index 1 according to the dts files in
> > > the kernel. Get this resource by index so that we don't need to make
> > > future additions to the DT binding use 'reg-names'.
> > >
> >
> > Afaict the DT binding for the USB/DP phy defines that there should be a
> > reg name of "dp_com" and the current dts files all specifies this. Am I
> > missing something?
>
> Yes the binding enforces this but this patch is removing that
> enforcement and instead mandating that dp_com is always at index 1 (i.e.
> the second one) so that we can add the DP serdes region directly after
> and avoid adding yet another reg-names property. I changed the binding
> for this usb3-dp phy compatible to make reg-names optional as well. I
> don't see any gain from using reg-names.
>

Thanks for the explanation, I don't have any objections to this.

> >
> > PS. Why isn't this a devm_platform_ioremap_resource{,_byname}()?
>
> Sure. I'll roll that into this patch.

Thanks,
Bjorn