Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166355
b: refs/heads/master
c: 43c2ed8
h: refs/heads/master
i:
  166353: f67a66d
  166351: 1300de5
v: v3
  • Loading branch information
Sriram authored and David S. Miller committed Sep 25, 2009
1 parent 9c60256 commit e09a907
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: c0181d420cc1a506ca4418ce90e2ad89831eee2c
refs/heads/master: 43c2ed8e9e2d285be49d7ea1afc05071d5d7b0f9
9 changes: 8 additions & 1 deletion trunk/drivers/net/davinci_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ static const char emac_version_string[] = "TI DaVinci EMAC Linux v6.1";
/** NOTE:: For DM646x the IN_VECTOR has changed */
#define EMAC_DM646X_MAC_IN_VECTOR_RX_INT_VEC BIT(EMAC_DEF_RX_CH)
#define EMAC_DM646X_MAC_IN_VECTOR_TX_INT_VEC BIT(16 + EMAC_DEF_TX_CH)
#define EMAC_DM646X_MAC_IN_VECTOR_HOST_INT BIT(26)
#define EMAC_DM646X_MAC_IN_VECTOR_STATPEND_INT BIT(27)


/* CPPI bit positions */
#define EMAC_CPPI_SOP_BIT BIT(31)
Expand Down Expand Up @@ -2167,7 +2170,11 @@ static int emac_poll(struct napi_struct *napi, int budget)
emac_int_enable(priv);
}

if (unlikely(status & EMAC_DM644X_MAC_IN_VECTOR_HOST_INT)) {
mask = EMAC_DM644X_MAC_IN_VECTOR_HOST_INT;
if (priv->version == EMAC_VERSION_2)
mask = EMAC_DM646X_MAC_IN_VECTOR_HOST_INT;

if (unlikely(status & mask)) {
u32 ch, cause;
dev_err(emac_dev, "DaVinci EMAC: Fatal Hardware Error\n");
netif_stop_queue(ndev);
Expand Down

0 comments on commit e09a907

Please sign in to comment.