]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: ks8851: Clean up chip ID readout
authorMarek Vasut <marex@denx.de>
Wed, 25 Mar 2020 17:15:46 +0000 (18:15 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 22 May 2020 17:46:45 +0000 (19:46 +0200)
commiteb69d8bf3c043f126077e6b0905def8cca5c4723
tree221a241057ec2a4b2277f02d6c4a82ec1cb2f549
parent63f22f5998bc813ae5eacbf9210aa15cf80c0177
net: ks8851: Clean up chip ID readout

There is only one chip ID in the table of chip IDs for this chip.
Read out the chip ID instead and mask off the last "revision" bit
to check the chip ID, this works for all chips in the family. Then
drop the chip ID passing around.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ks8851_mll.c