diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-19 12:59:02 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-19 12:59:02 -0400 |
| commit | 4309e092421e08f411830b2675bc1538a9b90e9b (patch) | |
| tree | 018a21fceba5edb73ec0dfb770a602eef54cb564 /drivers/net/gianfar.c | |
| parent | 1fca25427482387689fa27594c992a961d98768f (diff) | |
| parent | 195648bbc5ae0848e82f771ecf4cd7497054c212 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (94 commits)
pkt_sched: Prevent livelock in TX queue running.
Revert "pkt_sched: Add BH protection for qdisc_stab_lock."
Revert "pkt_sched: Protect gen estimators under est_lock."
pkt_sched: remove bogus block (cleanup)
nf_nat: use secure_ipv4_port_ephemeral() for NAT port randomization
netfilter: ctnetlink: sleepable allocation with spin lock bh
netfilter: ctnetlink: fix sleep in read-side lock section
netfilter: ctnetlink: fix double helper assignation for NAT'ed conntracks
netfilter: ipt_addrtype: Fix matching of inverted destination address type
dccp: Fix panic caused by too early termination of retransmission mechanism
pkt_sched: Don't hold qdisc lock over qdisc_destroy().
pkt_sched: Add lockdep annotation for qdisc locks
pkt_sched: Never schedule non-root qdiscs.
removed unused #include <version.h>
rt2x00: Fix txdone_entry_desc_flags
b43: Fix for another Bluetooth Coexistence SPROM Programming error for BCM4306
mac80211: remove kdoc references to IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE
p54u: reset skb's data/tail pointer on requeue
p54: move p54_vdcf_init to the right place.
iwlwifi: fix printk newlines
...
Diffstat (limited to 'drivers/net/gianfar.c')
| -rw-r--r-- | drivers/net/gianfar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index ca6cf6ecb37b..999d69168277 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
| @@ -134,9 +134,7 @@ static int gfar_process_frame(struct net_device *dev, struct sk_buff *skb, int l | |||
| 134 | static void gfar_vlan_rx_register(struct net_device *netdev, | 134 | static void gfar_vlan_rx_register(struct net_device *netdev, |
| 135 | struct vlan_group *grp); | 135 | struct vlan_group *grp); |
| 136 | void gfar_halt(struct net_device *dev); | 136 | void gfar_halt(struct net_device *dev); |
| 137 | #ifdef CONFIG_PM | ||
| 138 | static void gfar_halt_nodisable(struct net_device *dev); | 137 | static void gfar_halt_nodisable(struct net_device *dev); |
| 139 | #endif | ||
| 140 | void gfar_start(struct net_device *dev); | 138 | void gfar_start(struct net_device *dev); |
| 141 | static void gfar_clear_exact_match(struct net_device *dev); | 139 | static void gfar_clear_exact_match(struct net_device *dev); |
| 142 | static void gfar_set_mac_for_addr(struct net_device *dev, int num, u8 *addr); | 140 | static void gfar_set_mac_for_addr(struct net_device *dev, int num, u8 *addr); |
| @@ -631,7 +629,6 @@ static void init_registers(struct net_device *dev) | |||
| 631 | } | 629 | } |
| 632 | 630 | ||
| 633 | 631 | ||
| 634 | #ifdef CONFIG_PM | ||
| 635 | /* Halt the receive and transmit queues */ | 632 | /* Halt the receive and transmit queues */ |
| 636 | static void gfar_halt_nodisable(struct net_device *dev) | 633 | static void gfar_halt_nodisable(struct net_device *dev) |
| 637 | { | 634 | { |
| @@ -657,7 +654,6 @@ static void gfar_halt_nodisable(struct net_device *dev) | |||
| 657 | cpu_relax(); | 654 | cpu_relax(); |
| 658 | } | 655 | } |
| 659 | } | 656 | } |
| 660 | #endif | ||
| 661 | 657 | ||
| 662 | /* Halt the receive and transmit queues */ | 658 | /* Halt the receive and transmit queues */ |
| 663 | void gfar_halt(struct net_device *dev) | 659 | void gfar_halt(struct net_device *dev) |
| @@ -666,6 +662,8 @@ void gfar_halt(struct net_device *dev) | |||
| 666 | struct gfar __iomem *regs = priv->regs; | 662 | struct gfar __iomem *regs = priv->regs; |
| 667 | u32 tempval; | 663 | u32 tempval; |
| 668 | 664 | ||
| 665 | gfar_halt_nodisable(dev); | ||
| 666 | |||
| 669 | /* Disable Rx and Tx */ | 667 | /* Disable Rx and Tx */ |
| 670 | tempval = gfar_read(®s->maccfg1); | 668 | tempval = gfar_read(®s->maccfg1); |
| 671 | tempval &= ~(MACCFG1_RX_EN | MACCFG1_TX_EN); | 669 | tempval &= ~(MACCFG1_RX_EN | MACCFG1_TX_EN); |
