diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-29 10:10:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-29 20:23:54 -0500 |
commit | 76884835684411264cda2f15585261eb02183541 (patch) | |
tree | 585b42235745acf3bf161838b14682428175e670 /drivers/net/sfc/efx.c | |
parent | c1c4f453b61463df4df16f7aa5782fc0cfe05b9e (diff) |
sfc: Extend MTD driver for use with new NICs
In new NICs flash is managed by firmware and we will use high-level
operations on partitions rather than direct SPI commands. Add support
for multiple MTD partitions per flash device and remove the direct
link between MTD and SPI devices. Maintain a list of MTD partitions
in struct efx_nic.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r-- | drivers/net/sfc/efx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 75dcaaedc3e8..4fe6d635ef3b 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -1977,6 +1977,9 @@ static int efx_init_struct(struct efx_nic *efx, struct efx_nic_type *type, | |||
1977 | spin_lock_init(&efx->biu_lock); | 1977 | spin_lock_init(&efx->biu_lock); |
1978 | mutex_init(&efx->mdio_lock); | 1978 | mutex_init(&efx->mdio_lock); |
1979 | mutex_init(&efx->spi_lock); | 1979 | mutex_init(&efx->spi_lock); |
1980 | #ifdef CONFIG_SFC_MTD | ||
1981 | INIT_LIST_HEAD(&efx->mtd_list); | ||
1982 | #endif | ||
1980 | INIT_WORK(&efx->reset_work, efx_reset_work); | 1983 | INIT_WORK(&efx->reset_work, efx_reset_work); |
1981 | INIT_DELAYED_WORK(&efx->monitor_work, efx_monitor); | 1984 | INIT_DELAYED_WORK(&efx->monitor_work, efx_monitor); |
1982 | efx->pci_dev = pci_dev; | 1985 | efx->pci_dev = pci_dev; |