]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitaaf83aecd294fd61db6b34051f718f3e7ea34c22
tree1d09a861254d695644481fcc8f9adf17c04d07c3
parentb6bd53f9c4e825fca82fe1392157c78443c814ab
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: 0db01097cabd ('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