Linux 4.9.49
Greg KH
maintainerI'm announcing the release of the 4.9.49 kernel.
All users of the 4.9 kernel series must upgrade.
The updated 4.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.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 arch/s390/include/asm/pgtable.h | 2 arch/s390/mm/gmap.c | 39 ++++++- drivers/ata/pata_amd.c | 1 drivers/ata/pata_cs5536.c | 1 drivers/base/bus.c | 2 drivers/bluetooth/btusb.c | 1 drivers/gpu/drm/bridge/adv7511/adv7511.h | 2 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 25 ++++ drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c | 4 drivers/hwtracing/intel_th/pci.c | 10 + drivers/iio/adc/ti-ads1015.c | 123 ++++++++++++++---------- drivers/input/mouse/trackpoint.c | 4 drivers/mcb/mcb-lpc.c | 15 ++ drivers/net/wireless/ath/ath10k/core.c | 12 +- drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 1 drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 drivers/net/wireless/marvell/mwifiex/scan.c | 6 + drivers/net/wireless/realtek/rtlwifi/pci.c | 4 drivers/scsi/sg.c | 19 ++- drivers/staging/rts5208/rtsx_scsi.c | 2 drivers/usb/core/devio.c | 4 drivers/usb/core/quirks.c | 6 - drivers/usb/host/pci-quirks.c | 35 +++--- drivers/usb/musb/musb_core.c | 18 +-- drivers/usb/serial/option.c | 1 fs/dlm/user.c | 4 include/linux/pci_ids.h | 1 include/linux/workqueue.h | 2 29 files changed, 240 insertions(+), 108 deletions(-)
Akinobu Mita (6):
iio: adc: ti-ads1015: fix incorrect data rate setting update
iio: adc: ti-ads1015: fix scale information for ADS1115
iio: adc: ti-ads1015: enable conversion when CONFIG_PM is not set
iio: adc: ti-ads1015: avoid getting stale result after runtime resume
iio: adc: ti-ads1015: don't return invalid value from buffer setup callbacks
iio: adc: ti-ads1015: add adequate wait time to get correct conversion
Alexander Shishkin (2):
intel_th: pci: Add Cannon Lake PCH-H support
intel_th: pci: Add Cannon Lake PCH-LP support
Andrey Korolyov (1):
cs5536: add support for IDE controller variant
Ben Hutchings (1):
workqueue: Fix flag collision
Brian Norris (1):
mwifiex: correct channel stat buffer overflows
Christian Borntraeger (1):
s390/mm: avoid empty zero pages for KVM guests to avoid postcopy hangs
Christophe JAILLET (1):
driver core: bus: Fix a potential double free
Colin Ian King (1):
staging/rts5208: fix incorrect shift to extract upper nybble
Dmitry Fleytman (1):
usb: Add device quirk for Logitech HD Pro Webcam C920-C
Dmitry Tunin (1):
Bluetooth: Add support of 13d3:3494 RTL8723BE device
Douglas Anderson (1):
USB: core: Avoid race of async_completed() w/ usbdev_release()
Edwin Török (1):
dlm: avoid double-free on error path in dlm_device_{register,unregister}Greg Kroah-Hartman (1):
Linux 4.9.49
Ilia Mirkin (1):
drm/nouveau/pci/msi: disable MSI on big-endian platforms by default
Johan Hovold (1):
USB: musb: fix external abort on suspend
John Stultz (2):
drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context drm/bridge: adv7511: Switch to using drm_kms_helper_hotplug_event()
Kai-Heng Feng (1):
usb: quirks: add delay init quirk for Corsair Strafe RGB keyboard
Luca Coelho (1):
iwlwifi: pci: add new PCI ID for 7265D
Maciej S. Szmigiero (1):
USB: serial: option: add support for D-Link DWM-157 C1
Malcolm Priestley (1):
rtlwifi: rtl_pci_probe: Fix fail path of _rtl_pci_find_adapter
Michael Moese (1):
MCB: add support for SC31 to mcb-lpc
Oscar Campos (1):
Input: trackpoint - assume 3 buttons when buttons detection fails
Rakesh Pillai (1):
ath10k: fix memory leak in rx ring buffer allocation
Sandeep Singh (1):
usb:xhci:Fix regression when ATI chipsets detected
Todd Poynor (2):
scsi: sg: protect against races between mmap() and SG_SET_RESERVED_SIZE
scsi: sg: recheck MMAP_IO request length with lock held
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 48 +SUBLEVEL = 49 EXTRAVERSION = NAME = Roaring Lionus
arch/s390/include/asm/pgtable.h +1 -1
@@ -480,7 +480,7 @@ static inline int mm_alloc_pgste(struct mm_struct *mm)* In the case that a guest uses storage keys * faults should no longer be backed by zero pages */ -#define mm_forbids_zeropage mm_use_skey +#define mm_forbids_zeropage mm_has_pgstestatic inline int mm_use_skey (struct mm_struct *mm) {#ifdef CONFIG_PGSTE
arch/s390/mm/gmap.c +32 -7
@@ -2124,6 +2124,37 @@ static inline void thp_split_mm(struct mm_struct *mm)#endif } +/* +* Remove all empty zero pages from the mapping for lazy refaulting +* - This must be called after mm->context.has_pgste is set, to avoid +* future creation of zero pages +* - This must be called after THP was enabled +*/ +static int __zap_zero_pages (pmd_t *pmd,unsigned long start, +unsigned long end,struct mm_walk *walk) +{ +unsigned long addr; + +for (addr = start; addr != end; addr +=PAGE_SIZE ) { +pte_t *ptep; +spinlock_t *ptl; + + ptep =pte_offset_map_lock (walk->mm, pmd, addr, &ptl); +if (is_zero_pfn (pte_pfn (*ptep))) +ptep_xchg_direct (walk->mm, addr, ptep,__pte (_PAGE_INVALID)); +pte_unmap_unlock (ptep, ptl); + } +return 0 ; +} + +static inline void zap_zero_pages (struct mm_struct *mm) +{ +struct mm_walk walk = { .pmd_entry = __zap_zero_pages }; + + walk.mm = mm; +walk_page_range (0 ,TASK_SIZE , &walk); +} +/* * switch on pgstes for its userspace process (for kvm) */
@@ -2141,6 +2172,7 @@ int s390_enable_sie(void) mm->context.has_pgste =1 ;/* split thp mappings and disable thp for future mappings */ thp_split_mm (mm); +zap_zero_pages (mm);up_write (&mm->mmap_sem);return 0 ; }
@@ -2153,13 +2185,6 @@ EXPORT_SYMBOL_GPL(s390_enable_sie);static int __s390_enable_skey (pte_t *pte,unsigned long addr,unsigned long next,struct mm_walk *walk) { -/* -* Remove all zero page mappings, -* after establishing a policy to forbid zero page mappings -* following faults for that page will get fresh anonymous pages -*/ -if (is_zero_pfn (pte_pfn (*pte))) -ptep_xchg_direct (walk->mm, addr, pte,__pte (_PAGE_INVALID));/* Clear storage key */ ptep_zap_key (walk->mm, addr, pte);return 0 ;
drivers/ata/pata_amd.c +1 -0
@@ -616,6 +616,7 @@ static const struct pci_device_id amd[] = { { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP73_IDE), 8 }, { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP77_IDE), 8 }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_IDE), 9 }, + { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_DEV_IDE), 9 }, { }, };
drivers/ata/pata_cs5536.c +1 -0
@@ -289,6 +289,7 @@ static int cs5536_init_one(struct pci_dev *dev, const struct pci_device_id *id)static const struct pci_device_id cs5536[] = { {PCI_VDEVICE (AMD ,PCI_DEVICE_ID_AMD_CS5536_IDE ), }, + {PCI_VDEVICE (AMD ,PCI_DEVICE_ID_AMD_CS5536_DEV_IDE ), }, { }, };
drivers/base/bus.c +1 -1
@@ -736,7 +736,7 @@ int bus_add_driver(struct device_driver *drv) out_unregister:kobject_put (&priv->kobj); -kfree (drv->p); +/* drv->p is freed in driver_release() */ drv->p =NULL ; out_put_bus:bus_put (bus);
drivers/bluetooth/btusb.c +1 -0
@@ -342,6 +342,7 @@ static const struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x13d3, 0x3410), .driver_info = BTUSB_REALTEK }, { USB_DEVICE(0x13d3, 0x3416), .driver_info = BTUSB_REALTEK }, { USB_DEVICE(0x13d3, 0x3459), .driver_info = BTUSB_REALTEK }, + { USB_DEVICE(0x13d3, 0x3494), .driver_info = BTUSB_REALTEK }, /* Additional Realtek 8821AE Bluetooth devices */ { USB_DEVICE(0x0b05, 0x17dc), .driver_info = BTUSB_REALTEK },
drivers/gpu/drm/bridge/adv7511/adv7511.h +2 -0
@@ -315,6 +315,8 @@ struct adv7511 {bool edid_read;wait_queue_head_t wq; +struct work_struct hpd_work; +struct drm_bridge bridge;struct drm_connector connector;
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +24 -1
@@ -402,6 +402,27 @@ static bool adv7511_hpd(struct adv7511 *adv7511)return false; } +static void adv7511_hpd_work (struct work_struct *work) +{ + struct adv7511 *adv7511 = container_of(work, struct adv7511, hpd_work); +enum drm_connector_status status; +unsigned int val; +int ret; + + ret =regmap_read (adv7511->regmap,ADV7511_REG_STATUS , &val); +if (ret <0 ) + status = connector_status_disconnected; +else if (val &ADV7511_STATUS_HPD ) + status = connector_status_connected; +else + status = connector_status_disconnected; + +if (adv7511->connector.status != status) { + adv7511->connector.status = status; +drm_kms_helper_hotplug_event (adv7511->connector.dev); + } +} +static int adv7511_irq_process (struct adv7511 *adv7511,bool process_hpd) {unsigned int irq0, irq1;
@@ -419,7 +440,7 @@ static int adv7511_irq_process(struct adv7511 *adv7511, bool process_hpd)regmap_write (adv7511->regmap,ADV7511_REG_INT (1 ), irq1);if (process_hpd && irq0 &ADV7511_INT0_HPD && adv7511->bridge.encoder) -drm_helper_hpd_irq_event (adv7511->connector.dev); +schedule_work (&adv7511->hpd_work);if (irq0 &ADV7511_INT0_EDID_READY || irq1 &ADV7511_INT1_DDC_ERROR ) { adv7511->edid_read = true;
@@ -1006,6 +1027,8 @@ static int adv7511_probe(struct i2c_client *i2c, const struct i2c_device_id *id) goto err_i2c_unregister_edid; } +INIT_WORK (&adv7511->hpd_work, adv7511_hpd_work); +if (i2c->irq) {init_waitqueue_head (&adv7511->wq);
drivers/gpu/drm/nouveau/nvkm/subdev/pci/base.c +4 -0
@@ -192,6 +192,10 @@ nvkm_pci_new_(const struct nvkm_pci_func *func, struct nvkm_device *device, } } +#ifdef __BIG_ENDIAN + pci->msi = false; +#endif + pci->msi =nvkm_boolopt (device->cfgopt,"NvMSI" , pci->msi);if (pci->msi && func->msi_rearm) { pci->msi =pci_enable_msi (pci->pdev) ==0 ;
drivers/hwtracing/intel_th/pci.c +10 -0
@@ -85,6 +85,16 @@ static const struct pci_device_id intel_th_pci_id_table[] = { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa2a6), .driver_data = (kernel_ulong_t)0, }, + { +/* Cannon Lake H */ + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa326), + .driver_data = (kernel_ulong_t )0 , + }, + { +/* Cannon Lake LP */ +PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x9da6 ), + .driver_data = (kernel_ulong_t)0, + }, { 0 }, };
drivers/iio/adc/ti-ads1015.c +72 -51
231 lines not on this page · raw message
drivers/input/mouse/trackpoint.c +2 -2
@@ -381,8 +381,8 @@ int trackpoint_detect(struct psmouse *psmouse, bool set_properties)return 0 ;if (trackpoint_read (&psmouse->ps2dev,TP_EXT_BTN , &button_info)) { -psmouse_warn (psmouse,"failed to get extended button data\n" ); - button_info =0 ; +psmouse_warn (psmouse,"failed to get extended button data, assuming 3 buttons\n" ); + button_info =0x33 ; } psmouse->private =kzalloc (sizeof (struct trackpoint_data ),GFP_KERNEL );
drivers/mcb/mcb-lpc.c +15 -0
@@ -114,6 +114,12 @@ static struct resource sc24_fpga_resource = { .flags = IORESOURCE_MEM, }; +static struct resource sc31_fpga_resource = { + .start =0xf000e000 , + .end =0xf000e000 +CHAM_HEADER_SIZE , + .flags =IORESOURCE_MEM , +}; +static struct platform_driver mcb_lpc_driver = { .driver = { .name ="mcb-lpc" ,
@@ -132,6 +138,15 @@ static const struct dmi_system_id mcb_lpc_dmi_table[] = { .driver_data = (void *)&sc24_fpga_resource, .callback = mcb_lpc_create_platform_device, }, + { + .ident = "SC31", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "MEN"), + DMI_MATCH(DMI_PRODUCT_VERSION, "14SC31"), + }, + .driver_data = (void *)&sc31_fpga_resource, + .callback = mcb_lpc_create_platform_device, + }, {} }; MODULE_DEVICE_TABLE(dmi, mcb_lpc_dmi_table);
drivers/net/wireless/ath/ath10k/core.c +6 -6
@@ -1852,6 +1852,12 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode, goto err_wmi_detach; } +/* If firmware indicates Full Rx Reorder support it must be used in a +* slightly different manner. Let HTT code know. +*/ + ar->htt.rx_ring.in_ord_rx = !!(test_bit (WMI_SERVICE_RX_FULL_REORDER , + ar->wmi.svc_map)); + status =ath10k_htt_rx_alloc (&ar->htt);if (status) {ath10k_err (ar,"failed to alloc htt rx: %d\n" , status);
@@ -1964,12 +1970,6 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode, } } -/* If firmware indicates Full Rx Reorder support it must be used in a -* slightly different manner. Let HTT code know. -*/ - ar->htt.rx_ring.in_ord_rx = !!(test_bit (WMI_SERVICE_RX_FULL_REORDER , - ar->wmi.svc_map)); - status =ath10k_htt_rx_ring_refill (ar);if (status) {ath10k_err (ar,"failed to refill htt rx ring: %d\n" , status);
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +1 -0
@@ -429,6 +429,7 @@ static const struct pci_device_id iwl_hw_card_ids[] = { {IWL_PCI_DEVICE(0x095B, 0x520A, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x9000, iwl7265_2ac_cfg)}, {IWL_PCI_DEVICE(0x095A, 0x9400, iwl7265_2ac_cfg)}, + {IWL_PCI_DEVICE(0x095A, 0x9E10, iwl7265_2ac_cfg)},/* 8000 Series */ {IWL_PCI_DEVICE(0x24F3, 0x0010, iwl8260_2ac_cfg)},
drivers/net/wireless/marvell/mwifiex/cfg80211.c +1 -1
@@ -4188,7 +4188,7 @@ int mwifiex_init_channel_scan_gap(struct mwifiex_adapter *adapter)if (adapter->config_bands &BAND_A ) n_channels_a = mwifiex_band_5ghz.n_channels; - adapter->num_in_chan_stats =max_t (u32, n_channels_bg, n_channels_a); + adapter->num_in_chan_stats = n_channels_bg + n_channels_a; adapter->chan_stats =vmalloc (sizeof (*adapter->chan_stats) * adapter->num_in_chan_stats);
drivers/net/wireless/marvell/mwifiex/scan.c +6 -0
@@ -2479,6 +2479,12 @@ mwifiex_update_chan_statistics(struct mwifiex_private *priv,sizeof (struct mwifiex_chan_stats );for (i =0 ; i < num_chan; i++) { +if (adapter->survey_idx >= adapter->num_in_chan_stats) { +mwifiex_dbg (adapter,WARN , +"FW reported too many channel results (max %d)\n" , + adapter->num_in_chan_stats); +return ; + } chan_stats.chan_num = fw_chan_stats->chan_num; chan_stats.bandcfg = fw_chan_stats->bandcfg; chan_stats.flags = fw_chan_stats->flags;
drivers/net/wireless/realtek/rtlwifi/pci.c +2 -2
@@ -2269,7 +2269,7 @@ int rtl_pci_probe(struct pci_dev *pdev,/* find adapter */ if (!_rtl_pci_find_adapter (pdev, hw)) { err = -ENODEV ; - goto fail3; + goto fail2; }/* Init IO handler */
@@ -2339,10 +2339,10 @@ int rtl_pci_probe(struct pci_dev *pdev,pci_set_drvdata (pdev,NULL );rtl_deinit_core (hw); +fail2:if (rtlpriv->io.pci_mem_start !=0 )pci_iounmap (pdev, (void __iomem *)rtlpriv->io.pci_mem_start); -fail2:pci_release_regions (pdev);complete (&rtlpriv->firmware_loading_complete);
drivers/scsi/sg.c +14 -5
@@ -1244,6 +1244,7 @@ sg_mmap(struct file *filp, struct vm_area_struct *vma)unsigned long req_sz, len, sa;Sg_scatter_hold *rsv_schp;int k, length; +int ret =0 ;if ((!filp) || (!vma) || (!(sfp = (Sg_fd *) filp->private_data)))return -ENXIO ;
@@ -1254,8 +1255,11 @@ sg_mmap(struct file *filp, struct vm_area_struct *vma)if (vma->vm_pgoff)return -EINVAL ;/* want no offset */ rsv_schp = &sfp->reserve; -if (req_sz > rsv_schp->bufflen) -return -ENOMEM ;/* cannot map more than reserved buffer */ +mutex_lock (&sfp->f_mutex); +if (req_sz > rsv_schp->bufflen) { + ret = -ENOMEM ;/* cannot map more than reserved buffer */ + goto out; + } sa = vma->vm_start; length =1 << (PAGE_SHIFT + rsv_schp->page_order);
@@ -1269,7 +1273,9 @@ sg_mmap(struct file *filp, struct vm_area_struct *vma) vma->vm_flags |=VM_IO |VM_DONTEXPAND |VM_DONTDUMP ; vma->vm_private_data = sfp; vma->vm_ops = &sg_mmap_vm_ops; -return 0 ; +out: +mutex_unlock (&sfp->f_mutex); +return ret; } static void
@@ -1741,9 +1747,12 @@ sg_start_req(Sg_request *srp, unsigned char *cmd) !sfp->res_in_use) { sfp->res_in_use =1 ;sg_link_reserve (sfp, srp, dxfer_len); - } else if ((hp->flags & SG_FLAG_MMAP_IO) && sfp->res_in_use) { + } else if (hp->flags & SG_FLAG_MMAP_IO) { + res = -EBUSY ;/* sfp->res_in_use == 1 */ +if (dxfer_len > rsv_schp->bufflen) + res = -ENOMEM ;mutex_unlock (&sfp->f_mutex); -return -EBUSY ; +return res; } else { res =sg_build_indirect (req_schp, sfp, dxfer_len);if (res) {
drivers/staging/rts5208/rtsx_scsi.c +1 -1
@@ -414,7 +414,7 @@ void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, sense->ascq = ascq;if (sns_key_info0 !=0 ) { sense->sns_key_info[0 ] =SKSV | sns_key_info0; - sense->sns_key_info[1 ] = (sns_key_info1 &0xf0 ) >>8 ; + sense->sns_key_info[1 ] = (sns_key_info1 &0xf0 ) >>4 ; sense->sns_key_info[2 ] = sns_key_info1 &0x0f ; } }
drivers/usb/core/devio.c +2 -2
@@ -629,6 +629,8 @@ static void async_completed(struct urb *urb)if (as->status <0 && as->bulk_addr && as->status != -ECONNRESET && as->status != -ENOENT )cancel_bulk_urbs (ps, as->bulk_addr); + +wake_up (&ps->wait);spin_unlock (&ps->lock);if (signr) {
@@ -636,8 +638,6 @@ static void async_completed(struct urb *urb)put_pid (pid);put_cred (cred); } - -wake_up (&ps->wait); }static void destroy_async (struct usb_dev_state *ps,struct list_head *list)
drivers/usb/core/quirks.c +5 -1
@@ -57,8 +57,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Microsoft LifeCam-VX700 v2.0 */ { USB_DEVICE(0x045e, 0x0770), .driver_info = USB_QUIRK_RESET_RESUME }, - /* Logitech HD Pro Webcams C920 and C930e */ + /* Logitech HD Pro Webcams C920, C920-C and C930e */ { USB_DEVICE(0x046d, 0x082d), .driver_info = USB_QUIRK_DELAY_INIT }, + { USB_DEVICE(0x046d, 0x0841), .driver_info = USB_QUIRK_DELAY_INIT }, { USB_DEVICE(0x046d, 0x0843), .driver_info = USB_QUIRK_DELAY_INIT },/* Logitech ConferenceCam CC3000e */
@@ -217,6 +218,9 @@ static const struct usb_device_id usb_quirk_list[] = { { USB_DEVICE(0x1a0a, 0x0200), .driver_info = USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL }, + /* Corsair Strafe RGB */ + { USB_DEVICE(0x1b1c, 0x1b20), .driver_info = USB_QUIRK_DELAY_INIT }, + /* Acer C120 LED Projector */ { USB_DEVICE(0x1de1, 0xc102), .driver_info = USB_QUIRK_NO_LPM },
drivers/usb/host/pci-quirks.c +18 -17
@@ -142,29 +142,30 @@ static int amd_chipset_sb_type_init(struct amd_chipset_info *pinfo) pinfo->sb_type.gen =AMD_CHIPSET_SB700 ; else if (rev >= 0x40 && rev <= 0x4f) pinfo->sb_type.gen =AMD_CHIPSET_SB800 ; - } - pinfo->smbus_dev =pci_get_device (PCI_VENDOR_ID_AMD , -0x145c ,NULL ); -if (pinfo->smbus_dev) { - pinfo->sb_type.gen =AMD_CHIPSET_TAISHAN ; }else { pinfo->smbus_dev =pci_get_device (PCI_VENDOR_ID_AMD ,PCI_DEVICE_ID_AMD_HUDSON2_SMBUS ,NULL ); -if (!pinfo->smbus_dev) { - pinfo->sb_type.gen =NOT_AMD_CHIPSET ; -return 0 ; +if (pinfo->smbus_dev) { + rev = pinfo->smbus_dev->revision; +if (rev >=0x11 && rev <=0x14 ) + pinfo->sb_type.gen =AMD_CHIPSET_HUDSON2 ; +else if (rev >=0x15 && rev <=0x18 ) + pinfo->sb_type.gen =AMD_CHIPSET_BOLTON ; +else if (rev >=0x39 && rev <=0x3a ) + pinfo->sb_type.gen =AMD_CHIPSET_YANGTZE ; + }else { + pinfo->smbus_dev =pci_get_device (PCI_VENDOR_ID_AMD , +0x145c ,NULL ); +if (pinfo->smbus_dev) { + rev = pinfo->smbus_dev->revision; + pinfo->sb_type.gen =AMD_CHIPSET_TAISHAN ; + }else { + pinfo->sb_type.gen =NOT_AMD_CHIPSET ; +return 0 ; + } } - - rev = pinfo->smbus_dev->revision; -if (rev >=0x11 && rev <=0x14 ) - pinfo->sb_type.gen =AMD_CHIPSET_HUDSON2 ; -else if (rev >=0x15 && rev <=0x18 ) - pinfo->sb_type.gen =AMD_CHIPSET_BOLTON ; -else if (rev >=0x39 && rev <=0x3a ) - pinfo->sb_type.gen =AMD_CHIPSET_YANGTZE ; } - pinfo->sb_type.rev = rev;return 1 ; }
drivers/usb/musb/musb_core.c +10 -8
@@ -2655,6 +2655,13 @@ static int musb_suspend(struct device *dev) {struct musb *musb =dev_to_musb (dev);unsigned long flags; +int ret; + + ret =pm_runtime_get_sync (dev); +if (ret <0 ) { +pm_runtime_put_noidle (dev); +return ret; + }musb_platform_disable (musb);musb_generic_disable (musb);
@@ -2703,14 +2710,6 @@ static int musb_resume(struct device *dev)if ((devctl & mask) != (musb->context.devctl & mask)) musb->port1_status =0 ; -/* -* The USB HUB code expects the device to be in RPM_ACTIVE once it came -* out of suspend -*/ -pm_runtime_disable (dev); -pm_runtime_set_active (dev); -pm_runtime_enable (dev); -musb_start (musb);spin_lock_irqsave (&musb->lock, flags);
@@ -2720,6 +2719,9 @@ static int musb_resume(struct device *dev) error);spin_unlock_irqrestore (&musb->lock, flags); +pm_runtime_mark_last_busy (dev); +pm_runtime_put_autosuspend (dev); +return 0 ; }
drivers/usb/serial/option.c +1 -0
@@ -2023,6 +2023,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x02, 0x01) }, { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x00, 0x00) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d04, 0xff) }, /* D-Link DWM-158 */ + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d0e, 0xff) }, /* D-Link DWM-157 C1 */ { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e19, 0xff), /* D-Link DWM-221 B1 */ .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e35, 0xff), /* D-Link DWM-222 */
fs/dlm/user.c +4 -0
@@ -355,6 +355,10 @@ static int dlm_device_register(struct dlm_ls *ls, char *name) error =misc_register (&ls->ls_device);if (error) {kfree (ls->ls_device.name); +/* this has to be set to NULL +* to avoid a double-free in dlm_device_deregister +*/ + ls->ls_device.name =NULL ; } fail:return error;
include/linux/pci_ids.h +1 -0
@@ -574,6 +574,7 @@#define PCI_DEVICE_ID_AMD_CS5536_EHC 0x2095#define PCI_DEVICE_ID_AMD_CS5536_UDC 0x2096#define PCI_DEVICE_ID_AMD_CS5536_UOC 0x2097 +#define PCI_DEVICE_ID_AMD_CS5536_DEV_IDE 0x2092#define PCI_DEVICE_ID_AMD_CS5536_IDE 0x209A#define PCI_DEVICE_ID_AMD_LX_VIDEO 0x2081#define PCI_DEVICE_ID_AMD_LX_AES 0x2082
include/linux/workqueue.h +1 -1
@@ -311,8 +311,8 @@ enum { __WQ_DRAINING =1 <<16 ,/* internal: workqueue is draining */ __WQ_ORDERED =1 <<17 ,/* internal: workqueue is ordered */ - __WQ_ORDERED_EXPLICIT =1 <<18 ,/* internal: alloc_ordered_workqueue() */ __WQ_LEGACY =1 <<18 ,/* internal: create*_workqueue() */ + __WQ_ORDERED_EXPLICIT =1 <<19 ,/* internal: alloc_ordered_workqueue() */ WQ_MAX_ACTIVE =512 ,/* I like 512, better ideas? */ WQ_MAX_UNBOUND_PER_CPU = 4, /* 4 * #cpus for unbound wq */