Hi Michael. On Fri, Sep 11, 2020 at 03:54:03PM +0200, Michael Tretter wrote: > The phy timings are already shifted to the field position. If the driver > is reused on multiple platforms, this exposes the field positions to the > platform code. > > Store only the timing values in the platform data and shift the value to > the field when writing the fields to the registers. > > Signed-off-by: Michael Tretter <m.tretter@xxxxxxxxxxxxxx> This and the following patch smells like the regmap functionality is partly open coded. regmaps supports defining different register layouts and select the correct layout at runtime. See for example: https://www.collabora.com/news-and-blog/blog/2020/05/27/using-regmaps-to-make-linux-drivers-more-generic/ or https://www.youtube.com/watch?v=0RPDGANArFc Some parts is not a perfect fit - but using regmaps will make it better as a general and well-known solution is used. @Adrian - see https://lore.kernel.org/dri-devel/20200911135413.3654800-1-m.tretter@xxxxxxxxxxxxxx/T/#m8e211c8cce915168cf2b8c4eef1c7ec9b8447af8 for the original patch. Sam