]> git.baikalelectronics.ru Git - uboot.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)
commitb97031a8c46f18b1e4a13f74e39ab236232a236a
tree221a241057ec2a4b2277f02d6c4a82ec1cb2f549
parentdc9bf7d071c7409c4b85c081d1d91cbb15f0f53f
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