Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194065
b: refs/heads/master
c: 3d90c50
h: refs/heads/master
i:
  194063: 0461033
v: v3
  • Loading branch information
Giuseppe CAVALLARO authored and David S. Miller committed Apr 14, 2010
1 parent 1dad148 commit 71d0aeb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 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: e326e8503dfc73e4f79d488a78ee3d7cde10081f
refs/heads/master: 3d90c508dc6737d5b241a1f8807e1287f015f7f8
1 change: 1 addition & 0 deletions trunk/drivers/net/stmmac/stmmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ struct stmmac_priv {
#ifdef STMMAC_VLAN_TAG_USED
struct vlan_group *vlgrp;
#endif
int enh_desc;
};

#ifdef CONFIG_STM_DRIVERS
Expand Down
12 changes: 8 additions & 4 deletions trunk/drivers/net/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1581,13 +1581,16 @@ static int stmmac_mac_device_setup(struct net_device *dev)

struct mac_device_info *device;

if (priv->is_gmac) {
if (priv->is_gmac)
device = dwmac1000_setup(ioaddr);
device->desc = &enh_desc_ops;
} else {
else
device = dwmac100_setup(ioaddr);

if (priv->enh_desc) {
device->desc = &enh_desc_ops;
pr_info("\tEnhanced descriptor structure\n");
} else
device->desc = &ndesc_ops;
}

if (!device)
return -ENOMEM;
Expand Down Expand Up @@ -1729,6 +1732,7 @@ static int stmmac_dvr_probe(struct platform_device *pdev)
priv->bus_id = plat_dat->bus_id;
priv->pbl = plat_dat->pbl; /* TLI */
priv->is_gmac = plat_dat->has_gmac; /* GMAC is on board */
priv->enh_desc = plat_dat->enh_desc;

platform_set_drvdata(pdev, ndev);

Expand Down

0 comments on commit 71d0aeb

Please sign in to comment.