Skip to content

Commit 883de20

Browse files
committed
Merge remote-tracking branch 'stable/linux-4.9.y' into rpi-4.9.y
2 parents 4f9060c + 3737a5f commit 883de20

31 files changed

Lines changed: 365 additions & 122 deletions

File tree

‎Documentation/kernel-parameters.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
13911391
When zero, profiling data is discarded and associated
13921392
debugfs files are removed at module unload time.
13931393

1394+
goldfish [X86] Enable the goldfish android emulator platform.
1395+
Don't use this when you are not running on the
1396+
android emulator
1397+
13941398
gpt [EFI] Forces disk with valid GPT signature but
13951399
invalid Protective MBR to be treated as GPT. If the
13961400
primary GPT is corrupted, it enables the backup/alternate

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION = 4
22
PATCHLEVEL = 9
3-
SUBLEVEL = 12
3+
SUBLEVEL = 13
44
EXTRAVERSION =
55
NAME = Roaring Lionus
66

‎arch/x86/platform/goldfish/goldfish.c‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,22 @@ static struct resource goldfish_pdev_bus_resources[] = {
4242
}
4343
};
4444

45+
static bool goldfish_enable __initdata;
46+
47+
static int __init goldfish_setup(char *str)
48+
{
49+
goldfish_enable = true;
50+
return 0;
51+
}
52+
__setup("goldfish", goldfish_setup);
53+
4554
static int __init goldfish_init(void)
4655
{
56+
if (!goldfish_enable)
57+
return -ENODEV;
58+
4759
platform_device_register_simple("goldfish_pdev_bus", -1,
48-
goldfish_pdev_bus_resources, 2);
60+
goldfish_pdev_bus_resources, 2);
4961
return 0;
5062
}
5163
device_initcall(goldfish_init);

‎drivers/net/ethernet/mellanox/mlx5/core/en_tc.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,14 @@ int mlx5e_stats_flower(struct mlx5e_priv *priv,
567567

568568
mlx5_fc_query_cached(counter, &bytes, &packets, &lastuse);
569569

570+
preempt_disable();
571+
570572
tcf_exts_to_list(f->exts, &actions);
571573
list_for_each_entry(a, &actions, list)
572574
tcf_action_stats_update(a, bytes, packets, lastuse);
573575

576+
preempt_enable();
577+
574578
return 0;
575579
}
576580

‎drivers/net/ethernet/ti/cpsw.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2925,7 +2925,7 @@ static int cpsw_resume(struct device *dev)
29252925
{
29262926
struct platform_device *pdev = to_platform_device(dev);
29272927
struct net_device *ndev = platform_get_drvdata(pdev);
2928-
struct cpsw_common *cpsw = netdev_priv(ndev);
2928+
struct cpsw_common *cpsw = ndev_to_cpsw(ndev);
29292929

29302930
/* Select default pin state */
29312931
pinctrl_pm_select_default_state(dev);

‎drivers/net/vxlan.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,8 @@ static int vxlan_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb)
24492449
return -EINVAL;
24502450
rt = vxlan_get_route(vxlan, skb, 0, info->key.tos,
24512451
info->key.u.ipv4.dst,
2452-
&info->key.u.ipv4.src, NULL, info);
2452+
&info->key.u.ipv4.src,
2453+
&info->dst_cache, info);
24532454
if (IS_ERR(rt))
24542455
return PTR_ERR(rt);
24552456
ip_rt_put(rt);
@@ -2459,7 +2460,8 @@ static int vxlan_fill_metadata_dst(struct net_device *dev, struct sk_buff *skb)
24592460

24602461
ndst = vxlan6_get_route(vxlan, skb, 0, info->key.tos,
24612462
info->key.label, &info->key.u.ipv6.dst,
2462-
&info->key.u.ipv6.src, NULL, info);
2463+
&info->key.u.ipv6.src,
2464+
&info->dst_cache, info);
24632465
if (IS_ERR(ndst))
24642466
return PTR_ERR(ndst);
24652467
dst_release(ndst);

‎drivers/net/wireless/realtek/rtlwifi/usb.c‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,12 +831,30 @@ static void rtl_usb_stop(struct ieee80211_hw *hw)
831831
struct rtl_priv *rtlpriv = rtl_priv(hw);
832832
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
833833
struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw));
834+
struct urb *urb;
834835

835836
/* should after adapter start and interrupt enable. */
836837
set_hal_stop(rtlhal);
837838
cancel_work_sync(&rtlpriv->works.fill_h2c_cmd);
838839
/* Enable software */
839840
SET_USB_STOP(rtlusb);
841+
842+
/* free pre-allocated URBs from rtl_usb_start() */
843+
usb_kill_anchored_urbs(&rtlusb->rx_submitted);
844+
845+
tasklet_kill(&rtlusb->rx_work_tasklet);
846+
cancel_work_sync(&rtlpriv->works.lps_change_work);
847+
848+
flush_workqueue(rtlpriv->works.rtl_wq);
849+
850+
skb_queue_purge(&rtlusb->rx_queue);
851+
852+
while ((urb = usb_get_from_anchor(&rtlusb->rx_cleanup_urbs))) {
853+
usb_free_coherent(urb->dev, urb->transfer_buffer_length,
854+
urb->transfer_buffer, urb->transfer_dma);
855+
usb_free_urb(urb);
856+
}
857+
840858
rtlpriv->cfg->ops->hw_disable(hw);
841859
}
842860

‎drivers/platform/goldfish/pdev_bus.c‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,23 +157,26 @@ static int goldfish_new_pdev(void)
157157
static irqreturn_t goldfish_pdev_bus_interrupt(int irq, void *dev_id)
158158
{
159159
irqreturn_t ret = IRQ_NONE;
160+
160161
while (1) {
161162
u32 op = readl(pdev_bus_base + PDEV_BUS_OP);
162-
switch (op) {
163-
case PDEV_BUS_OP_DONE:
164-
return IRQ_NONE;
165163

164+
switch (op) {
166165
case PDEV_BUS_OP_REMOVE_DEV:
167166
goldfish_pdev_remove();
167+
ret = IRQ_HANDLED;
168168
break;
169169

170170
case PDEV_BUS_OP_ADD_DEV:
171171
goldfish_new_pdev();
172+
ret = IRQ_HANDLED;
172173
break;
174+
175+
case PDEV_BUS_OP_DONE:
176+
default:
177+
return ret;
173178
}
174-
ret = IRQ_HANDLED;
175179
}
176-
return ret;
177180
}
178181

179182
static int goldfish_pdev_bus_probe(struct platform_device *pdev)

‎drivers/tty/serial/msm_serial.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,6 +1809,7 @@ static const struct of_device_id msm_match_table[] = {
18091809
{ .compatible = "qcom,msm-uartdm" },
18101810
{}
18111811
};
1812+
MODULE_DEVICE_TABLE(of, msm_match_table);
18121813

18131814
static struct platform_driver msm_platform_driver = {
18141815
.remove = msm_serial_remove,

‎drivers/usb/serial/ark3116.c‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,17 @@ static int ark3116_read_reg(struct usb_serial *serial,
9999
usb_rcvctrlpipe(serial->dev, 0),
100100
0xfe, 0xc0, 0, reg,
101101
buf, 1, ARK_TIMEOUT);
102-
if (result < 0)
102+
if (result < 1) {
103+
dev_err(&serial->interface->dev,
104+
"failed to read register %u: %d\n",
105+
reg, result);
106+
if (result >= 0)
107+
result = -EIO;
108+
103109
return result;
104-
else
105-
return buf[0];
110+
}
111+
112+
return buf[0];
106113
}
107114

108115
static inline int calc_divisor(int bps)

0 commit comments

Comments
 (0)