Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202612
b: refs/heads/master
c: 3bd9303
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Jun 2, 2010
1 parent d4832dd commit 087f37b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f574b35f22fbb9b5e5f1d11ad6b55b6f35f4533
refs/heads/master: 3bd9303500b1961d15aae783f17075936026ae79
20 changes: 10 additions & 10 deletions trunk/drivers/net/sfc/mcdi_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "nic.h"
#include "selftest.h"

struct efx_mcdi_phy_cfg {
struct efx_mcdi_phy_data {
u32 flags;
u32 type;
u32 supported_cap;
Expand All @@ -35,7 +35,7 @@ struct efx_mcdi_phy_cfg {
};

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];
size_t outlen;
Expand Down Expand Up @@ -259,7 +259,7 @@ static u32 ethtool_to_mcdi_cap(u32 cap)

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;
u32 flags;

Expand Down Expand Up @@ -307,7 +307,7 @@ static u32 mcdi_to_ethtool_media(u32 media)

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];
u32 caps;
int rc;
Expand Down Expand Up @@ -405,7 +405,7 @@ static int efx_mcdi_phy_probe(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 ?
ethtool_to_mcdi_cap(efx->link_advertising) :
phy_cfg->forced_cap);
Expand Down Expand Up @@ -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)
{
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data;
struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
u32 rmtadv;

/* The link partner capabilities are only relevent if the
Expand Down Expand Up @@ -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)
{
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];
int rc;

Expand Down Expand Up @@ -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)
{
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data;
struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
u32 caps;
int rc;

Expand Down Expand Up @@ -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,
unsigned flags)
{
struct efx_mcdi_phy_cfg *phy_cfg = efx->phy_data;
struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;
u32 mode;
int rc;

Expand Down Expand Up @@ -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)
{
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 (index == 0)
Expand Down

0 comments on commit 087f37b

Please sign in to comment.