Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150636
b: refs/heads/master
c: 55aa4e0
h: refs/heads/master
v: v3
  • Loading branch information
John W. Linville committed Jun 3, 2009
1 parent e526634 commit 9d48866
Show file tree
Hide file tree
Showing 24 changed files with 2,141 additions and 2,157 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: a93958ac980f0ce594ad90657ecbc595ff157a40
refs/heads/master: 55aa4e0f16aa55e4b8cbe40b11e09cf029848f02
24 changes: 12 additions & 12 deletions trunk/drivers/net/cxgb3/aq100x.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ enum {
AQ_XAUI_TX_CFG = 0xe400,

/* MDIO_DEV_ANEG registers */
AQ_100M_CTRL = 0x0010,
AQ_10G_CTRL = 0x0020,
AQ_1G_CTRL = 0xc400,
AQ_ANEG_STAT = 0xc800,

Expand All @@ -52,15 +54,14 @@ enum {
AQ_IMASK_GLOBAL = 0xff00,
};

enum {
IMASK_PMA = 1 << 2,
IMASK_GLOBAL = 1 << 15,
ADV_1G_FULL = 1 << 15,
ADV_1G_HALF = 1 << 14,
ADV_10G_FULL = 1 << 12,
AQ_RESET = (1 << 14) | (1 << 15),
AQ_LOWPOWER = 1 << 12,
};
#define AQBIT(x) (1 << (x))
#define IMASK_PMA AQBIT(0x2)
#define IMASK_GLOBAL AQBIT(0xf)
#define ADV_1G_FULL AQBIT(0xf)
#define ADV_1G_HALF AQBIT(0xe)
#define ADV_10G_FULL AQBIT(0xc)
#define AQ_RESET (AQBIT(0xe) | AQBIT(0xf))
#define AQ_LOWPOWER AQBIT(0xb)

static int aq100x_reset(struct cphy *phy, int wait)
{
Expand Down Expand Up @@ -159,7 +160,7 @@ static int aq100x_advertise(struct cphy *phy, unsigned int advertise_map)
adv = 0;
if (advertise_map & ADVERTISED_10000baseT_Full)
adv |= ADV_10G_FULL;
err = t3_mdio_change_bits(phy, MDIO_MMD_AN, MDIO_AN_10GBT_CTRL,
err = t3_mdio_change_bits(phy, MDIO_MMD_AN, AQ_10G_CTRL,
ADV_10G_FULL, adv);
if (err)
return err;
Expand All @@ -185,8 +186,7 @@ static int aq100x_advertise(struct cphy *phy, unsigned int advertise_map)
adv |= ADVERTISE_PAUSE_CAP;
if (advertise_map & ADVERTISED_Asym_Pause)
adv |= ADVERTISE_PAUSE_ASYM;
err = t3_mdio_change_bits(phy, MDIO_MMD_AN, MDIO_AN_ADVERTISE,
0xfe0, adv);
err = t3_mdio_change_bits(phy, MDIO_MMD_AN, AQ_100M_CTRL, 0xfe0, adv);

return err;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/cxgb3/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
#define DRV_DESC "Chelsio T3 Network Driver"
#define DRV_NAME "cxgb3"
/* Driver version */
#define DRV_VERSION "1.1.3-ko"
#define DRV_VERSION "1.1.2-ko"

/* Firmware version */
#define FW_VERSION_MAJOR 7
#define FW_VERSION_MINOR 4
#define FW_VERSION_MINOR 1
#define FW_VERSION_MICRO 0
#endif /* __CHELSIO_VERSION_H */
10 changes: 6 additions & 4 deletions trunk/drivers/net/davinci_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1819,6 +1819,7 @@ static int emac_dev_setmac_addr(struct net_device *ndev, void *addr)
struct emac_rxch *rxch = priv->rxch[EMAC_DEF_RX_CH];
struct device *emac_dev = &priv->ndev->dev;
struct sockaddr *sa = addr;
DECLARE_MAC_BUF(mac);

/* Store mac addr in priv and rx channel and set it in EMAC hw */
memcpy(priv->mac_addr, sa->sa_data, ndev->addr_len);
Expand All @@ -1827,8 +1828,8 @@ static int emac_dev_setmac_addr(struct net_device *ndev, void *addr)
emac_setmac(priv, EMAC_DEF_RX_CH, rxch->mac_addr);

if (netif_msg_drv(priv))
dev_notice(emac_dev, "DaVinci EMAC: emac_dev_setmac_addr %pM\n",
priv->mac_addr);
dev_notice(emac_dev, "DaVinci EMAC: emac_dev_setmac_addr %s\n",
print_mac(mac, priv->mac_addr));

return 0;
}
Expand Down Expand Up @@ -2682,10 +2683,11 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
ndev->irq = res->start;

if (!is_valid_ether_addr(priv->mac_addr)) {
DECLARE_MAC_BUF(buf);
/* Use random MAC if none passed */
random_ether_addr(priv->mac_addr);
printk(KERN_WARNING "%s: using random MAC addr: %pM\n",
__func__, priv->mac_addr);
printk(KERN_WARNING "%s: using random MAC addr: %s\n",
__func__, print_mac(buf, priv->mac_addr));
}

ndev->netdev_ops = &emac_netdev_ops;
Expand Down
217 changes: 115 additions & 102 deletions trunk/drivers/net/forcedeth.c

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions trunk/drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,12 +844,12 @@ static void tun_sock_write_space(struct sock *sk)
if (!sock_writeable(sk))
return;

if (!test_and_clear_bit(SOCK_ASYNC_NOSPACE, &sk->sk_socket->flags))
return;

if (sk->sk_sleep && waitqueue_active(sk->sk_sleep))
wake_up_interruptible_sync(sk->sk_sleep);

if (!test_and_clear_bit(SOCK_ASYNC_NOSPACE, &sk->sk_socket->flags))
return;

tun = container_of(sk, struct tun_sock, sk)->tun;
kill_fasync(&tun->fasync, SIGIO, POLL_OUT);
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/ath/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@ ath5k_config(struct ieee80211_hw *hw, u32 changed)

ret = ath5k_chan_set(sc, conf->channel);
if (ret < 0)
return ret;
goto unlock;

if ((changed & IEEE80211_CONF_CHANGE_POWER) &&
(sc->power_level != conf->power_level)) {
Expand Down Expand Up @@ -2808,8 +2808,9 @@ ath5k_config(struct ieee80211_hw *hw, u32 changed)
*/
ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_DEFAULT);

unlock:
mutex_unlock(&sc->lock);
return 0;
return ret;
}

#define SUPPORTED_FIF_FLAGS \
Expand Down
2 changes: 1 addition & 1 deletion trunk/firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fw-shipped-$(CONFIG_CASSINI) += sun/cassini.bin
fw-shipped-$(CONFIG_COMPUTONE) += intelliport2.bin
fw-shipped-$(CONFIG_CHELSIO_T3) += cxgb3/t3b_psram-1.1.0.bin \
cxgb3/t3c_psram-1.1.0.bin \
cxgb3/t3fw-7.4.0.bin
cxgb3/t3fw-7.1.0.bin
fw-shipped-$(CONFIG_DVB_AV7110) += av7110/bootcode.bin
fw-shipped-$(CONFIG_DVB_TTUSB_BUDGET) += ttusb-budget/dspbootcode.bin
fw-shipped-$(CONFIG_E100) += e100/d101m_ucode.bin e100/d101s_ucode.bin \
Expand Down
2 changes: 1 addition & 1 deletion trunk/firmware/WHENCE
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Driver: cxgb3 - Chelsio Terminator 3 1G/10G Ethernet adapter

File: cxgb3/t3b_psram-1.1.0.bin.ihex
File: cxgb3/t3c_psram-1.1.0.bin.ihex
file: cxgb3/t3fw-7.4.0.bin.ihex
file: cxgb3/t3fw-7.1.0.bin.ihex

License: GPLv2 or OpenIB.org BSD license, no source visible

Expand Down
Loading

0 comments on commit 9d48866

Please sign in to comment.