common/sfc_efx/base: factor out wrapper to set PHY link
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 13 Oct 2020 13:45:20 +0000 (14:45 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:17 +0000 (19:48 +0200)
commit252b2aec3938b1f1739b7468dbb3ac7a6003d84f
tree5a4e49e02ba47c1456fe38a43c8d9e1fb05d9f9d
parentd9bc45879c0fd1e03f0cfef8a690c6bc6cea4cdf
common/sfc_efx/base: factor out wrapper to set PHY link

Make ef10_phy_reconfigure() simpler to read and less error-prone.
Avoid confusing case when two MCDI's are called from one function.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/common/sfc_efx/base/ef10_phy.c