Linux 4.18.4
Greg KH
maintainerI'm announcing the release of the 4.18.4 kernel.
All users of the 4.18 kernel series must upgrade.
The updated 4.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.18.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 - drivers/acpi/sleep.c | 8 ++++ drivers/isdn/i4l/isdn_common.c | 8 ---- drivers/media/usb/dvb-usb-v2/gl861.c | 21 ++++++------ drivers/misc/sram.c | 9 ++++- drivers/net/ethernet/marvell/mvneta.c | 53 +++++++++++++++++++------------- drivers/net/ethernet/realtek/r8169.c | 12 ++++++- drivers/net/hyperv/rndis_filter.c | 2 - drivers/tty/serial/8250/8250_dw.c | 3 + drivers/tty/serial/8250/8250_exar.c | 6 +++ drivers/tty/serial/8250/8250_port.c | 3 - drivers/uio/uio.c | 10 +----- drivers/usb/serial/option.c | 4 ++ drivers/usb/serial/pl2303.c | 2 + drivers/usb/serial/pl2303.h | 1 drivers/usb/serial/sierra.c | 4 +- net/bluetooth/sco.c | 3 + net/core/sock_diag.c | 2 + net/ipv4/ip_vti.c | 3 + net/l2tp/l2tp_core.c | 2 - net/sched/cls_matchall.c | 2 + net/sched/cls_tcindex.c | 8 +--- net/socket.c | 3 - sound/core/memalloc.c | 8 +--- sound/core/seq/oss/seq_oss.c | 2 - sound/core/seq/seq_clientmgr.c | 2 - sound/core/seq/seq_virmidi.c | 10 ++++++ sound/firewire/dice/dice-alesis.c | 2 - sound/pci/cs5535audio/cs5535audio.h | 6 +-- sound/pci/cs5535audio/cs5535audio_pcm.c | 4 +- sound/pci/hda/hda_intel.c | 2 - sound/pci/hda/patch_conexant.c | 4 +- sound/pci/vx222/vx222_ops.c | 8 ++-- sound/pcmcia/vx/vxp_ops.c | 10 +++--- 34 files changed, 137 insertions(+), 92 deletions(-)
Aaron Sierra (1):
serial: 8250_exar: Read INT0 from slave device, too
Aleksander Morgado (1):
USB: option: add support for DW5821e
Andrew Lunn (1):
net: ethernet: mvneta: Fix napi structure mixup on armada 3700
Chen Hu (1):
serial: 8250_dw: always set baud rate in dw8250_set_termios
Greg Kroah-Hartman (1):
Linux 4.18.4
Hailong Liu (1):
uio: fix wrong return value from uio_mmap()
Haishuang Yan (1):
ip_vti: fix a null pointer deferrence when create vti fallback tunnel
Hangbin Liu (3):
net_sched: fix NULL pointer dereference when delete tcindex filter
net_sched: Fix missing res info when create new tc_index filter
cls_matchall: fix tcf_unbind_filter missing
Hans de Goede (1):
ALSA: hda: Correct Asrock B85M-ITX power_save blacklist entry
Heiner Kallweit (1):
r8169: don't use MSI-X on RTL8168g
Jeremy Cline (1):
net: sock_diag: Fix spectre v1 gadget in __sock_diag_cmd()
Jian-Hong Pan (1):
r8169: don't use MSI-X on RTL8106e
Jisheng Zhang (1):
net: mvneta: fix mvneta_config_rss on armada 3700
Johan Hovold (1):
misc: sram: fix resource leaks in probe error path
John Ogness (1):
USB: serial: sierra: fix potential deadlock at close
Kees Cook (1):
isdn: Disable IIOCDBGVAR
Mark (1):
tty: serial: 8250: Revert NXP SC16C2552 workaround
Mika Båtsman (1):
media: gl861: fix probe of dvb_usb_gl861
Movie Song (1):
USB: serial: pl2303: add a new device id for ATEN
Park Ju Hyung (2):
ALSA: hda - Sleep for 10ms after entering D3 on Conexant codecs
ALSA: hda - Turn CX8200 into D3 as well upon reboot
Srinath Mannam (1):
serial: 8250_dw: Add ACPI support for uart on Broadcom SoC
Sudip Mukherjee (1):
Bluetooth: avoid killing an already killed socket
Takashi Iwai (7):
ALSA: vx222: Fix invalid endian conversions
ALSA: virmidi: Fix too long output trigger loop
ALSA: cs5535audio: Fix invalid endian conversion
ALSA: memalloc: Don't exceed over the requested size
ALSA: vxpocket: Fix invalid endian conversions
ALSA: seq: Fix poll() error return
hv/netvsc: Fix NULL dereference at single queue mode fallback
Takashi Sakamoto (1):
ALSA: dice: fix wrong copy to rx parameters for Alesis iO26
Wei Wang (1):
l2tp: use sk_dst_check() to avoid race on sk->sk_dst_cache
Willy Tarreau (1):
ACPI / PM: save NVS memory for ASUS 1025C laptop
Xiubo Li (1):
Revert "uio: use request_threaded_irq instead"
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 18 -SUBLEVEL = 3 +SUBLEVEL = 4 EXTRAVERSION = NAME = Merciless Moray
drivers/acpi/sleep.c +8 -0
@@ -338,6 +338,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "K54HR"), }, }, + { + .callback = init_nvs_save_s3, + .ident = "Asus 1025C", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "1025C"), + }, + },/* * https://bugzilla.kernel.org/show_bug.cgi?id=189431 * Lenovo G50-45 is a platform later than 2012, but needs nvs memory
drivers/isdn/i4l/isdn_common.c +1 -7
@@ -1640,13 +1640,7 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg) }else return -EINVAL ;case IIOCDBGVAR : -if (arg) { -if (copy_to_user (argp, &dev,sizeof (ulong))) -return -EFAULT ; -return 0 ; - }else -return -EINVAL ; -break ; +return -EINVAL ;default :if ((cmd &IIOCDRVCTL ) ==IIOCDRVCTL ) cmd = ((cmd >> _IOC_NRSHIFT) & _IOC_NRMASK) &ISDN_DRVIOCTL_MASK ;
drivers/media/usb/dvb-usb-v2/gl861.c +10 -11
@@ -26,10 +26,14 @@ static int gl861_i2c_msg(struct dvb_usb_device *d, u8 addr,if (wo) { req =GL861_REQ_I2C_WRITE ; type =GL861_WRITE ; + buf =kmemdup (wbuf, wlen,GFP_KERNEL ); }else {/* rw */ req =GL861_REQ_I2C_READ ; type =GL861_READ ; + buf =kmalloc (rlen,GFP_KERNEL ); } +if (!buf) +return -ENOMEM ;switch (wlen) {case 1 :
@@ -42,24 +46,19 @@ static int gl861_i2c_msg(struct dvb_usb_device *d, u8 addr,default :dev_err (&d->udev->dev,"%s: wlen=%d, aborting\n" ,KBUILD_MODNAME , wlen); +kfree (buf);return -EINVAL ; } - buf =NULL ; -if (rlen >0 ) { - buf =kmalloc (rlen,GFP_KERNEL ); -if (!buf) -return -ENOMEM ; - } +usleep_range (1000 ,2000 );/* avoid I2C errors */ ret =usb_control_msg (d->udev,usb_rcvctrlpipe (d->udev,0 ), req, type, value, index, buf, rlen,2000 ); -if (rlen >0 ) { -if (ret >0 ) -memcpy (rbuf, buf, rlen); -kfree (buf); - } +if (!wo && ret >0 ) +memcpy (rbuf, buf, rlen); + +kfree (buf);return ret; }
drivers/misc/sram.c +8 -1
@@ -407,13 +407,20 @@ static int sram_probe(struct platform_device *pdev)if (init_func) { ret =init_func ();if (ret) -return ret; + goto err_disable_clk; }dev_dbg (sram->dev,"SRAM pool: %zu KiB @ 0x%p\n" ,gen_pool_size (sram->pool) /1024 , sram->virt_base);return 0 ; + +err_disable_clk: +if (sram->clk) +clk_disable_unprepare (sram->clk); +sram_free_partitions (sram); + +return ret; }static int sram_remove (struct platform_device *pdev)
drivers/net/ethernet/marvell/mvneta.c +32 -21
114 lines not on this page · raw message
drivers/net/ethernet/realtek/r8169.c +10 -2
@@ -7539,12 +7539,20 @@ static int rtl_alloc_irq(struct rtl8169_private *tp) {unsigned int flags; -if (tp->mac_version <=RTL_GIGA_MAC_VER_06 ) { +switch (tp->mac_version) { + case RTL_GIGA_MAC_VER_01 ... RTL_GIGA_MAC_VER_06:RTL_W8 (tp, Cfg9346, Cfg9346_Unlock);RTL_W8 (tp, Config2,RTL_R8 (tp, Config2) & ~MSIEnable);RTL_W8 (tp, Cfg9346, Cfg9346_Lock); flags =PCI_IRQ_LEGACY ; - }else { +break ; + case RTL_GIGA_MAC_VER_39 ... RTL_GIGA_MAC_VER_40: +/* This version was reported to have issues with resume +* from suspend when using MSI-X +*/ + flags =PCI_IRQ_LEGACY |PCI_IRQ_MSI ; +break ; +default : flags =PCI_IRQ_ALL_TYPES ; }
drivers/net/hyperv/rndis_filter.c +1 -1
@@ -1338,7 +1338,7 @@ struct netvsc_device *rndis_filter_device_add(struct hv_device *dev,/* setting up multiple channels failed */ net_device->max_chn =1 ; net_device->num_chn =1 ; -return 0 ; +return net_device; err_dev_remv:rndis_filter_device_remove (dev, net_device);
drivers/tty/serial/8250/8250_dw.c +2 -1
@@ -293,7 +293,7 @@ static void dw8250_set_termios(struct uart_port *p, struct ktermios *termios,long rate;int ret; -if (IS_ERR (d->clk) || !old) +if (IS_ERR (d->clk)) goto out;clk_disable_unprepare (d->clk);
@@ -707,6 +707,7 @@ static const struct acpi_device_id dw8250_acpi_match[] = { { "APMC0D08", 0}, { "AMD0020", 0 }, { "AMDI0020", 0 }, + { "BRCM2032", 0 }, { "HISI0031", 0 }, { }, };
drivers/tty/serial/8250/8250_exar.c +5 -1
@@ -433,7 +433,11 @@ static irqreturn_t exar_misc_handler(int irq, void *data)struct exar8250 *priv = data;/* Clear all PCI interrupts by reading INT0. No effect on IIR */ -ioread8 (priv->virt +UART_EXAR_INT0 ); +readb (priv->virt +UART_EXAR_INT0 ); + +/* Clear INT0 for Expansion Interface slave ports, too */ +if (priv->board->num_ports >8 ) +readb (priv->virt +0x2000 +UART_EXAR_INT0 );return IRQ_HANDLED ; }
drivers/tty/serial/8250/8250_port.c +1 -2
@@ -90,8 +90,7 @@ static const struct serial8250_config uart_config[] = { .name = "16550A", .fifo_size = 16, .tx_loadsz = 16, - .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10 | - UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT, + .fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10, .rxtrig_bytes = {1, 4, 8, 14}, .flags = UART_CAP_FIFO, },
drivers/uio/uio.c +3 -7
@@ -443,13 +443,10 @@ static irqreturn_t uio_interrupt(int irq, void *dev_id)struct uio_device *idev = (struct uio_device *)dev_id;irqreturn_t ret; -mutex_lock (&idev->info_lock); - ret = idev->info->handler (irq, idev->info);if (ret ==IRQ_HANDLED )uio_event_notify (idev->info); -mutex_unlock (&idev->info_lock);return ret; }
@@ -814,7 +811,7 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma) out:mutex_unlock (&idev->info_lock); -return 0 ; +return ret; }static const struct file_operations uio_fops = {
@@ -969,9 +966,8 @@ int __uio_register_device(struct module *owner,* FDs at the time of unregister and therefore may not be * freed until they are released. */ - ret =request_threaded_irq (info->irq,NULL , uio_interrupt, - info->irq_flags, info->name, idev); - + ret =request_irq (info->irq, uio_interrupt, + info->irq_flags, info->name, idev);if (ret) goto err_request_irq; }
drivers/usb/serial/option.c +4 -0
@@ -196,6 +196,8 @@ static void option_instat_callback(struct urb *urb);#define DELL_PRODUCT_5800_V2_MINICARD_VZW 0x8196/* Novatel E362 */ #define DELL_PRODUCT_5804_MINICARD_ATT 0x819b/* Novatel E371 */ +#define DELL_PRODUCT_5821E 0x81d7 +#define KYOCERA_VENDOR_ID 0x0c88#define KYOCERA_PRODUCT_KPC650 0x17da#define KYOCERA_PRODUCT_KPC680 0x180a
@@ -1030,6 +1032,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5800_MINICARD_VZW, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5800_V2_MINICARD_VZW, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5804_MINICARD_ATT, 0xff, 0xff, 0xff) }, + { USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5821E), + .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_E100A) }, /* ADU-E100, ADU-310 */ { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_500A) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_620UW) },
drivers/usb/serial/pl2303.c +2 -0
@@ -52,6 +52,8 @@ static const struct usb_device_id id_table[] = { .driver_info = PL2303_QUIRK_ENDPOINT_HACK }, { USB_DEVICE(ATEN_VENDOR_ID, ATEN_PRODUCT_UC485), .driver_info = PL2303_QUIRK_ENDPOINT_HACK }, + { USB_DEVICE(ATEN_VENDOR_ID, ATEN_PRODUCT_UC232B), + .driver_info = PL2303_QUIRK_ENDPOINT_HACK }, { USB_DEVICE(ATEN_VENDOR_ID, ATEN_PRODUCT_ID2) }, { USB_DEVICE(ATEN_VENDOR_ID2, ATEN_PRODUCT_ID) }, { USB_DEVICE(ELCOM_VENDOR_ID, ELCOM_PRODUCT_ID) },
drivers/usb/serial/pl2303.h +1 -0
@@ -24,6 +24,7 @@#define ATEN_VENDOR_ID2 0x0547#define ATEN_PRODUCT_ID 0x2008#define ATEN_PRODUCT_UC485 0x2021 +#define ATEN_PRODUCT_UC232B 0x2022#define ATEN_PRODUCT_ID2 0x2118#define IODATA_VENDOR_ID 0x04bb
drivers/usb/serial/sierra.c +2 -2
@@ -770,9 +770,9 @@ static void sierra_close(struct usb_serial_port *port)kfree (urb->transfer_buffer);usb_free_urb (urb);usb_autopm_put_interface_async (serial->interface); -spin_lock (&portdata->lock); +spin_lock_irq (&portdata->lock); portdata->outstanding_urbs--; -spin_unlock (&portdata->lock); +spin_unlock_irq (&portdata->lock); }sierra_stop_rx_urbs (port);
net/bluetooth/sco.c +2 -1
@@ -393,7 +393,8 @@ static void sco_sock_cleanup_listen(struct sock *parent)*/ static void sco_sock_kill (struct sock *sk) { -if (!sock_flag (sk,SOCK_ZAPPED ) || sk->sk_socket) +if (!sock_flag (sk,SOCK_ZAPPED ) || sk->sk_socket || +sock_flag (sk,SOCK_DEAD ))return ;BT_DBG ("sk %p state %d" , sk, sk->sk_state);
net/core/sock_diag.c +2 -0
@@ -10,6 +10,7 @@#include <linux/kernel.h> #include <linux/tcp.h> #include <linux/workqueue.h> +#include <linux/nospec.h> #include <linux/inet_diag.h> #include <linux/sock_diag.h>
@@ -218,6 +219,7 @@ static int __sock_diag_cmd(struct sk_buff *skb, struct nlmsghdr *nlh)if (req->sdiag_family >=AF_MAX )return -EINVAL ; + req->sdiag_family =array_index_nospec (req->sdiag_family,AF_MAX );if (sock_diag_handlers[req->sdiag_family] ==NULL )sock_load_diag_module (req->sdiag_family,0 );
net/ipv4/ip_vti.c +2 -1
@@ -438,7 +438,8 @@ static int __net_init vti_init_net(struct net *net)if (err)return err; itn =net_generic (net, vti_net_id); -vti_fb_tunnel_init (itn->fb_tunnel_dev); +if (itn->fb_tunnel_dev) +vti_fb_tunnel_init (itn->fb_tunnel_dev);return 0 ; }
net/l2tp/l2tp_core.c +1 -1
@@ -1110,7 +1110,7 @@ int l2tp_xmit_skb(struct l2tp_session *session, struct sk_buff *skb, int hdr_len/* Get routing info from the tunnel socket */ skb_dst_drop (skb); -skb_dst_set (skb,dst_clone (__sk_dst_check (sk,0 ))); +skb_dst_set (skb,sk_dst_check (sk,0 )); inet =inet_sk (sk); fl = &inet->cork.fl;
net/sched/cls_matchall.c +2 -0
@@ -111,6 +111,8 @@ static void mall_destroy(struct tcf_proto *tp, struct netlink_ext_ack *extack)if (!head)return ; +tcf_unbind_filter (tp, &head->res); +if (!tc_skip_hw (head->flags))mall_destroy_hw_filter (tp, head, (unsigned long ) head, extack);
net/sched/cls_tcindex.c +3 -5
@@ -447,11 +447,6 @@ tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base,tcf_bind_filter (tp, &cr.res, base); } -if (old_r) -tcf_exts_change (&r->exts, &e); -else -tcf_exts_change (&cr.exts, &e); -if (old_r && old_r != r) { err =tcindex_filter_result_init (old_r);if (err <0 ) {
@@ -462,12 +457,15 @@ tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, oldp = p; r->res = cr.res; +tcf_exts_change (&r->exts, &e); +rcu_assign_pointer (tp->root, cp);if (r == &new_filter_result) {struct tcindex_filter *nfp;struct tcindex_filter __rcu **fp; + f->result.res = r->res;tcf_exts_change (&f->result.exts, &r->exts); fp = cp->h + (handle % cp->hash);
net/socket.c +1 -2
@@ -2690,8 +2690,7 @@ EXPORT_SYMBOL(sock_unregister);bool sock_is_registered (int family) { -return family <NPROTO && -rcu_access_pointer (net_families[array_index_nospec (family,NPROTO )]); +return family <NPROTO &&rcu_access_pointer (net_families[family]); }static int __init sock_init (void )
sound/core/memalloc.c +2 -6
@@ -242,16 +242,12 @@ int snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size,int err;while ((err =snd_dma_alloc_pages (type, device, size, dmab)) <0 ) { -size_t aligned_size;if (err != -ENOMEM )return err;if (size <=PAGE_SIZE )return -ENOMEM ; - aligned_size =PAGE_SIZE <<get_order (size); -if (size != aligned_size) - size = aligned_size; -else - size >>=1 ; + size >>=1 ; + size =PAGE_SIZE <<get_order (size); }if (! dmab->area)return -ENOMEM ;
sound/core/seq/oss/seq_oss.c +1 -1
@@ -203,7 +203,7 @@ odev_poll(struct file *file, poll_table * wait)struct seq_oss_devinfo *dp; dp = file->private_data;if (snd_BUG_ON (!dp)) -return -ENXIO ; +return EPOLLERR ;return snd_seq_oss_poll (dp, file, wait); }
sound/core/seq/seq_clientmgr.c +1 -1
@@ -1101,7 +1101,7 @@ static __poll_t snd_seq_poll(struct file *file, poll_table * wait)/* check client structures are in place */ if (snd_BUG_ON (!client)) -return -ENXIO ; +return EPOLLERR ;if ((snd_seq_file_flags (file) &SNDRV_SEQ_LFLG_INPUT ) && client->data.user.fifo) {
sound/core/seq/seq_virmidi.c +10 -0
@@ -163,6 +163,7 @@ static void snd_virmidi_output_trigger(struct snd_rawmidi_substream *substream,int count, res;unsigned char buf[32 ], *pbuf;unsigned long flags; +bool check_resched = !in_atomic ();if (up) { vmidi->trigger =1 ;
@@ -200,6 +201,15 @@ static void snd_virmidi_output_trigger(struct snd_rawmidi_substream *substream, vmidi->event.type =SNDRV_SEQ_EVENT_NONE ; } } +if (!check_resched) +continue ; +/* do temporary unlock & cond_resched() for avoiding +* CPU soft lockup, which may happen via a write from +* a huge rawmidi buffer +*/ +spin_unlock_irqrestore (&substream->runtime->lock, flags); +cond_resched (); +spin_lock_irqsave (&substream->runtime->lock, flags); } out:spin_unlock_irqrestore (&substream->runtime->lock, flags);
sound/firewire/dice/dice-alesis.c +1 -1
@@ -37,7 +37,7 @@ int snd_dice_detect_alesis_formats(struct snd_dice *dice)MAX_STREAMS *SND_DICE_RATE_MODE_COUNT * sizeof(unsigned int)); }else { -memcpy (dice->rx_pcm_chs, alesis_io26_tx_pcm_chs, +memcpy (dice->tx_pcm_chs, alesis_io26_tx_pcm_chs,MAX_STREAMS *SND_DICE_RATE_MODE_COUNT *sizeof (unsigned int )); }
sound/pci/cs5535audio/cs5535audio.h +3 -3
@@ -67,9 +67,9 @@ struct cs5535audio_dma_ops { };struct cs5535audio_dma_desc { -u32 addr; -u16 size; -u16 ctlreserved; +__le32 addr; +__le16 size; +__le16 ctlreserved; };struct cs5535audio_dma {
sound/pci/cs5535audio/cs5535audio_pcm.c +2 -2
@@ -158,8 +158,8 @@ static int cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, lastdesc->addr =cpu_to_le32 ((u32 ) dma->desc_buf.addr); lastdesc->size =0 ; lastdesc->ctlreserved =cpu_to_le16 (PRD_JMP ); - jmpprd_addr =cpu_to_le32 (lastdesc->addr + - (sizeof (struct cs5535audio_dma_desc )*periods)); + jmpprd_addr = (u32 )dma->desc_buf.addr + +sizeof (struct cs5535audio_dma_desc ) * periods; dma->substream = substream; dma->period_bytes = period_bytes;
sound/pci/hda/hda_intel.c +1 -1
@@ -2207,7 +2207,7 @@ static int azx_probe(struct pci_dev *pci,*/ static struct snd_pci_quirk power_save_blacklist[] = {/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ -SND_PCI_QUIRK (0x1849 ,0x0c0c ,"Asrock B85M-ITX" ,0 ), +SND_PCI_QUIRK (0x1849 ,0xc892 ,"Asrock B85M-ITX" ,0 ),/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */ SND_PCI_QUIRK (0x1849 ,0x7662 ,"Asrock H81M-HDS" ,0 ),/* https://bugzilla.redhat.com/show_bug.cgi?id=1525104 */
sound/pci/hda/patch_conexant.c +3 -1
@@ -211,6 +211,7 @@ static void cx_auto_reboot_notify(struct hda_codec *codec)struct conexant_spec *spec = codec->spec;switch (codec->core.vendor_id) { +case 0x14f12008 :/* CX8200 */ case 0x14f150f2 :/* CX20722 */ case 0x14f150f4 :/* CX20724 */ break ;
@@ -218,13 +219,14 @@ static void cx_auto_reboot_notify(struct hda_codec *codec)return ; } -/* Turn the CX20722 codec into D3 to avoid spurious noises +/* Turn the problematic codec into D3 to avoid spurious noises from the internal speaker during (and after) reboot */ cx_auto_turn_eapd (codec, spec->num_eapds, spec->eapds, false);snd_hda_codec_set_power_to_all (codec, codec->core.afg,AC_PWRST_D3 );snd_hda_codec_write (codec, codec->core.afg,0 ,AC_VERB_SET_POWER_STATE ,AC_PWRST_D3 ); +msleep (10 ); }static void cx_auto_free (struct hda_codec *codec)
sound/pci/vx222/vx222_ops.c +4 -4
@@ -275,7 +275,7 @@ static void vx2_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, length >>=2 ;/* in 32bit words */ /* Transfer using pseudo-dma. */ for (; length >0 ; length--) { -outl (cpu_to_le32 (*addr), port); +outl (*addr, port); addr++; } addr = (u32 *)runtime->dma_area;
@@ -285,7 +285,7 @@ static void vx2_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, count >>=2 ;/* in 32bit words */ /* Transfer using pseudo-dma. */ for (; count >0 ; count--) { -outl (cpu_to_le32 (*addr), port); +outl (*addr, port); addr++; }
@@ -313,7 +313,7 @@ static void vx2_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, length >>=2 ;/* in 32bit words */ /* Transfer using pseudo-dma. */ for (; length >0 ; length--) - *addr++ =le32_to_cpu (inl (port)); + *addr++ =inl (port); addr = (u32 *)runtime->dma_area; pipe->hw_ptr =0 ; }
@@ -321,7 +321,7 @@ static void vx2_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, count >>=2 ;/* in 32bit words */ /* Transfer using pseudo-dma. */ for (; count >0 ; count--) - *addr++ =le32_to_cpu (inl (port)); + *addr++ =inl (port);vx2_release_pseudo_dma (chip); }
sound/pcmcia/vx/vxp_ops.c +5 -5
@@ -375,7 +375,7 @@ static void vxp_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, length >>=1 ;/* in 16bit words */ /* Transfer using pseudo-dma. */ for (; length >0 ; length--) { -outw (cpu_to_le16 (*addr), port); +outw (*addr, port); addr++; } addr = (unsigned short *)runtime->dma_area;
@@ -385,7 +385,7 @@ static void vxp_dma_write(struct vx_core *chip, struct snd_pcm_runtime *runtime, count >>=1 ;/* in 16bit words */ /* Transfer using pseudo-dma. */ for (; count >0 ; count--) { -outw (cpu_to_le16 (*addr), port); +outw (*addr, port); addr++; }vx_release_pseudo_dma (chip);
@@ -417,7 +417,7 @@ static void vxp_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, length >>=1 ;/* in 16bit words */ /* Transfer using pseudo-dma. */ for (; length >0 ; length--) - *addr++ =le16_to_cpu (inw (port)); + *addr++ =inw (port); addr = (unsigned short *)runtime->dma_area; pipe->hw_ptr =0 ; }
@@ -425,12 +425,12 @@ static void vxp_dma_read(struct vx_core *chip, struct snd_pcm_runtime *runtime, count >>=1 ;/* in 16bit words */ /* Transfer using pseudo-dma. */ for (; count >1 ; count--) - *addr++ =le16_to_cpu (inw (port)); + *addr++ =inw (port);/* Disable DMA */ pchip->regDIALOG &= ~VXP_DLG_DMAREAD_SEL_MASK ;vx_outb (chip,DIALOG , pchip->regDIALOG);/* Read the last word (16 bits) */ - *addr =le16_to_cpu (inw (port)); + *addr =inw (port);/* Disable 16-bit accesses */ pchip->regDIALOG &= ~VXP_DLG_DMA16_SEL_MASK ;vx_outb (chip,DIALOG , pchip->regDIALOG);