Skip to content

Commit b11919e

Browse files
author
Paolo Abeni
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Merge in the left-over fixes before the net-next pull-request. net/mptcp/subflow.c d3295fe ("mptcp: use proper req destructor for IPv6") 36b122b ("mptcp: add subflow_v(4,6)_send_synack()") Signed-off-by: Paolo Abeni <[email protected]>
2 parents d1c7228 + e095493 commit b11919e

File tree

33 files changed

+193
-78
lines changed

33 files changed

+193
-78
lines changed

Documentation/devicetree/bindings/interrupt-controller/fsl,intmux.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
77
title: Freescale INTMUX interrupt multiplexer
88

99
maintainers:
10-
- Joakim Zhang <[email protected]>
10+
- Shawn Guo <[email protected]>
11+
- NXP Linux Team <[email protected]>
1112

1213
properties:
1314
compatible:

Documentation/devicetree/bindings/net/fsl,fec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
77
title: Freescale Fast Ethernet Controller (FEC)
88

99
maintainers:
10-
- Joakim Zhang <[email protected]>
10+
- Shawn Guo <[email protected]>
11+
- Wei Fang <[email protected]>
12+
- NXP Linux Team <[email protected]>
1113

1214
allOf:
1315
- $ref: ethernet-controller.yaml#

Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
77
title: NXP i.MX8 DWMAC glue layer
88

99
maintainers:
10-
- Joakim Zhang <[email protected]>
10+
- Clark Wang <[email protected]>
11+
- Shawn Guo <[email protected]>
12+
- NXP Linux Team <[email protected]>
1113

1214
# We need a select here so we don't match all nodes with 'snps,dwmac'
1315
select:

MAINTAINERS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8188,7 +8188,10 @@ S: Maintained
81888188
F: drivers/i2c/busses/i2c-cpm.c
81898189

81908190
FREESCALE IMX / MXC FEC DRIVER
8191-
M: Joakim Zhang <[email protected]>
8191+
M: Wei Fang <[email protected]>
8192+
R: Shenwei Wang <[email protected]>
8193+
R: Clark Wang <[email protected]>
8194+
R: NXP Linux Team <[email protected]>
81928195
81938196
S: Maintained
81948197
F: Documentation/devicetree/bindings/net/fsl,fec.yaml

drivers/net/dsa/lan9303-core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,9 +1005,11 @@ static void lan9303_get_ethtool_stats(struct dsa_switch *ds, int port,
10051005
ret = lan9303_read_switch_port(
10061006
chip, port, lan9303_mib[u].offset, &reg);
10071007

1008-
if (ret)
1008+
if (ret) {
10091009
dev_warn(chip->dev, "Reading status port %d reg %u failed\n",
10101010
port, lan9303_mib[u].offset);
1011+
reg = 0;
1012+
}
10111013
data[u] = reg;
10121014
}
10131015
}

drivers/net/ethernet/amd/atarilance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
824824
lp->memcpy_f( PKTBUF_ADDR(head), (void *)skb->data, skb->len );
825825
head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP;
826826
dev->stats.tx_bytes += skb->len;
827-
dev_kfree_skb( skb );
827+
dev_consume_skb_irq(skb);
828828
lp->cur_tx++;
829829
while( lp->cur_tx >= TX_RING_SIZE && lp->dirty_tx >= TX_RING_SIZE ) {
830830
lp->cur_tx -= TX_RING_SIZE;

drivers/net/ethernet/amd/lance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ static netdev_tx_t lance_start_xmit(struct sk_buff *skb,
10011001
skb_copy_from_linear_data(skb, &lp->tx_bounce_buffs[entry], skb->len);
10021002
lp->tx_ring[entry].base =
10031003
((u32)isa_virt_to_bus((lp->tx_bounce_buffs + entry)) & 0xffffff) | 0x83000000;
1004-
dev_kfree_skb(skb);
1004+
dev_consume_skb_irq(skb);
10051005
} else {
10061006
lp->tx_skbuff[entry] = skb;
10071007
lp->tx_ring[entry].base = ((u32)isa_virt_to_bus(skb->data) & 0xffffff) | 0x83000000;

drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ enum xgbe_sfp_cable {
189189
XGBE_SFP_CABLE_UNKNOWN = 0,
190190
XGBE_SFP_CABLE_ACTIVE,
191191
XGBE_SFP_CABLE_PASSIVE,
192+
XGBE_SFP_CABLE_FIBER,
192193
};
193194

194195
enum xgbe_sfp_base {
@@ -236,10 +237,7 @@ enum xgbe_sfp_speed {
236237

237238
#define XGBE_SFP_BASE_BR 12
238239
#define XGBE_SFP_BASE_BR_1GBE_MIN 0x0a
239-
#define XGBE_SFP_BASE_BR_1GBE_MAX 0x0d
240240
#define XGBE_SFP_BASE_BR_10GBE_MIN 0x64
241-
#define XGBE_SFP_BASE_BR_10GBE_MAX 0x68
242-
#define XGBE_MOLEX_SFP_BASE_BR_10GBE_MAX 0x78
243241

244242
#define XGBE_SFP_BASE_CU_CABLE_LEN 18
245243

@@ -826,29 +824,22 @@ static void xgbe_phy_sfp_phy_settings(struct xgbe_prv_data *pdata)
826824
static bool xgbe_phy_sfp_bit_rate(struct xgbe_sfp_eeprom *sfp_eeprom,
827825
enum xgbe_sfp_speed sfp_speed)
828826
{
829-
u8 *sfp_base, min, max;
827+
u8 *sfp_base, min;
830828

831829
sfp_base = sfp_eeprom->base;
832830

833831
switch (sfp_speed) {
834832
case XGBE_SFP_SPEED_1000:
835833
min = XGBE_SFP_BASE_BR_1GBE_MIN;
836-
max = XGBE_SFP_BASE_BR_1GBE_MAX;
837834
break;
838835
case XGBE_SFP_SPEED_10000:
839836
min = XGBE_SFP_BASE_BR_10GBE_MIN;
840-
if (memcmp(&sfp_eeprom->base[XGBE_SFP_BASE_VENDOR_NAME],
841-
XGBE_MOLEX_VENDOR, XGBE_SFP_BASE_VENDOR_NAME_LEN) == 0)
842-
max = XGBE_MOLEX_SFP_BASE_BR_10GBE_MAX;
843-
else
844-
max = XGBE_SFP_BASE_BR_10GBE_MAX;
845837
break;
846838
default:
847839
return false;
848840
}
849841

850-
return ((sfp_base[XGBE_SFP_BASE_BR] >= min) &&
851-
(sfp_base[XGBE_SFP_BASE_BR] <= max));
842+
return sfp_base[XGBE_SFP_BASE_BR] >= min;
852843
}
853844

854845
static void xgbe_phy_free_phy_device(struct xgbe_prv_data *pdata)
@@ -1149,16 +1140,18 @@ static void xgbe_phy_sfp_parse_eeprom(struct xgbe_prv_data *pdata)
11491140
phy_data->sfp_tx_fault = xgbe_phy_check_sfp_tx_fault(phy_data);
11501141
phy_data->sfp_rx_los = xgbe_phy_check_sfp_rx_los(phy_data);
11511142

1152-
/* Assume ACTIVE cable unless told it is PASSIVE */
1143+
/* Assume FIBER cable unless told otherwise */
11531144
if (sfp_base[XGBE_SFP_BASE_CABLE] & XGBE_SFP_BASE_CABLE_PASSIVE) {
11541145
phy_data->sfp_cable = XGBE_SFP_CABLE_PASSIVE;
11551146
phy_data->sfp_cable_len = sfp_base[XGBE_SFP_BASE_CU_CABLE_LEN];
1156-
} else {
1147+
} else if (sfp_base[XGBE_SFP_BASE_CABLE] & XGBE_SFP_BASE_CABLE_ACTIVE) {
11571148
phy_data->sfp_cable = XGBE_SFP_CABLE_ACTIVE;
1149+
} else {
1150+
phy_data->sfp_cable = XGBE_SFP_CABLE_FIBER;
11581151
}
11591152

11601153
/* Determine the type of SFP */
1161-
if (phy_data->sfp_cable == XGBE_SFP_CABLE_PASSIVE &&
1154+
if (phy_data->sfp_cable != XGBE_SFP_CABLE_FIBER &&
11621155
xgbe_phy_sfp_bit_rate(sfp_eeprom, XGBE_SFP_SPEED_10000))
11631156
phy_data->sfp_base = XGBE_SFP_BASE_10000_CR;
11641157
else if (sfp_base[XGBE_SFP_BASE_10GBE_CC] & XGBE_SFP_BASE_10GBE_CC_SR)

drivers/net/ethernet/apple/bmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ static void bmac_tx_timeout(struct timer_list *t)
15101510
i = bp->tx_empty;
15111511
++dev->stats.tx_errors;
15121512
if (i != bp->tx_fill) {
1513-
dev_kfree_skb(bp->tx_bufs[i]);
1513+
dev_kfree_skb_irq(bp->tx_bufs[i]);
15141514
bp->tx_bufs[i] = NULL;
15151515
if (++i >= N_TX_RING) i = 0;
15161516
bp->tx_empty = i;

drivers/net/ethernet/apple/mace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ static void mace_tx_timeout(struct timer_list *t)
846846
if (mp->tx_bad_runt) {
847847
mp->tx_bad_runt = 0;
848848
} else if (i != mp->tx_fill) {
849-
dev_kfree_skb(mp->tx_bufs[i]);
849+
dev_kfree_skb_irq(mp->tx_bufs[i]);
850850
if (++i >= N_TX_RING)
851851
i = 0;
852852
mp->tx_empty = i;

0 commit comments

Comments
 (0)