Hi Vivien > I'm working on a few patches right away to factorize this and lighten up > that part from your current refactoring of DSA.
Please take a look at the full series of 40 patches, before deciding what you want to clean up. It is too many to post at once, so i'm breaking them up into chunks. But that does mean some of the 'why' is missing, which i'm trying to add back via a good description in the cover note. https://github.com/lunn/linux.git v5.6-rc2-net-next-dsa-probe > Here's an example of duplicated code fixed for the 6131 PHY access code: > > http://ix.io/wJm I've done this already. Andrew