]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: Try to get named core clock first
authorJisheng Zhang <jszhang@marvell.com>
Wed, 20 Jan 2016 11:27:23 +0000 (19:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jan 2016 20:04:59 +0000 (12:04 -0800)
commitcbd58590927b5c98999646d3ffb6c0c5a713198b
tree9c3bc5665b69bc0ac82b19b98f19066239eb8d2f
parentb342119468d287d313e4f66ae33b3bfb9545aad0
net: mvneta: Try to get named core clock first

Some platforms may provide more than one clk for the mvneta IP, for
example Marvell BG4CT provides one clk for the mac core, and one
clk for the AXI bus logic.

To support for more than one clock, we'll need to distinguish between
the clock by name. Change clock probing to first try to get "core"
clock before falling back to unnamed clock.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c