Skip to content

Commit

Permalink
sfc: Remove unneeded register write
Browse files Browse the repository at this point in the history
This was only ever needed for an FPGA version of Falcon.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Dec 13, 2008
1 parent 23d30f0 commit 2b2734d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/net/sfc/falcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2870,15 +2870,6 @@ int falcon_init_nic(struct efx_nic *efx)
unsigned thresh;
int rc;

/* Set up the address region register. This is only needed
* for the B0 FPGA, but since we are just pushing in the
* reset defaults this may as well be unconditional. */
EFX_POPULATE_OWORD_4(temp, ADR_REGION0, 0,
ADR_REGION1, (1 << 16),
ADR_REGION2, (2 << 16),
ADR_REGION3, (3 << 16));
falcon_write(efx, &temp, ADR_REGION_REG_KER);

/* Use on-chip SRAM */
falcon_read(efx, &temp, NIC_STAT_REG);
EFX_SET_OWORD_FIELD(temp, ONCHIP_SRAM, 1);
Expand Down

0 comments on commit 2b2734d

Please sign in to comment.