]> git.baikalelectronics.ru Git - kernel.git/commit
xgene: Always get clk source, but ignore if it's missing for SGMII ports
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Thu, 3 Aug 2017 13:43:14 +0000 (15:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 18:30:37 +0000 (11:30 -0700)
commitf4360d9c12b6541019bb56de6e4d8d9a51bf7338
tree1d09a861254d695644481fcc8f9adf17c04d07c3
parentc7dde855c63998fb502382ad13fe5290484a638e
xgene: Always get clk source, but ignore if it's missing for SGMII ports

Even the driver doesn't do anything with the clk source for SGMII
ports it needs to be enabled by doing a devm_clk_get(), if there is
a clk source in DT.

Fixes: d15a78a38540 ('xgene: Don't fail probe, if there is no clk resource for SGMII interfaces')
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Tested-by: Laura Abbott <labbott@redhat.com>
Acked-by: Iyappan Subramanian <isubramanian@apm.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c