]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: Replace ad-hoc polling with regmap
authorMarek Vasut <marex@denx.de>
Thu, 27 Jun 2019 21:55:52 +0000 (23:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 02:25:02 +0000 (19:25 -0700)
commitbee82eb51d9ffa1fa74a5084fbb133c392b308d0
tree975462d8d8c50e744f06427386f04d6fc8b91315
parent672e9180e10dffa3e76aa0a026d5dfb5e8fd8607
net: dsa: microchip: Replace ad-hoc polling with regmap

Regmap provides polling function to poll for bits in a register,
use in instead of reimplementing it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Woojung Huh <Woojung.Huh@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.h