diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/gpu/drm/drm_dp_mst_topology.c linux-libre-4.4.210-gnu/drivers/gpu/drm/drm_dp_mst_topology.c
--- linux-libre-4.4.209-gnu/drivers/gpu/drm/drm_dp_mst_topology.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/gpu/drm/drm_dp_mst_topology.c	2020-01-14 14:03:08.000000000 -0500
@@ -272,7 +272,7 @@ static void drm_dp_encode_sideband_req(s
 			memcpy(&buf[idx], req->u.i2c_read.transactions[i].bytes, req->u.i2c_read.transactions[i].num_bytes);
 			idx += req->u.i2c_read.transactions[i].num_bytes;
 
-			buf[idx] = (req->u.i2c_read.transactions[i].no_stop_bit & 0x1) << 5;
+			buf[idx] = (req->u.i2c_read.transactions[i].no_stop_bit & 0x1) << 4;
 			buf[idx] |= (req->u.i2c_read.transactions[i].i2c_transaction_delay & 0xf);
 			idx++;
 		}
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/gpu/drm/i915/intel_lrc.c linux-libre-4.4.210-gnu/drivers/gpu/drm/i915/intel_lrc.c
--- linux-libre-4.4.209-gnu/drivers/gpu/drm/i915/intel_lrc.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/gpu/drm/i915/intel_lrc.c	2020-01-14 14:03:08.000000000 -0500
@@ -1312,6 +1312,7 @@ static int gen9_init_indirectctx_bb(stru
 	int ret;
 	struct drm_device *dev = ring->dev;
 	uint32_t index = wa_ctx_start(wa_ctx, *offset, CACHELINE_DWORDS);
+	uint32_t scratch_addr;
 
 	/* WaDisableCtxRestoreArbitration:skl,bxt */
 	if ((IS_SKYLAKE(dev) && (INTEL_REVID(dev) <= SKL_REVID_D0)) ||
@@ -1324,6 +1325,19 @@ static int gen9_init_indirectctx_bb(stru
 		return ret;
 	index = ret;
 
+	/* WaClearSlmSpaceAtContextSwitch:skl,bxt,kbl,glk,cfl */
+	/* Actual scratch location is at 128 bytes offset */
+	scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES;
+	wa_ctx_emit(batch, index, GFX_OP_PIPE_CONTROL(6));
+	wa_ctx_emit(batch, index, (PIPE_CONTROL_FLUSH_L3 |
+				   PIPE_CONTROL_GLOBAL_GTT_IVB |
+				   PIPE_CONTROL_CS_STALL |
+				   PIPE_CONTROL_QW_WRITE));
+	wa_ctx_emit(batch, index, scratch_addr);
+	wa_ctx_emit(batch, index, 0);
+	wa_ctx_emit(batch, index, 0);
+	wa_ctx_emit(batch, index, 0);
+
 	/* Pad to end of cacheline */
 	while (index % CACHELINE_DWORDS)
 		wa_ctx_emit(batch, index, MI_NOOP);
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/hid/hid-core.c linux-libre-4.4.210-gnu/drivers/hid/hid-core.c
--- linux-libre-4.4.209-gnu/drivers/hid/hid-core.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/hid/hid-core.c	2020-01-14 14:03:08.000000000 -0500
@@ -269,6 +269,12 @@ static int hid_add_field(struct hid_pars
 	offset = report->size;
 	report->size += parser->global.report_size * parser->global.report_count;
 
+	/* Total size check: Allow for possible report index byte */
+	if (report->size > (HID_MAX_BUFFER_SIZE - 1) << 3) {
+		hid_err(parser->device, "report is too long\n");
+		return -1;
+	}
+
 	if (!parser->local.usage_index) /* Ignore padding fields */
 		return 0;
 
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/hid/hid-input.c linux-libre-4.4.210-gnu/drivers/hid/hid-input.c
--- linux-libre-4.4.209-gnu/drivers/hid/hid-input.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/hid/hid-input.c	2020-01-14 14:03:08.000000000 -0500
@@ -994,9 +994,15 @@ static void hidinput_configure_usage(str
 	}
 
 mapped:
-	if (device->driver->input_mapped && device->driver->input_mapped(device,
-				hidinput, field, usage, &bit, &max) < 0)
-		goto ignore;
+	if (device->driver->input_mapped &&
+	    device->driver->input_mapped(device, hidinput, field, usage,
+					 &bit, &max) < 0) {
+		/*
+		 * The driver indicated that no further generic handling
+		 * of the usage is desired.
+		 */
+		return;
+	}
 
 	set_bit(usage->type, input->evbit);
 
@@ -1055,9 +1061,11 @@ mapped:
 		set_bit(MSC_SCAN, input->mscbit);
 	}
 
-ignore:
 	return;
 
+ignore:
+	usage->type = 0;
+	usage->code = 0;
 }
 
 void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value)
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/hid/uhid.c linux-libre-4.4.210-gnu/drivers/hid/uhid.c
--- linux-libre-4.4.209-gnu/drivers/hid/uhid.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/hid/uhid.c	2020-01-14 14:03:08.000000000 -0500
@@ -26,6 +26,7 @@
 #include <linux/uhid.h>
 #include <linux/wait.h>
 #include <linux/uaccess.h>
+#include <linux/eventpoll.h>
 
 #define UHID_NAME	"uhid"
 #define UHID_BUFSIZE	32
@@ -774,7 +775,7 @@ static unsigned int uhid_char_poll(struc
 	if (uhid->head != uhid->tail)
 		return POLLIN | POLLRDNORM;
 
-	return 0;
+	return EPOLLOUT | EPOLLWRNORM;
 }
 
 static const struct file_operations uhid_fops = {
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/input/input.c linux-libre-4.4.210-gnu/drivers/input/input.c
--- linux-libre-4.4.209-gnu/drivers/input/input.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/input/input.c	2020-01-14 14:03:08.000000000 -0500
@@ -851,16 +851,18 @@ static int input_default_setkeycode(stru
 		}
 	}
 
-	__clear_bit(*old_keycode, dev->keybit);
-	__set_bit(ke->keycode, dev->keybit);
-
-	for (i = 0; i < dev->keycodemax; i++) {
-		if (input_fetch_keycode(dev, i) == *old_keycode) {
-			__set_bit(*old_keycode, dev->keybit);
-			break; /* Setting the bit twice is useless, so break */
+	if (*old_keycode <= KEY_MAX) {
+		__clear_bit(*old_keycode, dev->keybit);
+		for (i = 0; i < dev->keycodemax; i++) {
+			if (input_fetch_keycode(dev, i) == *old_keycode) {
+				__set_bit(*old_keycode, dev->keybit);
+				/* Setting the bit twice is useless, so break */
+				break;
+			}
 		}
 	}
 
+	__set_bit(ke->keycode, dev->keybit);
 	return 0;
 }
 
@@ -916,9 +918,13 @@ int input_set_keycode(struct input_dev *
 	 * Simulate keyup event if keycode is not present
 	 * in the keymap anymore
 	 */
-	if (test_bit(EV_KEY, dev->evbit) &&
-	    !is_event_supported(old_keycode, dev->keybit, KEY_MAX) &&
-	    __test_and_clear_bit(old_keycode, dev->key)) {
+	if (old_keycode > KEY_MAX) {
+		dev_warn(dev->dev.parent ?: &dev->dev,
+			 "%s: got too big old keycode %#x\n",
+			 __func__, old_keycode);
+	} else if (test_bit(EV_KEY, dev->evbit) &&
+		   !is_event_supported(old_keycode, dev->keybit, KEY_MAX) &&
+		   __test_and_clear_bit(old_keycode, dev->key)) {
 		struct input_value vals[] =  {
 			{ EV_KEY, old_keycode, 0 },
 			input_value_sync
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/net/can/mscan/mscan.c linux-libre-4.4.210-gnu/drivers/net/can/mscan/mscan.c
--- linux-libre-4.4.209-gnu/drivers/net/can/mscan/mscan.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/net/can/mscan/mscan.c	2020-01-14 14:03:08.000000000 -0500
@@ -392,13 +392,12 @@ static int mscan_rx_poll(struct napi_str
 	struct net_device *dev = napi->dev;
 	struct mscan_regs __iomem *regs = priv->reg_base;
 	struct net_device_stats *stats = &dev->stats;
-	int npackets = 0;
-	int ret = 1;
+	int work_done = 0;
 	struct sk_buff *skb;
 	struct can_frame *frame;
 	u8 canrflg;
 
-	while (npackets < quota) {
+	while (work_done < quota) {
 		canrflg = in_8(&regs->canrflg);
 		if (!(canrflg & (MSCAN_RXF | MSCAN_ERR_IF)))
 			break;
@@ -419,18 +418,18 @@ static int mscan_rx_poll(struct napi_str
 
 		stats->rx_packets++;
 		stats->rx_bytes += frame->can_dlc;
-		npackets++;
+		work_done++;
 		netif_receive_skb(skb);
 	}
 
-	if (!(in_8(&regs->canrflg) & (MSCAN_RXF | MSCAN_ERR_IF))) {
-		napi_complete(&priv->napi);
-		clear_bit(F_RX_PROGRESS, &priv->flags);
-		if (priv->can.state < CAN_STATE_BUS_OFF)
-			out_8(&regs->canrier, priv->shadow_canrier);
-		ret = 0;
+	if (work_done < quota) {
+		if (likely(napi_complete_done(&priv->napi, work_done))) {
+			clear_bit(F_RX_PROGRESS, &priv->flags);
+			if (priv->can.state < CAN_STATE_BUS_OFF)
+				out_8(&regs->canrier, priv->shadow_canrier);
+		}
 	}
-	return ret;
+	return work_done;
 }
 
 static irqreturn_t mscan_isr(int irq, void *dev_id)
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/net/can/usb/gs_usb.c linux-libre-4.4.210-gnu/drivers/net/can/usb/gs_usb.c
--- linux-libre-4.4.209-gnu/drivers/net/can/usb/gs_usb.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/net/can/usb/gs_usb.c	2020-01-14 14:03:08.000000000 -0500
@@ -847,7 +847,7 @@ static int gs_usb_probe(struct usb_inter
 			     GS_USB_BREQ_HOST_FORMAT,
 			     USB_DIR_OUT|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
 			     1,
-			     intf->altsetting[0].desc.bInterfaceNumber,
+			     intf->cur_altsetting->desc.bInterfaceNumber,
 			     hconf,
 			     sizeof(*hconf),
 			     1000);
@@ -870,7 +870,7 @@ static int gs_usb_probe(struct usb_inter
 			     GS_USB_BREQ_DEVICE_CONFIG,
 			     USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_INTERFACE,
 			     1,
-			     intf->altsetting[0].desc.bInterfaceNumber,
+			     intf->cur_altsetting->desc.bInterfaceNumber,
 			     dconf,
 			     sizeof(*dconf),
 			     1000);
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/net/wireless/mwifiex/pcie.c linux-libre-4.4.210-gnu/drivers/net/wireless/mwifiex/pcie.c
--- linux-libre-4.4.209-gnu/drivers/net/wireless/mwifiex/pcie.c	2020-01-12 13:16:55.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/net/wireless/mwifiex/pcie.c	2020-01-14 22:34:46.000000000 -0500
@@ -921,8 +921,10 @@ static int mwifiex_pcie_alloc_cmdrsp_buf
 	}
 	skb_put(skb, MWIFIEX_UPLD_SIZE);
 	if (mwifiex_map_pci_memory(adapter, skb, MWIFIEX_UPLD_SIZE,
-				   PCI_DMA_FROMDEVICE))
+				   PCI_DMA_FROMDEVICE)) {
+		kfree_skb(skb);
 		return -1;
+	}
 
 	card->cmdrsp_buf = skb;
 
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/net/wireless/mwifiex/sta_ioctl.c linux-libre-4.4.210-gnu/drivers/net/wireless/mwifiex/sta_ioctl.c
--- linux-libre-4.4.209-gnu/drivers/net/wireless/mwifiex/sta_ioctl.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/net/wireless/mwifiex/sta_ioctl.c	2020-01-14 14:03:08.000000000 -0500
@@ -229,6 +229,14 @@ static int mwifiex_process_country_ie(st
 			    "11D: skip setting domain info in FW\n");
 		return 0;
 	}
+
+	if (country_ie_len >
+	    (IEEE80211_COUNTRY_STRING_LEN + MWIFIEX_MAX_TRIPLET_802_11D)) {
+		mwifiex_dbg(priv->adapter, ERROR,
+			    "11D: country_ie_len overflow!, deauth AP\n");
+		return -EINVAL;
+	}
+
 	memcpy(priv->adapter->country_code, &country_ie[2], 2);
 
 	domain_info->country_code[0] = country_ie[2];
@@ -272,7 +280,8 @@ int mwifiex_bss_start(struct mwifiex_pri
 	priv->scan_block = false;
 
 	if (bss) {
-		mwifiex_process_country_ie(priv, bss);
+		if (mwifiex_process_country_ie(priv, bss))
+			return -EINVAL;
 
 		/* Allocate and fill new bss descriptor */
 		bss_desc = kzalloc(sizeof(struct mwifiex_bssdescriptor),
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c linux-libre-4.4.210-gnu/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
--- linux-libre-4.4.209-gnu/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c	2020-01-12 13:18:31.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c	2020-01-14 22:36:22.000000000 -0500
@@ -5130,6 +5130,7 @@ static int rtl8xxxu_submit_int_urb(struc
 	ret = usb_submit_urb(urb, GFP_KERNEL);
 	if (ret) {
 		usb_unanchor_urb(urb);
+		usb_free_urb(urb);
 		goto error;
 	}
 
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/scsi/bfa/bfad_attr.c linux-libre-4.4.210-gnu/drivers/scsi/bfa/bfad_attr.c
--- linux-libre-4.4.209-gnu/drivers/scsi/bfa/bfad_attr.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/scsi/bfa/bfad_attr.c	2020-01-14 14:03:08.000000000 -0500
@@ -282,8 +282,10 @@ bfad_im_get_stats(struct Scsi_Host *shos
 	rc = bfa_port_get_stats(BFA_FCPORT(&bfad->bfa),
 				fcstats, bfad_hcb_comp, &fcomp);
 	spin_unlock_irqrestore(&bfad->bfad_lock, flags);
-	if (rc != BFA_STATUS_OK)
+	if (rc != BFA_STATUS_OK) {
+		kfree(fcstats);
 		return NULL;
+	}
 
 	wait_for_completion(&fcomp.comp);
 
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/staging/rtl8188eu/os_dep/usb_intf.c linux-libre-4.4.210-gnu/drivers/staging/rtl8188eu/os_dep/usb_intf.c
--- linux-libre-4.4.209-gnu/drivers/staging/rtl8188eu/os_dep/usb_intf.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/staging/rtl8188eu/os_dep/usb_intf.c	2020-01-14 14:03:08.000000000 -0500
@@ -49,6 +49,7 @@ static struct usb_device_id rtw_usb_id_t
 	{USB_DEVICE(0x2001, 0x3311)}, /* DLink GO-USB-N150 REV B1 */
 	{USB_DEVICE(0x2001, 0x331B)}, /* D-Link DWA-121 rev B1 */
 	{USB_DEVICE(0x2357, 0x010c)}, /* TP-Link TL-WN722N v2 */
+	{USB_DEVICE(0x2357, 0x0111)}, /* TP-Link TL-WN727N v5.21 */
 	{USB_DEVICE(0x0df6, 0x0076)}, /* Sitecom N150 v2 */
 	{USB_DEVICE(USB_VENDER_ID_REALTEK, 0xffef)}, /* Rosewill RNX-N150NUB */
 	{}	/* Terminating entry */
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/staging/vt6656/device.h linux-libre-4.4.210-gnu/drivers/staging/vt6656/device.h
--- linux-libre-4.4.209-gnu/drivers/staging/vt6656/device.h	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/staging/vt6656/device.h	2020-01-14 14:03:08.000000000 -0500
@@ -272,6 +272,7 @@ struct vnt_private {
 	u8 mac_hw;
 	/* netdev */
 	struct usb_device *usb;
+	struct usb_interface *intf;
 
 	u64 tsf_time;
 	u8 rx_rate;
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/staging/vt6656/main_usb.c linux-libre-4.4.210-gnu/drivers/staging/vt6656/main_usb.c
--- linux-libre-4.4.209-gnu/drivers/staging/vt6656/main_usb.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/staging/vt6656/main_usb.c	2020-01-14 14:03:08.000000000 -0500
@@ -979,6 +979,7 @@ vt6656_probe(struct usb_interface *intf,
 	priv = hw->priv;
 	priv->hw = hw;
 	priv->usb = udev;
+	priv->intf = intf;
 
 	vnt_set_options(priv);
 
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/staging/vt6656/wcmd.c linux-libre-4.4.210-gnu/drivers/staging/vt6656/wcmd.c
--- linux-libre-4.4.209-gnu/drivers/staging/vt6656/wcmd.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/staging/vt6656/wcmd.c	2020-01-14 14:03:08.000000000 -0500
@@ -113,6 +113,7 @@ void vnt_run_command(struct work_struct
 		if (vnt_init(priv)) {
 			/* If fail all ends TODO retry */
 			dev_err(&priv->usb->dev, "failed to start\n");
+			usb_set_intfdata(priv->intf, NULL);
 			ieee80211_free_hw(priv->hw);
 			return;
 		}
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/tty/serial/serial_core.c linux-libre-4.4.210-gnu/drivers/tty/serial/serial_core.c
--- linux-libre-4.4.209-gnu/drivers/tty/serial/serial_core.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/tty/serial/serial_core.c	2020-01-14 14:03:08.000000000 -0500
@@ -2702,6 +2702,7 @@ int uart_add_one_port(struct uart_driver
 	if (uport->cons && uport->dev)
 		of_console_check(uport->dev->of_node, uport->cons->name, uport->line);
 
+	tty_port_link_device(port, drv->tty_driver, uport->line);
 	uart_configure_port(drv, state, uport);
 
 	num_groups = 2;
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/usb/chipidea/host.c linux-libre-4.4.210-gnu/drivers/usb/chipidea/host.c
--- linux-libre-4.4.209-gnu/drivers/usb/chipidea/host.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/usb/chipidea/host.c	2020-01-14 14:03:08.000000000 -0500
@@ -37,6 +37,7 @@ static int (*orig_bus_suspend)(struct us
 
 struct ehci_ci_priv {
 	struct regulator *reg_vbus;
+	bool enabled;
 };
 
 static int ehci_ci_portpower(struct usb_hcd *hcd, int portnum, bool enable)
@@ -48,7 +49,7 @@ static int ehci_ci_portpower(struct usb_
 	int ret = 0;
 	int port = HCS_N_PORTS(ehci->hcs_params);
 
-	if (priv->reg_vbus) {
+	if (priv->reg_vbus && enable != priv->enabled) {
 		if (port > 1) {
 			dev_warn(dev,
 				"Not support multi-port regulator control\n");
@@ -64,6 +65,7 @@ static int ehci_ci_portpower(struct usb_
 				enable ? "enable" : "disable", ret);
 			return ret;
 		}
+		priv->enabled = enable;
 	}
 
 	if (enable && (ci->platdata->phy_mode == USBPHY_INTERFACE_MODE_HSIC)) {
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/usb/core/config.c linux-libre-4.4.210-gnu/drivers/usb/core/config.c
--- linux-libre-4.4.209-gnu/drivers/usb/core/config.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/usb/core/config.c	2020-01-14 14:03:08.000000000 -0500
@@ -358,12 +358,16 @@ static int usb_parse_endpoint(struct dev
 			endpoint->desc.wMaxPacketSize = cpu_to_le16(8);
 	}
 
-	/* Validate the wMaxPacketSize field */
+	/*
+	 * Validate the wMaxPacketSize field.
+	 * Some devices have isochronous endpoints in altsetting 0;
+	 * the USB-2 spec requires such endpoints to have wMaxPacketSize = 0
+	 * (see the end of section 5.6.3), so don't warn about them.
+	 */
 	maxp = usb_endpoint_maxp(&endpoint->desc);
-	if (maxp == 0) {
-		dev_warn(ddev, "config %d interface %d altsetting %d endpoint 0x%X has wMaxPacketSize 0, skipping\n",
+	if (maxp == 0 && !(usb_endpoint_xfer_isoc(d) && asnum == 0)) {
+		dev_warn(ddev, "config %d interface %d altsetting %d endpoint 0x%X has invalid wMaxPacketSize 0\n",
 		    cfgno, inum, asnum, d->bEndpointAddress);
-		goto skip_to_next_endpoint_or_interface_descriptor;
 	}
 
 	/* Find the highest legal maxpacket size for this endpoint */
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/usb/musb/musb_core.c linux-libre-4.4.210-gnu/drivers/usb/musb/musb_core.c
--- linux-libre-4.4.209-gnu/drivers/usb/musb/musb_core.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/usb/musb/musb_core.c	2020-01-14 14:03:08.000000000 -0500
@@ -2132,6 +2132,9 @@ musb_init_controller(struct device *dev,
 	musb_platform_disable(musb);
 	musb_generic_disable(musb);
 
+	/* MUSB_POWER_SOFTCONN might be already set, JZ4740 does this. */
+	musb_writeb(musb->mregs, MUSB_POWER, 0);
+
 	/* Init IRQ workqueue before request_irq */
 	INIT_WORK(&musb->irq_work, musb_irq_work);
 	INIT_DELAYED_WORK(&musb->deassert_reset_work, musb_deassert_reset);
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/usb/musb/musbhsdma.c linux-libre-4.4.210-gnu/drivers/usb/musb/musbhsdma.c
--- linux-libre-4.4.209-gnu/drivers/usb/musb/musbhsdma.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/usb/musb/musbhsdma.c	2020-01-14 14:03:08.000000000 -0500
@@ -398,7 +398,7 @@ struct dma_controller *musbhs_dma_contro
 	controller->controller.channel_abort = dma_channel_abort;
 
 	if (request_irq(irq, dma_controller_irq, 0,
-			dev_name(musb->controller), &controller->controller)) {
+			dev_name(musb->controller), controller)) {
 		dev_err(dev, "request_irq %d failed!\n", irq);
 		musb_dma_controller_destroy(&controller->controller);
 
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/usb/serial/option.c linux-libre-4.4.210-gnu/drivers/usb/serial/option.c
--- linux-libre-4.4.209-gnu/drivers/usb/serial/option.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/usb/serial/option.c	2020-01-14 14:03:08.000000000 -0500
@@ -566,6 +566,9 @@ static void option_instat_callback(struc
 /* Interface is reserved */
 #define RSVD(ifnum)	((BIT(ifnum) & 0xff) << 0)
 
+/* Device needs ZLP */
+#define ZLP		BIT(17)
+
 
 static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },
@@ -1193,6 +1196,8 @@ static const struct usb_device_id option
 	  .driver_info = NCTRL(0) | RSVD(1) },
 	{ USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1901, 0xff),	/* Telit LN940 (MBIM) */
 	  .driver_info = NCTRL(0) },
+	{ USB_DEVICE(TELIT_VENDOR_ID, 0x9010),				/* Telit SBL FN980 flashing device */
+	  .driver_info = NCTRL(0) | ZLP },
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_MF622, 0xff, 0xff, 0xff) }, /* ZTE WCDMA products */
 	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0002, 0xff, 0xff, 0xff),
 	  .driver_info = RSVD(1) },
@@ -2097,6 +2102,9 @@ static int option_attach(struct usb_seri
 	if (!(device_flags & NCTRL(iface_desc->bInterfaceNumber)))
 		data->use_send_setup = 1;
 
+	if (device_flags & ZLP)
+		data->use_zlp = 1;
+
 	spin_lock_init(&data->susp_lock);
 
 	usb_set_serial_data(serial, data);
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/usb/serial/usb_wwan.c linux-libre-4.4.210-gnu/drivers/usb/serial/usb_wwan.c
--- linux-libre-4.4.209-gnu/drivers/usb/serial/usb_wwan.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/usb/serial/usb_wwan.c	2020-01-14 14:03:08.000000000 -0500
@@ -495,6 +495,7 @@ static struct urb *usb_wwan_setup_urb(st
 				      void (*callback) (struct urb *))
 {
 	struct usb_serial *serial = port->serial;
+	struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial);
 	struct urb *urb;
 
 	urb = usb_alloc_urb(0, GFP_KERNEL);	/* No ISO */
@@ -505,6 +506,9 @@ static struct urb *usb_wwan_setup_urb(st
 			  usb_sndbulkpipe(serial->dev, endpoint) | dir,
 			  buf, len, callback, ctx);
 
+	if (intfdata->use_zlp && dir == USB_DIR_OUT)
+		urb->transfer_flags |= URB_ZERO_PACKET;
+
 	return urb;
 }
 
diff -druNp --no-dereference linux-libre-4.4.209-gnu/drivers/usb/serial/usb-wwan.h linux-libre-4.4.210-gnu/drivers/usb/serial/usb-wwan.h
--- linux-libre-4.4.209-gnu/drivers/usb/serial/usb-wwan.h	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/drivers/usb/serial/usb-wwan.h	2020-01-14 14:03:08.000000000 -0500
@@ -35,6 +35,7 @@ struct usb_wwan_intf_private {
 	spinlock_t susp_lock;
 	unsigned int suspended:1;
 	unsigned int use_send_setup:1;
+	unsigned int use_zlp:1;
 	int in_flight;
 	unsigned int open_ports;
 	void *private;
diff -druNp --no-dereference linux-libre-4.4.209-gnu/fs/char_dev.c linux-libre-4.4.210-gnu/fs/char_dev.c
--- linux-libre-4.4.209-gnu/fs/char_dev.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/fs/char_dev.c	2020-01-14 14:03:08.000000000 -0500
@@ -332,7 +332,7 @@ static struct kobject *cdev_get(struct c
 
 	if (owner && !try_module_get(owner))
 		return NULL;
-	kobj = kobject_get(&p->kobj);
+	kobj = kobject_get_unless_zero(&p->kobj);
 	if (!kobj)
 		module_put(owner);
 	return kobj;
diff -druNp --no-dereference linux-libre-4.4.209-gnu/include/linux/can/dev.h linux-libre-4.4.210-gnu/include/linux/can/dev.h
--- linux-libre-4.4.209-gnu/include/linux/can/dev.h	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/include/linux/can/dev.h	2020-01-14 14:03:08.000000000 -0500
@@ -17,6 +17,7 @@
 #include <linux/can/error.h>
 #include <linux/can/led.h>
 #include <linux/can/netlink.h>
+#include <linux/can/skb.h>
 #include <linux/netdevice.h>
 
 /*
@@ -81,6 +82,36 @@ struct can_priv {
 #define get_can_dlc(i)		(min_t(__u8, (i), CAN_MAX_DLC))
 #define get_canfd_dlc(i)	(min_t(__u8, (i), CANFD_MAX_DLC))
 
+/* Check for outgoing skbs that have not been created by the CAN subsystem */
+static inline bool can_skb_headroom_valid(struct net_device *dev,
+					  struct sk_buff *skb)
+{
+	/* af_packet creates a headroom of HH_DATA_MOD bytes which is fine */
+	if (WARN_ON_ONCE(skb_headroom(skb) < sizeof(struct can_skb_priv)))
+		return false;
+
+	/* af_packet does not apply CAN skb specific settings */
+	if (skb->ip_summed == CHECKSUM_NONE) {
+		/* init headroom */
+		can_skb_prv(skb)->ifindex = dev->ifindex;
+		can_skb_prv(skb)->skbcnt = 0;
+
+		skb->ip_summed = CHECKSUM_UNNECESSARY;
+
+		/* preform proper loopback on capable devices */
+		if (dev->flags & IFF_ECHO)
+			skb->pkt_type = PACKET_LOOPBACK;
+		else
+			skb->pkt_type = PACKET_HOST;
+
+		skb_reset_mac_header(skb);
+		skb_reset_network_header(skb);
+		skb_reset_transport_header(skb);
+	}
+
+	return true;
+}
+
 /* Drop a given socketbuffer if it does not contain a valid CAN frame. */
 static inline bool can_dropped_invalid_skb(struct net_device *dev,
 					  struct sk_buff *skb)
@@ -98,6 +129,9 @@ static inline bool can_dropped_invalid_s
 	} else
 		goto inval_skb;
 
+	if (!can_skb_headroom_valid(dev, skb))
+		goto inval_skb;
+
 	return false;
 
 inval_skb:
diff -druNp --no-dereference linux-libre-4.4.209-gnu/include/linux/kobject.h linux-libre-4.4.210-gnu/include/linux/kobject.h
--- linux-libre-4.4.209-gnu/include/linux/kobject.h	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/include/linux/kobject.h	2020-01-14 14:03:08.000000000 -0500
@@ -108,6 +108,8 @@ extern int __must_check kobject_rename(s
 extern int __must_check kobject_move(struct kobject *, struct kobject *);
 
 extern struct kobject *kobject_get(struct kobject *kobj);
+extern struct kobject * __must_check kobject_get_unless_zero(
+						struct kobject *kobj);
 extern void kobject_put(struct kobject *kobj);
 
 extern const void *kobject_namespace(struct kobject *kobj);
diff -druNp --no-dereference linux-libre-4.4.209-gnu/kernel/trace/trace_sched_wakeup.c linux-libre-4.4.210-gnu/kernel/trace/trace_sched_wakeup.c
--- linux-libre-4.4.209-gnu/kernel/trace/trace_sched_wakeup.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/kernel/trace/trace_sched_wakeup.c	2020-01-14 14:03:08.000000000 -0500
@@ -625,7 +625,7 @@ static void start_wakeup_tracer(struct t
 	if (ret) {
 		pr_info("wakeup trace: Couldn't activate tracepoint"
 			" probe to kernel_sched_migrate_task\n");
-		return;
+		goto fail_deprobe_sched_switch;
 	}
 
 	wakeup_reset(tr);
@@ -643,6 +643,8 @@ static void start_wakeup_tracer(struct t
 		printk(KERN_ERR "failed to start wakeup tracer\n");
 
 	return;
+fail_deprobe_sched_switch:
+	unregister_trace_sched_switch(probe_wakeup_sched_switch, NULL);
 fail_deprobe_wake_new:
 	unregister_trace_sched_wakeup_new(probe_wakeup, NULL);
 fail_deprobe:
diff -druNp --no-dereference linux-libre-4.4.209-gnu/kernel/trace/trace_stack.c linux-libre-4.4.210-gnu/kernel/trace/trace_stack.c
--- linux-libre-4.4.209-gnu/kernel/trace/trace_stack.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/kernel/trace/trace_stack.c	2020-01-14 14:03:08.000000000 -0500
@@ -197,6 +197,11 @@ check_stack(unsigned long ip, unsigned l
 	local_irq_restore(flags);
 }
 
+/* Some archs may not define MCOUNT_INSN_SIZE */
+#ifndef MCOUNT_INSN_SIZE
+# define MCOUNT_INSN_SIZE 0
+#endif
+
 static void
 stack_trace_call(unsigned long ip, unsigned long parent_ip,
 		 struct ftrace_ops *op, struct pt_regs *pt_regs)
diff -druNp --no-dereference linux-libre-4.4.209-gnu/lib/kobject.c linux-libre-4.4.210-gnu/lib/kobject.c
--- linux-libre-4.4.209-gnu/lib/kobject.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/lib/kobject.c	2020-01-14 14:03:08.000000000 -0500
@@ -599,12 +599,15 @@ struct kobject *kobject_get(struct kobje
 }
 EXPORT_SYMBOL(kobject_get);
 
-static struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj)
+struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj)
 {
+	if (!kobj)
+		return NULL;
 	if (!kref_get_unless_zero(&kobj->kref))
 		kobj = NULL;
 	return kobj;
 }
+EXPORT_SYMBOL(kobject_get_unless_zero);
 
 /*
  * kobject_cleanup - free kobject resources.
diff -druNp --no-dereference linux-libre-4.4.209-gnu/Makefile linux-libre-4.4.210-gnu/Makefile
--- linux-libre-4.4.209-gnu/Makefile	2020-01-12 12:57:31.000000000 -0500
+++ linux-libre-4.4.210-gnu/Makefile	2020-01-14 22:14:28.000000000 -0500
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 4
-SUBLEVEL = 209
+SUBLEVEL = 210
 EXTRAVERSION = -gnu
 NAME = Blurry Fish Butt
 
diff -druNp --no-dereference linux-libre-4.4.209-gnu/net/ipv4/netfilter/arp_tables.c linux-libre-4.4.210-gnu/net/ipv4/netfilter/arp_tables.c
--- linux-libre-4.4.209-gnu/net/ipv4/netfilter/arp_tables.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/net/ipv4/netfilter/arp_tables.c	2020-01-14 14:03:08.000000000 -0500
@@ -488,11 +488,12 @@ next:
 	return 1;
 }
 
-static inline int check_target(struct arpt_entry *e, const char *name)
+static int check_target(struct arpt_entry *e, struct net *net, const char *name)
 {
 	struct xt_entry_target *t = arpt_get_target(e);
 	int ret;
 	struct xt_tgchk_param par = {
+		.net       = net,
 		.table     = name,
 		.entryinfo = e,
 		.target    = t->u.kernel.target,
@@ -510,8 +511,9 @@ static inline int check_target(struct ar
 	return 0;
 }
 
-static inline int
-find_check_entry(struct arpt_entry *e, const char *name, unsigned int size,
+static int
+find_check_entry(struct arpt_entry *e, struct net *net, const char *name,
+		 unsigned int size,
 		 struct xt_percpu_counter_alloc_state *alloc_state)
 {
 	struct xt_entry_target *t;
@@ -531,7 +533,7 @@ find_check_entry(struct arpt_entry *e, c
 	}
 	t->u.kernel.target = target;
 
-	ret = check_target(e, name);
+	ret = check_target(e, net, name);
 	if (ret)
 		goto err;
 	return 0;
@@ -632,7 +634,9 @@ static inline void cleanup_entry(struct
 /* Checks and translates the user-supplied table segment (held in
  * newinfo).
  */
-static int translate_table(struct xt_table_info *newinfo, void *entry0,
+static int translate_table(struct net *net,
+			   struct xt_table_info *newinfo,
+			   void *entry0,
 			   const struct arpt_replace *repl)
 {
 	struct xt_percpu_counter_alloc_state alloc_state = { 0 };
@@ -709,7 +713,7 @@ static int translate_table(struct xt_tab
 	/* Finally, each sanity check must pass */
 	i = 0;
 	xt_entry_foreach(iter, entry0, newinfo->size) {
-		ret = find_check_entry(iter, repl->name, repl->size,
+		ret = find_check_entry(iter, net, repl->name, repl->size,
 				       &alloc_state);
 		if (ret != 0)
 			break;
@@ -1114,7 +1118,7 @@ static int do_replace(struct net *net, c
 		goto free_newinfo;
 	}
 
-	ret = translate_table(newinfo, loc_cpu_entry, &tmp);
+	ret = translate_table(net, newinfo, loc_cpu_entry, &tmp);
 	if (ret != 0)
 		goto free_newinfo;
 
@@ -1301,7 +1305,8 @@ compat_copy_entry_from_user(struct compa
 	}
 }
 
-static int translate_compat_table(struct xt_table_info **pinfo,
+static int translate_compat_table(struct net *net,
+				  struct xt_table_info **pinfo,
 				  void **pentry0,
 				  const struct compat_arpt_replace *compatr)
 {
@@ -1371,7 +1376,7 @@ static int translate_compat_table(struct
 	repl.num_counters = 0;
 	repl.counters = NULL;
 	repl.size = newinfo->size;
-	ret = translate_table(newinfo, entry1, &repl);
+	ret = translate_table(net, newinfo, entry1, &repl);
 	if (ret)
 		goto free_newinfo;
 
@@ -1426,7 +1431,7 @@ static int compat_do_replace(struct net
 		goto free_newinfo;
 	}
 
-	ret = translate_compat_table(&newinfo, &loc_cpu_entry, &tmp);
+	ret = translate_compat_table(net, &newinfo, &loc_cpu_entry, &tmp);
 	if (ret != 0)
 		goto free_newinfo;
 
@@ -1696,7 +1701,7 @@ struct xt_table *arpt_register_table(str
 	loc_cpu_entry = newinfo->entries;
 	memcpy(loc_cpu_entry, repl->entries, repl->size);
 
-	ret = translate_table(newinfo, loc_cpu_entry, repl);
+	ret = translate_table(net, newinfo, loc_cpu_entry, repl);
 	duprintf("arpt_register_table: translate table gives %d\n", ret);
 	if (ret != 0)
 		goto out_free;
diff -druNp --no-dereference linux-libre-4.4.209-gnu/net/netfilter/ipset/ip_set_core.c linux-libre-4.4.210-gnu/net/netfilter/ipset/ip_set_core.c
--- linux-libre-4.4.209-gnu/net/netfilter/ipset/ip_set_core.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/net/netfilter/ipset/ip_set_core.c	2020-01-14 14:03:08.000000000 -0500
@@ -1619,6 +1619,7 @@ ip_set_utest(struct sock *ctnl, struct s
 	struct ip_set *set;
 	struct nlattr *tb[IPSET_ATTR_ADT_MAX + 1] = {};
 	int ret = 0;
+	u32 lineno;
 
 	if (unlikely(protocol_failed(attr) ||
 		     !attr[IPSET_ATTR_SETNAME] ||
@@ -1635,7 +1636,7 @@ ip_set_utest(struct sock *ctnl, struct s
 		return -IPSET_ERR_PROTOCOL;
 
 	rcu_read_lock_bh();
-	ret = set->variant->uadt(set, tb, IPSET_TEST, NULL, 0, 0);
+	ret = set->variant->uadt(set, tb, IPSET_TEST, &lineno, 0, 0);
 	rcu_read_unlock_bh();
 	/* Userspace can't trigger element to be re-added */
 	if (ret == -EAGAIN)
diff -druNp --no-dereference linux-libre-4.4.209-gnu/sound/usb/quirks.c linux-libre-4.4.210-gnu/sound/usb/quirks.c
--- linux-libre-4.4.209-gnu/sound/usb/quirks.c	2020-01-12 05:22:53.000000000 -0500
+++ linux-libre-4.4.210-gnu/sound/usb/quirks.c	2020-01-14 14:03:08.000000000 -0500
@@ -1142,6 +1142,7 @@ bool snd_usb_get_sample_rate_quirk(struc
 	case USB_ID(0x04D8, 0xFEEA): /* Benchmark DAC1 Pre */
 	case USB_ID(0x0556, 0x0014): /* Phoenix Audio TMX320VC */
 	case USB_ID(0x05A3, 0x9420): /* ELP HD USB Camera */
+	case USB_ID(0x05a7, 0x1020): /* Bose Companion 5 */
 	case USB_ID(0x074D, 0x3553): /* Outlaw RR2150 (Micronas UAC3553B) */
 	case USB_ID(0x1395, 0x740a): /* Sennheiser DECT */
 	case USB_ID(0x1901, 0x0191): /* GE B850V3 CP2114 audio interface */
