]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Use 16-bit writes to program MAC address
authorMarek Vasut <marex@denx.de>
Thu, 28 May 2020 22:21:35 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:30:04 +0000 (16:30 -0700)
commite11508e8b07c12bc67fd3d20621c35ce3d71939a
tree0d7d7f12b7e1124b22a9d894d100c4eb70ea40bb
parentb3d8c1461b60069da9b2cac8898ca28421ebc456
net: ks8851: Use 16-bit writes to program MAC address

On the SPI variant of KS8851, the MAC address can be programmed with
either 8/16/32-bit writes. To make it easier to support the 16-bit
parallel option of KS8851 too, switch both the MAC address programming
and readout to 16-bit operations.

Remove ks8851_wrreg8() as it is not used anywhere anymore.

There should be no functional change.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: Lukas Wunner <lukas@wunner.de>
Cc: Petr Stetiar <ynezz@true.cz>
Cc: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c
drivers/net/ethernet/micrel/ks8851.h