]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Oct 2016 07:30:25 +0000 (09:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Oct 2016 07:30:25 +0000 (09:30 +0200)
added patches:
alsa-hda-adding-one-more-alc255-pin-definition-for-headset-problem.patch
revert-usbtmc-convert-to-devm_kzalloc.patch
staging-fbtft-fix-bug-in-fbtft-core.patch
usb-serial-cp210x-add-id-for-a-juniper-console.patch

queue-4.4/alsa-hda-adding-one-more-alc255-pin-definition-for-headset-problem.patch [new file with mode: 0644]
queue-4.4/revert-usbtmc-convert-to-devm_kzalloc.patch [new file with mode: 0644]
queue-4.4/series
queue-4.4/staging-fbtft-fix-bug-in-fbtft-core.patch [new file with mode: 0644]
queue-4.4/usb-serial-cp210x-add-id-for-a-juniper-console.patch [new file with mode: 0644]

diff --git a/queue-4.4/alsa-hda-adding-one-more-alc255-pin-definition-for-headset-problem.patch b/queue-4.4/alsa-hda-adding-one-more-alc255-pin-definition-for-headset-problem.patch
new file mode 100644 (file)
index 0000000..04d29fa
--- /dev/null
@@ -0,0 +1,35 @@
+From 392c9da24a994f238c5d7ea611c6245be4617014 Mon Sep 17 00:00:00 2001
+From: Hui Wang <hui.wang@canonical.com>
+Date: Mon, 26 Sep 2016 10:59:38 +0800
+Subject: ALSA: hda - Adding one more ALC255 pin definition for headset problem
+
+From: Hui Wang <hui.wang@canonical.com>
+
+commit 392c9da24a994f238c5d7ea611c6245be4617014 upstream.
+
+We have two new Dell laptop models, they have the same ALC255 pin
+definition, but not in the pin quirk table yet, as a result, the
+headset microphone can't work. After adding the definition in the
+table, the headset microphone works well.
+
+Signed-off-by: Hui Wang <hui.wang@canonical.com>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/pci/hda/patch_realtek.c |    4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/sound/pci/hda/patch_realtek.c
++++ b/sound/pci/hda/patch_realtek.c
+@@ -5830,6 +5830,10 @@ static const struct snd_hda_pin_quirk al
+               {0x14, 0x90170120},
+               {0x21, 0x02211030}),
+       SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
++              {0x14, 0x90170110},
++              {0x1b, 0x02011020},
++              {0x21, 0x0221101f}),
++      SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
+               {0x14, 0x90170130},
+               {0x1b, 0x01014020},
+               {0x21, 0x0221103f}),
diff --git a/queue-4.4/revert-usbtmc-convert-to-devm_kzalloc.patch b/queue-4.4/revert-usbtmc-convert-to-devm_kzalloc.patch
new file mode 100644 (file)
index 0000000..9dcd8c6
--- /dev/null
@@ -0,0 +1,45 @@
+From ab21b63e8aedfc73565dd9cdd51eb338341177cb Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Wed, 28 Sep 2016 11:48:44 +0200
+Subject: Revert "usbtmc: convert to devm_kzalloc"
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+commit ab21b63e8aedfc73565dd9cdd51eb338341177cb upstream.
+
+This reverts commit e6c7efdcb76f11b04e3d3f71c8d764ab75c9423b.
+
+Turns out it was totally wrong.  The memory is supposed to be bound to
+the kref, as the original code was doing correctly, not the
+device/driver binding as the devm_kzalloc() would cause.
+
+This fixes an oops when read would be called after the device was
+unbound from the driver.
+
+Reported-by: Ladislav Michl <ladis@linux-mips.org>
+Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/usb/class/usbtmc.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/usb/class/usbtmc.c
++++ b/drivers/usb/class/usbtmc.c
+@@ -121,6 +121,7 @@ static void usbtmc_delete(struct kref *k
+       struct usbtmc_device_data *data = to_usbtmc_data(kref);
+       usb_put_dev(data->usb_dev);
++      kfree(data);
+ }
+ static int usbtmc_open(struct inode *inode, struct file *filp)
+@@ -1104,7 +1105,7 @@ static int usbtmc_probe(struct usb_inter
+       dev_dbg(&intf->dev, "%s called\n", __func__);
+-      data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL);
++      data = kmalloc(sizeof(*data), GFP_KERNEL);
+       if (!data)
+               return -ENOMEM;
index 0ad2c4ac359e5e79c47c8687177205ece5ece8cd..cbc72feaa487affc7fd6a49e5c77d6c5f2dd458c 100644 (file)
@@ -84,3 +84,7 @@ clk-xgene-add-missing-parenthesis-when-clearing-divider-value.patch
 dm-log-writes-fix-bug-with-too-large-bios.patch
 usb-serial-cp210x-fix-hardware-flow-control-disable.patch
 usb-misc-legousbtower-fix-null-pointer-deference.patch
+staging-fbtft-fix-bug-in-fbtft-core.patch
+usb-serial-cp210x-add-id-for-a-juniper-console.patch
+revert-usbtmc-convert-to-devm_kzalloc.patch
+alsa-hda-adding-one-more-alc255-pin-definition-for-headset-problem.patch
diff --git a/queue-4.4/staging-fbtft-fix-bug-in-fbtft-core.patch b/queue-4.4/staging-fbtft-fix-bug-in-fbtft-core.patch
new file mode 100644 (file)
index 0000000..42a4cd4
--- /dev/null
@@ -0,0 +1,37 @@
+From fc1e2c8ea85e109acf09e74789e9b852f6eed251 Mon Sep 17 00:00:00 2001
+From: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
+Date: Sun, 2 Oct 2016 17:42:35 +0200
+Subject: Staging: fbtft: Fix bug in fbtft-core
+
+From: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
+
+commit fc1e2c8ea85e109acf09e74789e9b852f6eed251 upstream.
+
+Commit 367e8560e8d7a62d96e9b1d644028a3816e04206 introduced a bug
+in fbtft-core where fps is always 0, this is because variable
+update_time is not assigned correctly.
+
+Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
+Fixes: 367e8560e8d7 ("Staging: fbtbt: Replace timespec with ktime_t")
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/staging/fbtft/fbtft-core.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/staging/fbtft/fbtft-core.c
++++ b/drivers/staging/fbtft/fbtft-core.c
+@@ -392,11 +392,11 @@ static void fbtft_update_display(struct
+       if (unlikely(timeit)) {
+               ts_end = ktime_get();
+-              if (ktime_to_ns(par->update_time))
++              if (!ktime_to_ns(par->update_time))
+                       par->update_time = ts_start;
+-              par->update_time = ts_start;
+               fps = ktime_us_delta(ts_start, par->update_time);
++              par->update_time = ts_start;
+               fps = fps ? 1000000 / fps : 0;
+               throughput = ktime_us_delta(ts_end, ts_start);
diff --git a/queue-4.4/usb-serial-cp210x-add-id-for-a-juniper-console.patch b/queue-4.4/usb-serial-cp210x-add-id-for-a-juniper-console.patch
new file mode 100644 (file)
index 0000000..9ee9e51
--- /dev/null
@@ -0,0 +1,26 @@
+From decc5360f23e9efe0252094f47f57f254dcbb3a9 Mon Sep 17 00:00:00 2001
+From: Kyle Jones <kyle@kf5jwc.us>
+Date: Fri, 23 Sep 2016 13:28:37 -0500
+Subject: USB: serial: cp210x: Add ID for a Juniper console
+
+From: Kyle Jones <kyle@kf5jwc.us>
+
+commit decc5360f23e9efe0252094f47f57f254dcbb3a9 upstream.
+
+Signed-off-by: Kyle Jones <kyle@kf5jwc.us>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/usb/serial/cp210x.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/usb/serial/cp210x.c
++++ b/drivers/usb/serial/cp210x.c
+@@ -117,6 +117,7 @@ static const struct usb_device_id id_tab
+       { USB_DEVICE(0x10C4, 0x8411) }, /* Kyocera GPS Module */
+       { USB_DEVICE(0x10C4, 0x8418) }, /* IRZ Automation Teleport SG-10 GSM/GPRS Modem */
+       { USB_DEVICE(0x10C4, 0x846E) }, /* BEI USB Sensor Interface (VCP) */
++      { USB_DEVICE(0x10C4, 0x8470) }, /* Juniper Networks BX Series System Console */
+       { USB_DEVICE(0x10C4, 0x8477) }, /* Balluff RFID */
+       { USB_DEVICE(0x10C4, 0x84B6) }, /* Starizona Hyperion */
+       { USB_DEVICE(0x10C4, 0x85EA) }, /* AC-Services IBUS-IF */