]> 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)
commit42d3ca7924a0415eff945a76dad28fa414ea033a
tree1d09a861254d695644481fcc8f9adf17c04d07c3
parent96b293436241259515fbf27771bc8ef96464412a
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: e2a7be5ea940 ('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