From: David S. Miller Date: Tue, 21 Jun 2016 07:58:36 +0000 (-0400) Subject: Merge branch 'dsa-mv88e6xxx-probe-compatible' X-Git-Tag: v4.14-rc1~2816^2~293 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4906ce45978ca958da687d6706a9ee85162ef69d;p=platform%2Fkernel%2Flinux-rpi.git Merge branch 'dsa-mv88e6xxx-probe-compatible' Vivien Didelot says: ==================== net: dsa: mv88e6xxx: probe compatible This patchset factorizes the legacy and new SMI probing and abstracts the switch register accesses. This simplifies adding support for new chips or alternative register accesses. This will allow us to use a compatible chip info to describe how to access the SMI device and its switch ID register at probe time. For the legacy probe, we fix the compatible info to 88E6085. For the MDIO probe, we will use the compatible info from the device node data. All patches are reviewed. Changes since v4: - fix debug printing (was 'val' instead of '*val') Changes since v3 [3]: - better register access abstraction using the chip structure Changes since v2 [2]: - do not guess compatible model in legacy probe - add low level SMI API using a chip structure - allocate before probe and detection - add 3 cosmetic patches Changes since v1 [1]: - merge style fix from Ben Dooks - add Acked-by/Reviewed-by tags - drop one compatible string per model - detect the SMI device based on the compatible info - add an SMI ops structure [1] https://lkml.org/lkml/2016/6/8/1201 [2] https://lkml.org/lkml/2016/6/14/671 [3] https://lkml.org/lkml/2016/6/17/995 ==================== Signed-off-by: David S. Miller --- 4906ce45978ca958da687d6706a9ee85162ef69d