From: David S. Miller Date: Sun, 17 Apr 2016 22:54:15 +0000 (-0400) Subject: Merge branch 'dsa-mv88e6xxx-switch-factorization' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ccd37cffe39d7d4f1c1efcd42ec829ec16c7db66;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Merge branch 'dsa-mv88e6xxx-switch-factorization' Vivien Didelot says: ==================== net: dsa: mv88e6xxx: factorize switch info This patchset factorizes the mv88e6xxx code by sharing a new extendable info structure to store static data such as switch family, product number, number of ports, number of databases and the name. The next step is to add a "flags" bitmap member to the info structure in order to simplify the shared code with a feature-based logic instead of checking their family/ID. This is a step forward having a single mv88e6xxx driver supporting many similar devices, like any usual Linux driver. Changes v3 -> v4: - constify probed name in DSA - rebase patchset above conflicting commit 48ace4e Changes v2 -> v3: - update commit messages and add Andrew's tags - keep the info lookup code in a separated function - split the single switch ID reading in probe in a new commit Changes v1 -> v2: - define PORT_SWITCH_ID_PROD_NUM_* values - use plain struct mv88e6xxx_info - remove non used yet ps->rev ==================== Signed-off-by: David S. Miller --- ccd37cffe39d7d4f1c1efcd42ec829ec16c7db66