* [PATCH] gianfar: Call gfar_halt_nodisable() from gfar_halt().
@ 2008-08-12 20:10 Scott Wood
2008-08-14 8:28 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Scott Wood @ 2008-08-12 20:10 UTC (permalink / raw)
To: jgarzik; +Cc: netdev, linuxppc-dev
gfar_halt() was factored out into halting and disabling by commit
d87eb12785c14de1586e3bad86ca2c0991300339, as the suspend() method
only wants to do the former. However, the call to gfar_halt_nodisable()
from gfar_halt() apparently got lost during the patch respin process.
This adds it back.
Signed-off-by: Scott Wood <scottwood@freescale.com>
---
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 ca6cf6e..999d691 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
static void gfar_vlan_rx_register(struct net_device *netdev,
struct vlan_group *grp);
void gfar_halt(struct net_device *dev);
-#ifdef CONFIG_PM
static void gfar_halt_nodisable(struct net_device *dev);
-#endif
void gfar_start(struct net_device *dev);
static void gfar_clear_exact_match(struct net_device *dev);
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)
}
-#ifdef CONFIG_PM
/* Halt the receive and transmit queues */
static void gfar_halt_nodisable(struct net_device *dev)
{
@@ -657,7 +654,6 @@ static void gfar_halt_nodisable(struct net_device *dev)
cpu_relax();
}
}
-#endif
/* Halt the receive and transmit queues */
void gfar_halt(struct net_device *dev)
@@ -666,6 +662,8 @@ void gfar_halt(struct net_device *dev)
struct gfar __iomem *regs = priv->regs;
u32 tempval;
+ gfar_halt_nodisable(dev);
+
/* Disable Rx and Tx */
tempval = gfar_read(®s->maccfg1);
tempval &= ~(MACCFG1_RX_EN | MACCFG1_TX_EN);
--
1.5.6.rc1.6.gc53ad.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gianfar: Call gfar_halt_nodisable() from gfar_halt().
2008-08-12 20:10 [PATCH] gianfar: Call gfar_halt_nodisable() from gfar_halt() Scott Wood
@ 2008-08-14 8:28 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-08-14 8:28 UTC (permalink / raw)
To: Scott Wood; +Cc: netdev, linuxppc-dev
Scott Wood wrote:
> gfar_halt() was factored out into halting and disabling by commit
> d87eb12785c14de1586e3bad86ca2c0991300339, as the suspend() method
> only wants to do the former. However, the call to gfar_halt_nodisable()
> from gfar_halt() apparently got lost during the patch respin process.
>
> This adds it back.
>
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> ---
> drivers/net/gianfar.c | 6 ++----
> 1 files changed, 2 insertions(+), 4 deletions(-)
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-14 8:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 20:10 [PATCH] gianfar: Call gfar_halt_nodisable() from gfar_halt() Scott Wood
2008-08-14 8:28 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).