generic: ar8216: move chip id reading into a separate function
authorChuanhong Guo <gch981213@gmail.com>
Thu, 10 Jan 2019 05:05:00 +0000 (13:05 +0800)
committerPetr Štetiar <ynezz@true.cz>
Sun, 24 Mar 2019 00:44:25 +0000 (01:44 +0100)
commit15323c4ef8cce5c127c250d93f7ea09a33cb9dd6
tree4704e65f776bd6bedbcc1c28781bb8c926f2d772
parent3771176c9ef9b5d231e9019bc0c872dbe3617209
generic: ar8216: move chip id reading into a separate function

for mdio-device probing we still need to read chip id but ar8xxx_chip
can be determined using drvdata. We can't distinguish the buggy
standalone ar8216 and the builtin ar8216 in ar724x/ar933x using chip
id.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/generic/files/drivers/net/phy/ar8216.c