diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-02-03 04:31:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-03 22:12:47 -0500 |
commit | 754c653a4e62bfa19b4e015c45198863c4211947 (patch) | |
tree | a99304b8799c5b07bea7f4e40ed3885f6f3814bd /drivers/net/sfc | |
parent | 2291b20f4bee6a28087cf4f4b2b382a92063c8b5 (diff) |
sfc: Fix some incorrect or redundant comments
In particular, the comment about EVQ_RPTR_REG is based on inconsistent
preliminary hardware documentation, though the following code was
fixed long before release.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r-- | drivers/net/sfc/ethtool.c | 4 | ||||
-rw-r--r-- | drivers/net/sfc/falcon.c | 2 | ||||
-rw-r--r-- | drivers/net/sfc/net_driver.h | 12 | ||||
-rw-r--r-- | drivers/net/sfc/nic.c | 4 |
4 files changed, 7 insertions, 15 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index 635c4205b4fb..d9f9c02a928e 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -196,7 +196,7 @@ int efx_ethtool_get_settings(struct net_device *net_dev, | |||
196 | efx->phy_op->get_settings(efx, ecmd); | 196 | efx->phy_op->get_settings(efx, ecmd); |
197 | mutex_unlock(&efx->mac_lock); | 197 | mutex_unlock(&efx->mac_lock); |
198 | 198 | ||
199 | /* Falcon GMAC does not support 1000Mbps HD */ | 199 | /* GMAC does not support 1000Mbps HD */ |
200 | ecmd->supported &= ~SUPPORTED_1000baseT_Half; | 200 | ecmd->supported &= ~SUPPORTED_1000baseT_Half; |
201 | /* Both MACs support pause frames (bidirectional and respond-only) */ | 201 | /* Both MACs support pause frames (bidirectional and respond-only) */ |
202 | ecmd->supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause; | 202 | ecmd->supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause; |
@@ -216,7 +216,7 @@ int efx_ethtool_set_settings(struct net_device *net_dev, | |||
216 | struct efx_nic *efx = netdev_priv(net_dev); | 216 | struct efx_nic *efx = netdev_priv(net_dev); |
217 | int rc; | 217 | int rc; |
218 | 218 | ||
219 | /* Falcon GMAC does not support 1000Mbps HD */ | 219 | /* GMAC does not support 1000Mbps HD */ |
220 | if (ecmd->speed == SPEED_1000 && ecmd->duplex != DUPLEX_FULL) { | 220 | if (ecmd->speed == SPEED_1000 && ecmd->duplex != DUPLEX_FULL) { |
221 | EFX_LOG(efx, "rejecting unsupported 1000Mbps HD" | 221 | EFX_LOG(efx, "rejecting unsupported 1000Mbps HD" |
222 | " setting\n"); | 222 | " setting\n"); |
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c index f63a32cc9d24..1b8d83657aaa 100644 --- a/drivers/net/sfc/falcon.c +++ b/drivers/net/sfc/falcon.c | |||
@@ -1730,7 +1730,7 @@ static int falcon_set_wol(struct efx_nic *efx, u32 type) | |||
1730 | 1730 | ||
1731 | /************************************************************************** | 1731 | /************************************************************************** |
1732 | * | 1732 | * |
1733 | * Revision-dependent attributes used by efx.c | 1733 | * Revision-dependent attributes used by efx.c and nic.c |
1734 | * | 1734 | * |
1735 | ************************************************************************** | 1735 | ************************************************************************** |
1736 | */ | 1736 | */ |
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index 8f951e4f15be..ac77a252c7e2 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -101,9 +101,6 @@ do {if (net_ratelimit()) EFX_LOG(efx, fmt, ##args); } while (0) | |||
101 | * Special buffers are used for the event queues and the TX and RX | 101 | * Special buffers are used for the event queues and the TX and RX |
102 | * descriptor queues for each channel. They are *not* used for the | 102 | * descriptor queues for each channel. They are *not* used for the |
103 | * actual transmit and receive buffers. | 103 | * actual transmit and receive buffers. |
104 | * | ||
105 | * Note that for Falcon, TX and RX descriptor queues live in host memory. | ||
106 | * Allocation and freeing procedures must take this into account. | ||
107 | */ | 104 | */ |
108 | struct efx_special_buffer { | 105 | struct efx_special_buffer { |
109 | void *addr; | 106 | void *addr; |
@@ -300,7 +297,7 @@ struct efx_rx_queue { | |||
300 | * @dma_addr: DMA base address of the buffer | 297 | * @dma_addr: DMA base address of the buffer |
301 | * @len: Buffer length, in bytes | 298 | * @len: Buffer length, in bytes |
302 | * | 299 | * |
303 | * Falcon uses these buffers for its interrupt status registers and | 300 | * The NIC uses these buffers for its interrupt status registers and |
304 | * MAC stats dumps. | 301 | * MAC stats dumps. |
305 | */ | 302 | */ |
306 | struct efx_buffer { | 303 | struct efx_buffer { |
@@ -674,7 +671,7 @@ union efx_multicast_hash { | |||
674 | * @irq_status: Interrupt status buffer | 671 | * @irq_status: Interrupt status buffer |
675 | * @last_irq_cpu: Last CPU to handle interrupt. | 672 | * @last_irq_cpu: Last CPU to handle interrupt. |
676 | * This register is written with the SMP processor ID whenever an | 673 | * This register is written with the SMP processor ID whenever an |
677 | * interrupt is handled. It is used by falcon_test_interrupt() | 674 | * interrupt is handled. It is used by efx_nic_test_interrupt() |
678 | * to verify that an interrupt has occurred. | 675 | * to verify that an interrupt has occurred. |
679 | * @spi_flash: SPI flash device | 676 | * @spi_flash: SPI flash device |
680 | * This field will be %NULL if no flash device is present (or for Siena). | 677 | * This field will be %NULL if no flash device is present (or for Siena). |
@@ -723,8 +720,7 @@ union efx_multicast_hash { | |||
723 | * @loopback_modes: Supported loopback mode bitmask | 720 | * @loopback_modes: Supported loopback mode bitmask |
724 | * @loopback_selftest: Offline self-test private state | 721 | * @loopback_selftest: Offline self-test private state |
725 | * | 722 | * |
726 | * The @priv field of the corresponding &struct net_device points to | 723 | * This is stored in the private area of the &struct net_device. |
727 | * this. | ||
728 | */ | 724 | */ |
729 | struct efx_nic { | 725 | struct efx_nic { |
730 | char name[IFNAMSIZ]; | 726 | char name[IFNAMSIZ]; |
@@ -997,7 +993,7 @@ static inline void clear_bit_le(unsigned nr, unsigned char *addr) | |||
997 | * that the net driver will program into the MAC as the maximum frame | 993 | * that the net driver will program into the MAC as the maximum frame |
998 | * length. | 994 | * length. |
999 | * | 995 | * |
1000 | * The 10G MAC used in Falcon requires 8-byte alignment on the frame | 996 | * The 10G MAC requires 8-byte alignment on the frame |
1001 | * length, so we round up to the nearest 8. | 997 | * length, so we round up to the nearest 8. |
1002 | * | 998 | * |
1003 | * Re-clocking by the XGXS on RX can reduce an IPG to 32 bits (half an | 999 | * Re-clocking by the XGXS on RX can reduce an IPG to 32 bits (half an |
diff --git a/drivers/net/sfc/nic.c b/drivers/net/sfc/nic.c index 8d9696a38edf..b06f8e348307 100644 --- a/drivers/net/sfc/nic.c +++ b/drivers/net/sfc/nic.c | |||
@@ -623,10 +623,6 @@ void efx_nic_remove_rx(struct efx_rx_queue *rx_queue) | |||
623 | * | 623 | * |
624 | * This writes the EVQ_RPTR_REG register for the specified channel's | 624 | * This writes the EVQ_RPTR_REG register for the specified channel's |
625 | * event queue. | 625 | * event queue. |
626 | * | ||
627 | * Note that EVQ_RPTR_REG contains the index of the "last read" event, | ||
628 | * whereas channel->eventq_read_ptr contains the index of the "next to | ||
629 | * read" event. | ||
630 | */ | 626 | */ |
631 | void efx_nic_eventq_read_ack(struct efx_channel *channel) | 627 | void efx_nic_eventq_read_ack(struct efx_channel *channel) |
632 | { | 628 | { |