Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65221
b: refs/heads/master
c: 2bcff60
h: refs/heads/master
i:
  65219: c7bf58b
v: v3
  • Loading branch information
Dale Farnsworth authored and Jeff Garzik committed Sep 29, 2007
1 parent 0a7144d commit 89844a0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4827bbb06e4b59922c2b9bfb13ad1bf936bdebe5
refs/heads/master: 2bcff60f7ce88c09a2bc1302ff14510737bfcb7b
2 changes: 1 addition & 1 deletion trunk/drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ static irqreturn_t mv643xx_eth_int_handler(int irq, void *dev_id)
}

/* PHY status changed */
if (eth_int_cause_ext & ETH_INT_CAUSE_PHY) {
if (eth_int_cause_ext & (ETH_INT_CAUSE_PHY | ETH_INT_CAUSE_STATE)) {
struct ethtool_cmd cmd;

if (mii_link_ok(&mp->mii)) {
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/net/mv643xx_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
#define ETH_INT_CAUSE_TX_ERROR (ETH_TX_QUEUES_ENABLED << 8)
#define ETH_INT_CAUSE_TX (ETH_INT_CAUSE_TX_DONE | ETH_INT_CAUSE_TX_ERROR)
#define ETH_INT_CAUSE_PHY 0x00010000
#define ETH_INT_UNMASK_ALL_EXT (ETH_INT_CAUSE_TX | ETH_INT_CAUSE_PHY)
#define ETH_INT_CAUSE_STATE 0x00100000
#define ETH_INT_UNMASK_ALL_EXT (ETH_INT_CAUSE_TX | ETH_INT_CAUSE_PHY | \
ETH_INT_CAUSE_STATE)

#define ETH_INT_MASK_ALL 0x00000000
#define ETH_INT_MASK_ALL_EXT 0x00000000
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-i386/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ static inline unsigned long get_limit(unsigned long segment)
*/


/*
* Actually only lfence would be needed for mb() because all stores done
* by the kernel should be already ordered. But keep a full barrier for now.
*/

#define mb() alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2)
#define rmb() alternative("lock; addl $0,0(%%esp)", "lfence", X86_FEATURE_XMM2)

Expand Down

0 comments on commit 89844a0

Please sign in to comment.