Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340591
b: refs/heads/master
c: 996a5c2
h: refs/heads/master
i:
  340589: aeca8da
  340587: 94a7697
  340583: 07d684e
  340575: e050822
v: v3
  • Loading branch information
Richard Cochran authored and David S. Miller committed Nov 1, 2012
1 parent b196d41 commit f5adce1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 5c50a856d550b3bf6a731f6e33a794ed5c519817
refs/heads/master: 996a5c27880e40a7e5be2687ee9e486c09bbb29c
18 changes: 9 additions & 9 deletions trunk/drivers/net/ethernet/ti/cpsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static int rx_packet_max = CPSW_MAX_PACKET_SIZE;
module_param(rx_packet_max, int, 0);
MODULE_PARM_DESC(rx_packet_max, "maximum receive packet size (bytes)");

struct cpsw_ss_regs {
struct cpsw_wr_regs {
u32 id_ver;
u32 soft_reset;
u32 control;
Expand All @@ -142,7 +142,7 @@ struct cpsw_ss_regs {
u32 misc_en;
};

struct cpsw_regs {
struct cpsw_ss_regs {
u32 id_ver;
u32 control;
u32 soft_reset;
Expand Down Expand Up @@ -204,8 +204,8 @@ struct cpsw_priv {
struct napi_struct napi;
struct device *dev;
struct cpsw_platform_data data;
struct cpsw_regs __iomem *regs;
struct cpsw_ss_regs __iomem *ss_regs;
struct cpsw_ss_regs __iomem *regs;
struct cpsw_wr_regs __iomem *wr_regs;
struct cpsw_host_regs __iomem *host_port_regs;
u32 msg_enable;
struct net_device_stats stats;
Expand Down Expand Up @@ -256,17 +256,17 @@ static void cpsw_ndo_set_rx_mode(struct net_device *ndev)

static void cpsw_intr_enable(struct cpsw_priv *priv)
{
__raw_writel(0xFF, &priv->ss_regs->tx_en);
__raw_writel(0xFF, &priv->ss_regs->rx_en);
__raw_writel(0xFF, &priv->wr_regs->tx_en);
__raw_writel(0xFF, &priv->wr_regs->rx_en);

cpdma_ctlr_int_ctrl(priv->dma, true);
return;
}

static void cpsw_intr_disable(struct cpsw_priv *priv)
{
__raw_writel(0, &priv->ss_regs->tx_en);
__raw_writel(0, &priv->ss_regs->rx_en);
__raw_writel(0, &priv->wr_regs->tx_en);
__raw_writel(0, &priv->wr_regs->rx_en);

cpdma_ctlr_int_ctrl(priv->dma, false);
return;
Expand Down Expand Up @@ -999,7 +999,7 @@ static int __devinit cpsw_probe(struct platform_device *pdev)
dev_err(priv->dev, "unable to map i/o region\n");
goto clean_cpsw_ss_iores_ret;
}
priv->ss_regs = regs;
priv->wr_regs = regs;

for_each_slave(priv, cpsw_slave_init, priv);

Expand Down

0 comments on commit f5adce1

Please sign in to comment.