Commit 3bd93035 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

sfc: Rename struct efx_mcdi_phy_cfg to efx_mcdi_phy_data

Most of its members are constant capabilities, not configuration.  The
new name is also consistent with the name of the pointer to it in
struct efx_nic and the names of structures used by other PHY drivers.
Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8f574b35
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "nic.h" #include "nic.h"
#include "selftest.h" #include "selftest.h"
struct efx_mcdi_phy_cfg { struct efx_mcdi_phy_data {
u32 flags; u32 flags;
u32 type; u32 type;
u32 supported_cap; u32 supported_cap;
...@@ -35,7 +35,7 @@ struct efx_mcdi_phy_cfg { ...@@ -35,7 +35,7 @@ struct efx_mcdi_phy_cfg {
}; };
static int static int
efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_cfg *cfg) efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg)
{ {
u8 outbuf[MC_CMD_GET_PHY_CFG_OUT_LEN]; u8 outbuf[MC_CMD_GET_PHY_CFG_OUT_LEN];
size_t outlen; size_t outlen;
...@@ -259,7 +259,7 @@ static u32 ethtool_to_mcdi_cap(u32 cap) ...@@ -259,7 +259,7 @@ static u32 ethtool_to_mcdi_cap(u32 cap)
static u32 efx_get_mcdi_phy_flags(struct efx_nic *efx) static u32 efx_get_mcdi_phy_flags(struct efx_nic *efx)
{ {
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data; struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
enum efx_phy_mode mode, supported; enum efx_phy_mode mode, supported;
u32 flags; u32 flags;
...@@ -307,7 +307,7 @@ static u32 mcdi_to_ethtool_media(u32 media) ...@@ -307,7 +307,7 @@ static u32 mcdi_to_ethtool_media(u32 media)
static int efx_mcdi_phy_probe(struct efx_nic *efx) static int efx_mcdi_phy_probe(struct efx_nic *efx)
{ {
struct efx_mcdi_phy_cfg *phy_data; struct efx_mcdi_phy_data *phy_data;
u8 outbuf[MC_CMD_GET_LINK_OUT_LEN]; u8 outbuf[MC_CMD_GET_LINK_OUT_LEN];
u32 caps; u32 caps;
int rc; int rc;
...@@ -405,7 +405,7 @@ static int efx_mcdi_phy_probe(struct efx_nic *efx) ...@@ -405,7 +405,7 @@ static int efx_mcdi_phy_probe(struct efx_nic *efx)
int efx_mcdi_phy_reconfigure(struct efx_nic *efx) int efx_mcdi_phy_reconfigure(struct efx_nic *efx)
{ {
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data; struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
u32 caps = (efx->link_advertising ? u32 caps = (efx->link_advertising ?
ethtool_to_mcdi_cap(efx->link_advertising) : ethtool_to_mcdi_cap(efx->link_advertising) :
phy_cfg->forced_cap); phy_cfg->forced_cap);
...@@ -446,7 +446,7 @@ void efx_mcdi_phy_decode_link(struct efx_nic *efx, ...@@ -446,7 +446,7 @@ void efx_mcdi_phy_decode_link(struct efx_nic *efx,
*/ */
void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa) void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa)
{ {
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data; struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
u32 rmtadv; u32 rmtadv;
/* The link partner capabilities are only relevent if the /* The link partner capabilities are only relevent if the
...@@ -505,7 +505,7 @@ static void efx_mcdi_phy_remove(struct efx_nic *efx) ...@@ -505,7 +505,7 @@ static void efx_mcdi_phy_remove(struct efx_nic *efx)
static void efx_mcdi_phy_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) static void efx_mcdi_phy_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd)
{ {
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data; struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
u8 outbuf[MC_CMD_GET_LINK_OUT_LEN]; u8 outbuf[MC_CMD_GET_LINK_OUT_LEN];
int rc; int rc;
...@@ -535,7 +535,7 @@ static void efx_mcdi_phy_get_settings(struct efx_nic *efx, struct ethtool_cmd *e ...@@ -535,7 +535,7 @@ static void efx_mcdi_phy_get_settings(struct efx_nic *efx, struct ethtool_cmd *e
static int efx_mcdi_phy_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) static int efx_mcdi_phy_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd)
{ {
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data; struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
u32 caps; u32 caps;
int rc; int rc;
...@@ -674,7 +674,7 @@ static int efx_mcdi_bist(struct efx_nic *efx, unsigned int bist_mode, ...@@ -674,7 +674,7 @@ static int efx_mcdi_bist(struct efx_nic *efx, unsigned int bist_mode,
static int efx_mcdi_phy_run_tests(struct efx_nic *efx, int *results, static int efx_mcdi_phy_run_tests(struct efx_nic *efx, int *results,
unsigned flags) unsigned flags)
{ {
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data; struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
u32 mode; u32 mode;
int rc; int rc;
...@@ -712,7 +712,7 @@ static int efx_mcdi_phy_run_tests(struct efx_nic *efx, int *results, ...@@ -712,7 +712,7 @@ static int efx_mcdi_phy_run_tests(struct efx_nic *efx, int *results,
const char *efx_mcdi_phy_test_name(struct efx_nic *efx, unsigned int index) const char *efx_mcdi_phy_test_name(struct efx_nic *efx, unsigned int index)
{ {
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data; struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
if (phy_cfg->flags & (1 << MC_CMD_GET_PHY_CFG_BIST_LBN)) { if (phy_cfg->flags & (1 << MC_CMD_GET_PHY_CFG_BIST_LBN)) {
if (index == 0) if (index == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment