forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/…
…davem/net-2.6 Conflicts: drivers/net/forcedeth.c
- Loading branch information
Showing
30 changed files
with
214 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1545,6 +1545,13 @@ W: http://www.fi.muni.cz/~kas/cosa/ | |
S: Maintained | ||
F: drivers/net/wan/cosa* | ||
|
||
CPMAC ETHERNET DRIVER | ||
P: Florian Fainelli | ||
M: [email protected] | ||
L: [email protected] | ||
S: Maintained | ||
F: drivers/net/cpmac.c | ||
|
||
CPU FREQUENCY DRIVERS | ||
P: Dave Jones | ||
M: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,12 @@ | |
|
||
#include "atl1.h" | ||
|
||
#define ATLX_DRIVER_VERSION "2.1.3" | ||
MODULE_AUTHOR("Xiong Huang <[email protected]>, \ | ||
Chris Snook <[email protected]>, Jay Cliburn <[email protected]>"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_VERSION(ATLX_DRIVER_VERSION); | ||
|
||
/* Temporary hack for merging atl1 and atl2 */ | ||
#include "atlx.c" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,6 @@ | |
#include <linux/module.h> | ||
#include <linux/types.h> | ||
|
||
#define ATLX_DRIVER_VERSION "2.1.3" | ||
MODULE_AUTHOR("Xiong Huang <[email protected]>, \ | ||
Chris Snook <[email protected]>, Jay Cliburn <[email protected]>"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_VERSION(ATLX_DRIVER_VERSION); | ||
|
||
#define ATLX_ERR_PHY 2 | ||
#define ATLX_ERR_PHY_SPEED 7 | ||
#define ATLX_ERR_PHY_RES 8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -898,6 +898,12 @@ enum { | |
}; | ||
static int phy_cross = NV_CROSSOVER_DETECTION_DISABLED; | ||
|
||
/* | ||
* Power down phy when interface is down (persists through reboot; | ||
* older Linux and other OSes may not power it up again) | ||
*/ | ||
static int phy_power_down = 0; | ||
|
||
static inline struct fe_priv *get_nvpriv(struct net_device *dev) | ||
{ | ||
return netdev_priv(dev); | ||
|
@@ -1503,7 +1509,10 @@ static int phy_init(struct net_device *dev) | |
|
||
/* restart auto negotiation, power down phy */ | ||
mii_control = mii_rw(dev, np->phyaddr, MII_BMCR, MII_READ); | ||
mii_control |= (BMCR_ANRESTART | BMCR_ANENABLE | BMCR_PDOWN); | ||
mii_control |= (BMCR_ANRESTART | BMCR_ANENABLE); | ||
if (phy_power_down) { | ||
mii_control |= BMCR_PDOWN; | ||
} | ||
if (mii_rw(dev, np->phyaddr, MII_BMCR, mii_control)) { | ||
return PHY_ERROR; | ||
} | ||
|
@@ -5534,7 +5543,7 @@ static int nv_close(struct net_device *dev) | |
|
||
nv_drain_rxtx(dev); | ||
|
||
if (np->wolenabled) { | ||
if (np->wolenabled || !phy_power_down) { | ||
nv_txrx_gate(dev, false); | ||
writel(NVREG_PFF_ALWAYS|NVREG_PFF_MYADDR, base + NvRegPacketFilterFlags); | ||
nv_start_rx(dev); | ||
|
@@ -6390,6 +6399,8 @@ module_param(dma_64bit, int, 0); | |
MODULE_PARM_DESC(dma_64bit, "High DMA is enabled by setting to 1 and disabled by setting to 0."); | ||
module_param(phy_cross, int, 0); | ||
MODULE_PARM_DESC(phy_cross, "Phy crossover detection for Realtek 8201 phy is enabled by setting to 1 and disabled by setting to 0."); | ||
module_param(phy_power_down, int, 0); | ||
MODULE_PARM_DESC(phy_power_down, "Power down phy and disable link when interface is down (1), or leave phy powered up (0)."); | ||
|
||
MODULE_AUTHOR("Manfred Spraul <[email protected]>"); | ||
MODULE_DESCRIPTION("Reverse Engineered nForce ethernet driver"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.