[PATCH v3 5/9] phy: qcom-qmp-pcie: turn secondary programming table into a pointer

Johan Hovold johan at kernel.org
Tue Sep 13 23:59:51 PDT 2022


On Fri, Sep 09, 2022 at 12:14:29PM +0300, Dmitry Baryshkov wrote:
> Having a complete struct qmp_phy_cfg_tables as a secondary field in the
> struct qmp_phy_cfg wastes memory, since most of the PHY configuration
> tables do not have the secondary table. Change it to be a pointer to
> lower the amount of wasted memory.

Please be a bit more specific.

We're talking about four pointers per configuration and there are
currently about 15 configurations.

Is the added complexity really worth saving 400 bytes on 64-bit?

Johan



More information about the linux-phy mailing list