net: stmmac: dwmac-qcom-ethqos: Use loopback_en for all speeds
authorAndrew Halaney <ahalaney@redhat.com>
Tue, 11 Apr 2023 20:04:08 +0000 (15:04 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 13 Apr 2023 10:50:47 +0000 (12:50 +0200)
commit030f1d5972aaac8584a8ecad4d2739c6da4a20ea
tree786fb67b4313d0e0979e5d17d18afd64ad6a0b6d
parent164a9ebe97420cbe801140bb3de039695e09e205
net: stmmac: dwmac-qcom-ethqos: Use loopback_en for all speeds

It seems that this variable should be used for all speeds, not just
1000/100.

While at it refactor it slightly to be more readable, including fixing
the typo in the variable name.

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c