]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] sk98lin: Reset Xmac when stopping the port
authorMirko Lindner <mlindner@syskonnect.de>
Fri, 30 Jan 2004 20:11:03 +0000 (15:11 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 30 Jan 2004 20:11:03 +0000 (15:11 -0500)
* Clear the Xmac fifo before stopping the port

drivers/net/sk98lin/h/skversion.h
drivers/net/sk98lin/skge.c

index e9b11d64eff6e45349f5e04f423fb76aeb18f5d6..c9be206fae601174335397d27b00a34e10dd1a70 100644 (file)
 #ifdef lint
 static const char SysKonnectFileId[] = "@(#) (C) SysKonnect GmbH.";
 static const char SysKonnectBuildNumber[] =
-       "@(#)SK-BUILD: 6.21 PL: 01"; 
+       "@(#)SK-BUILD: 6.22 PL: 01"; 
 #endif /* !defined(lint) */
 
-#define BOOT_STRING    "sk98lin: Network Device Driver v6.21\n" \
-                       "(C)Copyright 1999-2003 Marvell(R)."
+#define BOOT_STRING    "sk98lin: Network Device Driver v6.22\n" \
+                       "(C)Copyright 1999-2004 Marvell(R)."
 
-#define VER_STRING     "6.21"
+#define VER_STRING     "6.22"
 #define DRIVER_FILE_NAME       "sk98lin"
-#define DRIVER_REL_DATE                "Dec-15-2003"
+#define DRIVER_REL_DATE                "Jan-30-2004"
 
 
index 32cf0c1be5fae9df3860c4ebd6c9799dd7243ccc..390c31b2ac9bfeccfcb0dbb0c1f2465371fcf918 100644 (file)
@@ -2,8 +2,8 @@
  *
  * Name:       skge.c
  * Project:    GEnesis, PCI Gigabit Ethernet Adapter
- * Version:    $Revision: 1.42 $
- * Date:               $Date: 2003/12/12 10:05:43 $
+ * Version:    $Revision: 1.43 $
+ * Date:               $Date: 2004/01/29 15:47:07 $
  * Purpose:    The main driver source module
  *
  ******************************************************************************/
@@ -41,6 +41,9 @@
  * History:
  *
  *     $Log: skge.c,v $
+ *     Revision 1.43  2004/01/29 15:47:07  mlindner
+ *     Fix: Reset Xmac when stopping the port
+ *     
  *     Revision 1.42  2003/12/12 10:05:43  mlindner
  *     Fix: Format of error message corrected
  *     
@@ -2154,6 +2157,7 @@ struct SK_NET_DEVICE      *dev)
                EvPara.Para32[0] = pNet->NetNr;
                EvPara.Para32[1] = -1;
                SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_STOP, EvPara);
+               SkPnmiEvent(pAC, pAC->IoBase, SK_PNMI_EVT_XMAC_RESET, EvPara);
                SkEventDispatcher(pAC, pAC->IoBase);
                spin_unlock_irqrestore(&pAC->SlowPathLock, Flags);
                
@@ -5002,6 +5006,7 @@ SK_BOOL           DualNet;
                spin_lock_irqsave(
                        &pAC->TxPort[FromPort][TX_PRIO_LOW].TxDesRingLock,
                        Flags);
+
                SkGeStopPort(pAC, IoC, FromPort, SK_STOP_ALL, SK_HARD_RST);
                pAC->dev[Param.Para32[0]]->flags &= ~IFF_RUNNING;
                spin_unlock_irqrestore(