Linux 3.10.32
Greg KH
maintainerI'm announcing the release of the 3.10.32 kernel.
All users of the 3.10 kernel series must upgrade.
The updated 3.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.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/kernel/head64.S | 7 +- arch/s390/mm/page-states.c | 10 ++ arch/x86/include/asm/xen/page.h | 31 +++++--- arch/x86/kernel/cpu/common.c | 7 +- arch/x86/kernel/ftrace.c | 83 +++++++++++++---------- arch/x86/mm/fault.c | 14 ++-- arch/x86/xen/p2m.c | 10 +- arch/x86/xen/smp.c | 9 ++ block/blk-lib.c | 8 ++ block/blk.h | 2 drivers/block/xen-blkfront.c | 5 + drivers/char/raw.c | 2 drivers/edac/edac_mc.c | 13 ++- drivers/edac/edac_mc_sysfs.c | 12 ++- drivers/edac/edac_module.h | 2 drivers/gpu/drm/radeon/r600.c | 4 + drivers/gpu/drm/radeon/si.c | 4 + drivers/hv/connection.c | 11 --- drivers/hwmon/ntc_thermistor.c | 6 - drivers/iio/imu/adis16400.h | 1 drivers/iio/imu/adis16400_core.c | 10 +- drivers/infiniband/hw/qib/qib_iba7322.c | 5 + drivers/md/raid1.c | 13 ++- drivers/md/raid5.c | 90 ++++++++++++-------------- drivers/misc/mei/client.c | 11 ++- drivers/net/wireless/ath/ar5523/ar5523.c | 2 drivers/net/wireless/ath/ath9k/htc_drv_main.c | 25 +++---- drivers/net/wireless/iwlwifi/iwl-nvm-parse.c | 5 + drivers/net/wireless/iwlwifi/mvm/scan.c | 3 drivers/net/wireless/iwlwifi/mvm/utils.c | 2 drivers/of/address.c | 5 - drivers/power/max17040_battery.c | 5 - drivers/spi/spi.c | 4 - drivers/staging/comedi/drivers/adv_pci1710.c | 17 +++- drivers/staging/iio/adc/ad799x_core.c | 3 drivers/tty/n_gsm.c | 11 +++ drivers/tty/vt/vt.c | 2 drivers/usb/core/hcd.c | 1 drivers/usb/core/hub.c | 7 -- drivers/usb/core/usb.h | 1 drivers/usb/serial/ftdi_sio.c | 3 drivers/usb/serial/ftdi_sio_ids.h | 7 ++ drivers/usb/serial/option.c | 3 drivers/usb/serial/qcserial.c | 3 drivers/usb/storage/Kconfig | 4 - drivers/usb/storage/scsiglue.c | 6 + drivers/usb/storage/unusual_cypress.h | 2 drivers/usb/storage/unusual_devs.h | 7 ++ drivers/vme/bridges/vme_ca91cx42.c | 4 - drivers/vme/bridges/vme_tsi148.c | 4 - fs/bio-integrity.c | 10 ++ fs/cifs/cifsacl.c | 28 ++++++-- fs/cifs/cifsglob.h | 10 ++ fs/cifs/inode.c | 13 ++- fs/cifs/smb1ops.c | 8 ++ fs/cifs/xattr.c | 64 +++++++++++------- fs/file.c | 2 fs/lockd/svclock.c | 8 ++ include/linux/compiler-gcc4.h | 6 - kernel/irq/irqdesc.c | 1 kernel/time/jiffies.c | 6 + kernel/time/tick-broadcast.c | 1 kernel/trace/ring_buffer.c | 7 ++ mm/memory-failure.c | 6 + net/mac80211/cfg.c | 41 ++++++----- net/mac80211/tx.c | 2 scripts/mod/file2alias.c | 4 - sound/pci/hda/patch_realtek.c | 1 virt/kvm/coalesced_mmio.c | 8 -- 70 files changed, 480 insertions(+), 254 deletions(-)
Alan Stern (3):
usb-storage: add unusual-devs entry for BlackBerry 9000
usb-storage: restrict bcdDevice range for Super Top in Cypress ATACB
usb-storage: enable multi-LUN scanning when needed
Alex Deucher (1):
drm/radeon: fix UVD IRQ support on 7xx
Alexander Usyskin (2):
mei: clear write cb from waiting list on reset
mei: don't unset read cb ptr on reset
Bjørn Mork (2):
usb: qcserial: add Netgear Aircard 340U
usb: ftdi_sio: add Mindstorms EV3 console adapter
Borislav Petkov (2):
EDAC: Poll timeout cannot be zero, p2
EDAC: Correct workqueue setup path
Christian König (1):
drm/radeon: fix UVD IRQ support on SI
Dan Carpenter (1):
KVM: return an error code in kvm_vm_ioctl_register_coalesced_mmio()
David Vrabel (2):
xen-blkfront: handle backend CLOSED without CLOSING xen/p2m: check MFN is in range before using the m2p table
Doug Anderson (1):
hwmon: (ntc_thermistor) Avoid math overflow
Eliad Peller (1):
mac80211: move roc cookie assignment earlier
Emmanuel Grumbach (4):
mac80211: release the channel in error path in start_ap
iwlwifi: mvm: don't allow A band if SKU forbids it
iwlwifi: mvm: print the version of the firmware when it asserts
iwlwifi: mvm: BT Coex - disable BT when TXing probe request in scan
Eric W. Biederman (1):
fs/file.c:fdtable: avoid triggering OOMs from alloc_fdmem
Frediano Ziglio (1):
xen: Fix possible user space selector corruption
Geert Uytterhoeven (1):
spi: Fix crash with double message finalisation on error handling
Greg Kroah-Hartman (1):
Linux 3.10.32
H Hartley Sweeten (1):
staging: comedi: adv_pci1710: fix analog output readback value
H. Peter Anvin (2):
x86, smap: Don't enable SMAP if CONFIG_X86_SMAP is disabled x86, smap: smap_violation() is bogus if CONFIG_X86_SMAP is off
Hartmut Knaack (1):
staging:iio:ad799x fix error_free_irq which was freeing an irq that may not have been requested
Jan Moskyto Matejka (1):
Modpost: fixed USB alias generation for ranges including 0x9 and 0xA
Jens Axboe (1):
block: add cond_resched() to potentially long running ioctl discard loop
Jingoo Han (1):
EDAC: Replace strict_strtol() with kstrtol()
Johannes Berg (1):
mac80211: fix fragmentation code, particularly for encryption
K. Y. Srinivasan (1):
Drivers: hv: vmbus: Don't timeout during the initial connection with host
Kleber Sacilotto de Souza (1):
of: fix PCI bus match for PCIe slots
Krzysztof Kozlowski (1):
power: max17040: Fix NULL pointer dereference when there is no platform_data
Lars Poeschel (1):
tty: n_gsm: Fix for modems with brk in modem status control
Marcus Folkesson (1):
iio: adis16400: Set timestamp as the last element in chan_spec
Martin K. Petersen (1):
block: Fix nr_vecs for inline integrity vectors
Martin Schwidefsky (1):
s390: fix kernel crash due to linkage stack instructions
Martyn Welch (1):
VME: Correct read/write alignment algorithm
Michael Holzheu (1):
s390/dump: Fix dump memory detection
Mike Marciniszyn (1):
IB/qib: Add missing serdes init sequence
Mikulas Patocka (1):
time: Fix overflow when HZ is smaller than 60
Naoya Horiguchi (1):
mm/memory-failure.c: move refcount only in !MF_COUNT_INCREASED
NeilBrown (2):
lockd: send correct lock when granting a delayed lock. md/raid1: restore ability for check and repair to fix read errors.
Oleg Nesterov (1):
md/raid5: Fix CPU hotplug callback registration
Oleksij Rempel (1):
ar5523: fix usb id for Gigaset.
Paul Bolle (1):
raw: test against runtime value of max_raw_minors
Paul Gortmaker (1):
genirq: Add missing irq_to_desc export for CONFIG_SPARSE_IRQ=n
Petr Písař (1):
vt: Fix secure clear screen
Prarit Bhargava (1):
drivers/edac/edac_mc_sysfs.c: poll timeout cannot be zero
Raymond Wanyoike (1):
usb: option: blacklist ZTE MF667 net interface
Sarah Sharp (1):
Revert "usbcore: set lpm_capable field for LPM capable root hubs"
Stanislaw Gruszka (1):
ath9k_htc: make ->sta_rc_update atomic for most calls
Steve French (3):
CIFS: Fix SMB2 mounts so they don't try to set or get xattrs via cifs Add protocol specific operation for CIFS xattrs retrieving CIFS ACLs when mounted with SMB2 fails dropping session
Steven Noonan (1):
compiler/gcc4: Make quirk for asm_volatile_goto() unconditional
Steven Rostedt (Red Hat) (2):
ftrace/x86: Use breakpoints for converting function graph caller
ring-buffer: Fix first commit on sub-buffer having non-zero delta
Takashi Iwai (1):
ALSA: hda - Fix mic capture on Sony VAIO Pro 11
Tejun Heo (1):
block: __elv_next_request() shouldn't call into the elevator if bypassing
Thomas Gleixner (1):
tick: Clear broadcast pending bit when switching to oneshot
Ulrich Hahn (1):
USB: ftdi_sio: add Tagsys RFID Reader IDs
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 31 +SUBLEVEL = 32 EXTRAVERSION = NAME = TOSSUG Baby Fish
arch/s390/kernel/head64.S +5 -2
@@ -59,7 +59,7 @@ ENTRY(startup_continue) .quad 0 # cr12: tracing off .quad 0 # cr13: home space segment table .quad 0xc0000000 # cr14: machine check handling off - .quad 0 # cr15: linkage stack operations + .quad .Llinkage_stack # cr15: linkage stack operations .Lpcmsk:.quad 0x0000000180000000 .L4malign:.quad 0xffffffffffc00000 .Lscan2g:.quad 0x80000000 + 0x20000 - 8 # 2GB + 128K - 8
@@ -67,12 +67,15 @@ ENTRY(startup_continue) .Lparmaddr: .quad PARMAREA .align 64 -.Lduct: .long 0,0,0,0,.Lduald,0,0,0 +.Lduct: .long 0,.Laste,.Laste,0,.Lduald,0,0,0 .long 0,0,0,0,0,0,0,0 +.Laste: .quad 0,0xffffffffffffffff,0,0,0,0,0,0 .align 128 .Lduald:.rept 8 .long 0x80000000,0,0,0 # invalid access-list entries .endr +.Llinkage_stack: + .long 0,0,0x89000000,0,0,0,0x8a000000,0 ENTRY(_ehead)
arch/s390/mm/page-states.c +10 -0
@@ -12,6 +12,8 @@#include <linux/mm.h> #include <linux/gfp.h> #include <linux/init.h> +#include <asm/setup.h> +#include <asm/ipl.h> #define ESSA_SET_STABLE 1#define ESSA_SET_UNUSED 2
@@ -41,6 +43,14 @@ void __init cmma_init(void)if (!cmma_flag)return ; +/* +* Disable CMM for dump, otherwise the tprot based memory +* detection can fail because of unstable pages. +*/ +if (OLDMEM_BASE || ipl_info.type ==IPL_TYPE_FCP_DUMP ) { + cmma_flag =0 ; +return ; + } asmvolatile (" .insn rrf,0xb9ab0000,%1,%1,0,0\n" "0: la %0,0\n"
arch/x86/include/asm/xen/page.h +20 -11
@@ -79,30 +79,38 @@ static inline int phys_to_machine_mapping_valid(unsigned long pfn)return get_phys_to_machine (pfn) !=INVALID_P2M_ENTRY ; } -static inline unsigned long mfn_to_pfn (unsigned long mfn) +static inline unsigned long mfn_to_pfn_no_overrides (unsigned long mfn) {unsigned long pfn; -int ret =0 ; +int ret;if (xen_feature (XENFEAT_auto_translated_physmap))return mfn; -if (unlikely (mfn >= machine_to_phys_nr)) { - pfn = ~0 ; - goto try_override; - } - pfn =0 ; +if (unlikely (mfn >= machine_to_phys_nr)) +return ~0 ; +/* * The array access can fail (e.g., device space beyond end of RAM). * In such cases it doesn't matter what we return (we return garbage), * but we must handle the fault without crashing! */ ret =__get_user (pfn, &machine_to_phys_mapping[mfn]); -try_override: -/* ret might be < 0 if there are no entries in the m2p for mfn */ if (ret <0 ) - pfn = ~0 ; -else if (get_phys_to_machine (pfn) != mfn) +return ~0 ; + +return pfn; +} + +static inline unsigned long mfn_to_pfn (unsigned long mfn) +{ +unsigned long pfn; + +if (xen_feature (XENFEAT_auto_translated_physmap)) +return mfn; + + pfn =mfn_to_pfn_no_overrides (mfn); +if (get_phys_to_machine (pfn) != mfn) {/* * If this appears to be a foreign mfn (because the pfn * doesn't map back to the mfn), then check the local override
@@ -111,6 +119,7 @@ try_override:* m2p_find_override_pfn returns ~0 if it doesn't find anything. */ pfn =m2p_find_override_pfn (mfn, ~0 ); + }/* * pfn is ~0 if there are no entries in the m2p for mfn or if the
arch/x86/kernel/cpu/common.c +6 -1
@@ -284,8 +284,13 @@ static __always_inline void setup_smap(struct cpuinfo_x86 *c)raw_local_save_flags (eflags);BUG_ON (eflags &X86_EFLAGS_AC ); -if (cpu_has (c,X86_FEATURE_SMAP )) +if (cpu_has (c,X86_FEATURE_SMAP )) { +#ifdef CONFIG_X86_SMAP set_in_cr4 (X86_CR4_SMAP ); +#else +clear_in_cr4 (X86_CR4_SMAP ); +#endif + } }/*
arch/x86/kernel/ftrace.c +47 -36
152 lines not on this page · raw message
arch/x86/mm/fault.c +9 -5
@@ -989,6 +989,12 @@ static int fault_in_kernel_space(unsigned long address)static inline bool smap_violation (int error_code,struct pt_regs *regs) { +if (!IS_ENABLED (CONFIG_X86_SMAP )) +return false; + +if (!static_cpu_has (X86_FEATURE_SMAP )) +return false; +if (error_code &PF_USER )return false;
@@ -1091,11 +1097,9 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code)if (unlikely (error_code &PF_RSVD ))pgtable_bad (regs, error_code, address); -if (static_cpu_has (X86_FEATURE_SMAP )) { -if (unlikely (smap_violation (error_code, regs))) { -bad_area_nosemaphore (regs, error_code, address); -return ; - } +if (unlikely (smap_violation (error_code, regs))) { +bad_area_nosemaphore (regs, error_code, address); +return ; }perf_sw_event (PERF_COUNT_SW_PAGE_FAULTS ,1 , regs, address);
arch/x86/xen/p2m.c +4 -6
@@ -878,7 +878,6 @@ int m2p_add_override(unsigned long mfn, struct page *page,unsigned long uninitialized_var (address );unsigned level;pte_t *ptep =NULL ; -int ret =0 ; pfn =page_to_pfn (page);if (!PageHighMem (page)) {
@@ -925,8 +924,8 @@ int m2p_add_override(unsigned long mfn, struct page *page,* frontend pages while they are being shared with the backend, * because mfn_to_pfn (that ends up being called by GUPF) will * return the backend pfn rather than the frontend pfn. */ - ret =__get_user (pfn, &machine_to_phys_mapping[mfn]); -if (ret ==0 &&get_phys_to_machine (pfn) == mfn) + pfn =mfn_to_pfn_no_overrides (mfn); +if (get_phys_to_machine (pfn) == mfn)set_phys_to_machine (pfn,FOREIGN_FRAME (mfn));return 0 ;
@@ -941,7 +940,6 @@ int m2p_remove_override(struct page *page,unsigned long uninitialized_var (address );unsigned level;pte_t *ptep =NULL ; -int ret =0 ; pfn =page_to_pfn (page); mfn =get_phys_to_machine (pfn);
@@ -1019,8 +1017,8 @@ int m2p_remove_override(struct page *page,* the original pfn causes mfn_to_pfn(mfn) to return the frontend * pfn again. */ mfn &= ~FOREIGN_FRAME_BIT ; - ret =__get_user (pfn, &machine_to_phys_mapping[mfn]); -if (ret ==0 &&get_phys_to_machine (pfn) ==FOREIGN_FRAME (mfn) && + pfn =mfn_to_pfn_no_overrides (mfn); +if (get_phys_to_machine (pfn) ==FOREIGN_FRAME (mfn) &&m2p_find_override (mfn) ==NULL )set_phys_to_machine (pfn, mfn);
arch/x86/xen/smp.c +9 -0
@@ -245,6 +245,15 @@ static void __init xen_smp_prepare_boot_cpu(void)old memory can be recycled */ make_lowmem_page_readwrite (xen_initial_gdt); +#ifdef CONFIG_X86_32 +/* +* Xen starts us with XEN_FLAT_RING1_DS, but linux code +* expects __USER_DS +*/ +loadsegment (ds, __USER_DS); +loadsegment (es, __USER_DS); +#endif +xen_filter_cpu_maps ();xen_setup_vcpu_info_placement (); }
block/blk-lib.c +8 -0
@@ -121,6 +121,14 @@ int blkdev_issue_discard(struct block_device *bdev, sector_t sector,atomic_inc (&bb.done);submit_bio (type, bio); + +/* +* We can loop for a long time in here, if someone does +* full device discards (like mkfs). Be nice and allow +* us to schedule out to avoid softlocking if preempt +* is disabled. +*/ +cond_resched (); }blk_finish_plug (&plug);
block/blk.h +1 -1
@@ -96,7 +96,7 @@ static inline struct request *__elv_next_request(struct request_queue *q) q->flush_queue_delayed =1 ;return NULL ; } -if (unlikely (blk_queue_dying (q)) || +if (unlikely (blk_queue_bypass (q)) || !q->elevator->type->ops.elevator_dispatch_fn (q,0 ))return NULL ; }
drivers/block/xen-blkfront.c +4 -1
@@ -1518,13 +1518,16 @@ static void blkback_changed(struct xenbus_device *dev,case XenbusStateReconfiguring:case XenbusStateReconfigured:case XenbusStateUnknown: -case XenbusStateClosed:break ;case XenbusStateConnected:blkfront_connect (info);break ; +case XenbusStateClosed: +if (dev->state == XenbusStateClosed) +break ; +/* Missed the backend's Closing state -- fallthrough */ case XenbusStateClosing:blkfront_closing (info);break ;
drivers/char/raw.c +1 -1
@@ -190,7 +190,7 @@ static int bind_get(int number, dev_t *dev)struct raw_device_data *rawdev;struct block_device *bdev; -if (number <=0 || number >=MAX_RAW_MINORS ) +if (number <=0 || number >= max_raw_minors)return -EINVAL ; rawdev = &raw_devices[number];
drivers/edac/edac_mc.c +8 -5
@@ -559,7 +559,8 @@ static void edac_mc_workq_function(struct work_struct *work_req)* * called with the mem_ctls_mutex held */ -static void edac_mc_workq_setup (struct mem_ctl_info *mci,unsigned msec) +static void edac_mc_workq_setup (struct mem_ctl_info *mci,unsigned msec, +bool init) {edac_dbg (0 ,"\n" );
@@ -567,7 +568,9 @@ static void edac_mc_workq_setup(struct mem_ctl_info *mci, unsigned msec)if (mci->op_state !=OP_RUNNING_POLL )return ; -INIT_DELAYED_WORK (&mci->work, edac_mc_workq_function); +if (init) +INIT_DELAYED_WORK (&mci->work, edac_mc_workq_function); +mod_delayed_work (edac_workqueue, &mci->work,msecs_to_jiffies (msec)); }
@@ -601,7 +604,7 @@ static void edac_mc_workq_teardown(struct mem_ctl_info *mci)* user space has updated our poll period value, need to * reset our workq delays */ -void edac_mc_reset_delay_period (int value) +void edac_mc_reset_delay_period (unsigned long value) {struct mem_ctl_info *mci;struct list_head *item;
@@ -611,7 +614,7 @@ void edac_mc_reset_delay_period(int value)list_for_each (item, &mc_devices) { mci = list_entry(item, struct mem_ctl_info, link); -edac_mc_workq_setup (mci, (unsigned long ) value); +edac_mc_workq_setup (mci, value, false); }mutex_unlock (&mem_ctls_mutex);
@@ -782,7 +785,7 @@ int edac_mc_add_mc(struct mem_ctl_info *mci)/* This instance is NOW RUNNING */ mci->op_state =OP_RUNNING_POLL ; -edac_mc_workq_setup (mci,edac_mc_get_poll_msec ()); +edac_mc_workq_setup (mci,edac_mc_get_poll_msec (), true); }else { mci->op_state =OP_RUNNING_INTERRUPT ; }
drivers/edac/edac_mc_sysfs.c +8 -4
@@ -52,16 +52,20 @@ int edac_mc_get_poll_msec(void)static int edac_set_poll_msec (const char *val,struct kernel_param *kp) { -long l; +unsigned long l;int ret;if (!val)return -EINVAL ; - ret =strict_strtol (val,0 , &l); -if (ret == -EINVAL || ((int )l != l)) + ret =kstrtoul (val,0 , &l); +if (ret) +return ret; + +if (l <1000 )return -EINVAL ; - *((int *)kp->arg) = l; + + *((unsigned long *)kp->arg) = l;/* notify edac_mc engine to reset the poll period */ edac_mc_reset_delay_period (l);
drivers/edac/edac_module.h +1 -1
@@ -52,7 +52,7 @@ extern void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,extern void edac_device_workq_teardown (struct edac_device_ctl_info *edac_dev);extern void edac_device_reset_delay_period (struct edac_device_ctl_info *edac_dev,unsigned long value); -extern void edac_mc_reset_delay_period (int value); +extern void edac_mc_reset_delay_period (unsigned long value);extern void *edac_align_ptr (void **p,unsigned size,int n_elems);
drivers/gpu/drm/radeon/r600.c +4 -0
@@ -4509,6 +4509,10 @@ restart_ih:break ; }break ; +case 124 :/* UVD */ +DRM_DEBUG ("IH: UVD int: 0x%08x\n" , src_data); +radeon_fence_process (rdev,R600_RING_TYPE_UVD_INDEX ); +break ;case 176 :/* CP_INT in ring buffer */ case 177 :/* CP_INT in IB1 */ case 178 :/* CP_INT in IB2 */
drivers/gpu/drm/radeon/si.c +4 -0
@@ -5159,6 +5159,10 @@ restart_ih:break ; }break ; +case 124 :/* UVD */ +DRM_DEBUG ("IH: UVD int: 0x%08x\n" , src_data); +radeon_fence_process (rdev,R600_RING_TYPE_UVD_INDEX ); +break ;case 146 :case 147 :dev_err (rdev->dev,"GPU fault detected: %d 0x%08x\n" , src_id, src_data);
drivers/hv/connection.c +1 -10
@@ -67,7 +67,6 @@ static int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo,int ret =0 ;struct vmbus_channel_initiate_contact *msg;unsigned long flags; -int t;init_completion (&msginfo->waitevent);
@@ -102,15 +101,7 @@ static int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo, }/* Wait for the connection response */ - t =wait_for_completion_timeout (&msginfo->waitevent,5 *HZ ); -if (t ==0 ) { -spin_lock_irqsave (&vmbus_connection.channelmsg_lock, - flags); -list_del (&msginfo->msglistentry); -spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, - flags); -return -ETIMEDOUT ; - } +wait_for_completion (&msginfo->waitevent);spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_del (&msginfo->msglistentry);
drivers/hwmon/ntc_thermistor.c +3 -3
@@ -145,7 +145,7 @@ struct ntc_data {static int ntc_adc_iio_read (struct ntc_thermistor_platform_data *pdata) {struct iio_channel *channel = pdata->chan; -unsigned int result; +s64 result;int val, ret; ret =iio_read_channel_raw (channel, &val);
@@ -155,10 +155,10 @@ static int ntc_adc_iio_read(struct ntc_thermistor_platform_data *pdata) }/* unit: mV */ - result = pdata->pullup_uv * val; + result = pdata->pullup_uv * (s64 ) val; result >>=12 ; -return result; +return (int )result; }static const struct of_device_id ntc_match[] = {
drivers/iio/imu/adis16400.h +1 -0
@@ -189,6 +189,7 @@ enum {ADIS16300_SCAN_INCLI_X ,ADIS16300_SCAN_INCLI_Y ,ADIS16400_SCAN_ADC , + ADIS16400_SCAN_TIMESTAMP, };#ifdef CONFIG_IIO_BUFFER
drivers/iio/imu/adis16400_core.c +5 -5
@@ -632,7 +632,7 @@ static const struct iio_chan_spec adis16400_channels[] = {ADIS16400_MAGN_CHAN (Z ,ADIS16400_ZMAGN_OUT ,14 ),ADIS16400_TEMP_CHAN (ADIS16400_TEMP_OUT ,12 ),ADIS16400_AUX_ADC_CHAN (ADIS16400_AUX_ADC ,12 ), -IIO_CHAN_SOFT_TIMESTAMP (12 ) + IIO_CHAN_SOFT_TIMESTAMP(ADIS16400_SCAN_TIMESTAMP), }; static const struct iio_chan_spec adis16448_channels[] = {
@@ -659,7 +659,7 @@ static const struct iio_chan_spec adis16448_channels[] = { }, }, ADIS16400_TEMP_CHAN(ADIS16448_TEMP_OUT, 12), -IIO_CHAN_SOFT_TIMESTAMP (11 ) + IIO_CHAN_SOFT_TIMESTAMP(ADIS16400_SCAN_TIMESTAMP), };static const struct iio_chan_spec adis16350_channels[] = {
@@ -677,7 +677,7 @@ static const struct iio_chan_spec adis16350_channels[] = {ADIS16400_MOD_TEMP_CHAN (X ,ADIS16350_XTEMP_OUT ,12 ),ADIS16400_MOD_TEMP_CHAN (Y ,ADIS16350_YTEMP_OUT ,12 ),ADIS16400_MOD_TEMP_CHAN (Z ,ADIS16350_ZTEMP_OUT ,12 ), -IIO_CHAN_SOFT_TIMESTAMP (11 ) + IIO_CHAN_SOFT_TIMESTAMP(ADIS16400_SCAN_TIMESTAMP), }; static const struct iio_chan_spec adis16300_channels[] = {
@@ -690,7 +690,7 @@ static const struct iio_chan_spec adis16300_channels[] = {ADIS16400_AUX_ADC_CHAN (ADIS16300_AUX_ADC ,12 ),ADIS16400_INCLI_CHAN (X ,ADIS16300_PITCH_OUT ,13 ),ADIS16400_INCLI_CHAN (Y ,ADIS16300_ROLL_OUT ,13 ), -IIO_CHAN_SOFT_TIMESTAMP (14 ) + IIO_CHAN_SOFT_TIMESTAMP(ADIS16400_SCAN_TIMESTAMP), }; static const struct iio_chan_spec adis16334_channels[] = {
@@ -701,7 +701,7 @@ static const struct iio_chan_spec adis16334_channels[] = {ADIS16400_ACCEL_CHAN (Y ,ADIS16400_YACCL_OUT ,14 ),ADIS16400_ACCEL_CHAN (Z ,ADIS16400_ZACCL_OUT ,14 ),ADIS16400_TEMP_CHAN (ADIS16350_XTEMP_OUT ,12 ), -IIO_CHAN_SOFT_TIMESTAMP (8 ) + IIO_CHAN_SOFT_TIMESTAMP(ADIS16400_SCAN_TIMESTAMP), }; static struct attribute *adis16400_attributes[] = {
drivers/infiniband/hw/qib/qib_iba7322.c +5 -0
@@ -2287,6 +2287,11 @@ static int qib_7322_bringup_serdes(struct qib_pportdata *ppd)qib_write_kreg_port (ppd, krp_ibcctrl_a, ppd->cpspec->ibcctrl_a);qib_write_kreg (dd, kr_scratch,0ULL ); +/* ensure previous Tx parameters are not still forced */ +qib_write_kreg_port (ppd, krp_tx_deemph_override, +SYM_MASK (IBSD_TX_DEEMPHASIS_OVERRIDE_0 , + reset_tx_deemphasis_override)); +if (qib_compat_ddr_negotiate) { ppd->cpspec->ibdeltainprog =1 ; ppd->cpspec->ibsymsnap = read_7322_creg32_port(ppd,
drivers/md/raid1.c +10 -3
@@ -1854,11 +1854,15 @@ static int process_checks(struct r1bio *r1_bio)for (i =0 ; i < conf->raid_disks *2 ; i++) {int j;int size; +int uptodate;struct bio *b = r1_bio->bios[i];if (b->bi_end_io != end_sync_read)continue ; -/* fixup the bio for reuse */ +/* fixup the bio for reuse, but preserve BIO_UPTODATE */ + uptodate =test_bit (BIO_UPTODATE , &b->bi_flags);bio_reset (b); +if (!uptodate) +clear_bit (BIO_UPTODATE , &b->bi_flags); b->bi_vcnt = vcnt; b->bi_size = r1_bio->sectors <<9 ; b->bi_sector = r1_bio->sector +
@@ -1891,11 +1895,14 @@ static int process_checks(struct r1bio *r1_bio)int j;struct bio *pbio = r1_bio->bios[primary];struct bio *sbio = r1_bio->bios[i]; +int uptodate =test_bit (BIO_UPTODATE , &sbio->bi_flags);if (sbio->bi_end_io != end_sync_read)continue ; +/* Now we can 'fixup' the BIO_UPTODATE flag */ +set_bit (BIO_UPTODATE , &sbio->bi_flags); -if (test_bit (BIO_UPTODATE , &sbio->bi_flags)) { +if (uptodate) {for (j = vcnt; j-- ; ) {struct page *p, *s; p = pbio->bi_io_vec[j].bv_page;
@@ -1910,7 +1917,7 @@ static int process_checks(struct r1bio *r1_bio)if (j >=0 )atomic64_add (r1_bio->sectors, &mddev->resync_mismatches);if (j <0 || (test_bit (MD_RECOVERY_CHECK , &mddev->recovery) - &&test_bit (BIO_UPTODATE , &sbio->bi_flags))) { + && uptodate)) {/* No need to write to this device. */ sbio->bi_end_io =NULL ;rdev_dec_pending (conf->mirrors[i].rdev, mddev);
drivers/md/raid5.c +44 -46
132 lines not on this page · raw message
drivers/misc/mei/client.c +9 -2
@@ -799,7 +799,6 @@ void mei_cl_all_disconnect(struct mei_device *dev)list_for_each_entry_safe (cl, next, &dev->file_list, link) { cl->state =MEI_FILE_DISCONNECTED ; cl->mei_flow_ctrl_creds =0 ; - cl->read_cb =NULL ; cl->timer_count =0 ; } }
@@ -829,8 +828,16 @@ void mei_cl_all_read_wakeup(struct mei_device *dev)void mei_cl_all_write_clear (struct mei_device *dev) {struct mei_cl_cb *cb, *next; +struct list_head *list; -list_for_each_entry_safe (cb, next, &dev->write_list.list, list) { + list = &dev->write_list.list; +list_for_each_entry_safe (cb, next, list, list) { +list_del (&cb->list); +mei_io_cb_free (cb); + } + + list = &dev->write_waiting_list.list; +list_for_each_entry_safe (cb, next, list, list) {list_del (&cb->list);mei_io_cb_free (cb); }
drivers/net/wireless/ath/ar5523/ar5523.c +1 -1
@@ -1764,7 +1764,7 @@ static struct usb_device_id ar5523_id_table[] = {AR5523_DEVICE_UX (0x2001 ,0x3a04 ),/* Dlink / DWLAG122 */ AR5523_DEVICE_UG (0x1690 ,0x0712 ),/* Gigaset / AR5523 */ AR5523_DEVICE_UG (0x1690 ,0x0710 ),/* Gigaset / SMCWUSBTG */ -AR5523_DEVICE_UG (0x129b ,0x160c ),/* Gigaset / USB stick 108 +AR5523_DEVICE_UG (0x129b ,0x160b ),/* Gigaset / USB stick 108 (CyberTAN Technology) */ AR5523_DEVICE_UG (0x16ab ,0x7801 ),/* Globalsun / AR5523_1 */ AR5523_DEVICE_UX(0x16ab, 0x7811), /* Globalsun / AR5523_2 */
drivers/net/wireless/ath/ath9k/htc_drv_main.c +13 -12
@@ -1331,21 +1331,22 @@ static void ath9k_htc_sta_rc_update(struct ieee80211_hw *hw,struct ath_common *common =ath9k_hw_common (priv->ah);struct ath9k_htc_target_rate trate; +if (!(changed &IEEE80211_RC_SUPP_RATES_CHANGED )) +return ; +mutex_lock (&priv->mutex);ath9k_htc_ps_wakeup (priv); -if (changed &IEEE80211_RC_SUPP_RATES_CHANGED ) { -memset (&trate,0 ,sizeof (struct ath9k_htc_target_rate )); -ath9k_htc_setup_rate (priv, sta, &trate); -if (!ath9k_htc_send_rate_cmd (priv, &trate)) -ath_dbg (common,CONFIG , -"Supported rates for sta: %pM updated, rate caps: 0x%X\n" , - sta->addr,be32_to_cpu (trate.capflags)); -else -ath_dbg (common,CONFIG , -"Unable to update supported rates for sta: %pM\n" , - sta->addr); - } +memset (&trate,0 ,sizeof (struct ath9k_htc_target_rate )); +ath9k_htc_setup_rate (priv, sta, &trate); +if (!ath9k_htc_send_rate_cmd (priv, &trate)) +ath_dbg (common,CONFIG , +"Supported rates for sta: %pM updated, rate caps: 0x%X\n" , + sta->addr,be32_to_cpu (trate.capflags)); +else +ath_dbg (common,CONFIG , +"Unable to update supported rates for sta: %pM\n" , + sta->addr);ath9k_htc_ps_restore (priv);mutex_unlock (&priv->mutex);
drivers/net/wireless/iwlwifi/iwl-nvm-parse.c +5 -0
@@ -180,6 +180,11 @@ static int iwl_init_channel_map(struct device *dev, const struct iwl_cfg *cfg,for (ch_idx =0 ; ch_idx <IWL_NUM_CHANNELS ; ch_idx++) { ch_flags =__le16_to_cpup (nvm_ch_flags + ch_idx); + +if (ch_idx >=NUM_2GHZ_CHANNELS && + !data->sku_cap_band_52GHz_enable) + ch_flags &= ~NVM_CHANNEL_VALID ; +if (!(ch_flags &NVM_CHANNEL_VALID )) { IWL_DEBUG_EEPROM(dev, "Ch. %d Flags %x [%sGHz] - No traffic\n",
drivers/net/wireless/iwlwifi/mvm/scan.c +2 -1
@@ -313,7 +313,8 @@ int iwl_mvm_scan_request(struct iwl_mvm *mvm,iwl_mvm_scan_fill_ssids (cmd, req); - cmd->tx_cmd.tx_flags =cpu_to_le32 (TX_CMD_FLG_SEQ_CTL ); + cmd->tx_cmd.tx_flags =cpu_to_le32 (TX_CMD_FLG_SEQ_CTL | +TX_CMD_FLG_BT_DIS ); cmd->tx_cmd.sta_id = mvm->aux_sta.sta_id; cmd->tx_cmd.life_time =cpu_to_le32 (TX_CMD_LIFE_TIME_INFINITE ); cmd->tx_cmd.rate_n_flags =
drivers/net/wireless/iwlwifi/mvm/utils.c +2 -0
@@ -401,6 +401,8 @@ void iwl_mvm_dump_nic_error_log(struct iwl_mvm *mvm) mvm->status, table.valid); } +IWL_ERR (mvm,"Loaded firmware version: %s\n" , mvm->fw->fw_version); + trace_iwlwifi_dev_ucode_error(trans->dev, table.error_id, table.tsf_low, table.data1, table.data2, table.data3, table.blink1, table.blink2, table.ilink1,
drivers/of/address.c +3 -2
@@ -99,11 +99,12 @@ static unsigned int of_bus_default_get_flags(const __be32 *addr)static int of_bus_pci_match (struct device_node *np) {/* +* "pciex" is PCI Express * "vci" is for the /chaos bridge on 1st-gen PCI powermacs * "ht" is hypertransport */ -return !strcmp (np->type,"pci" ) || !strcmp (np->type,"vci" ) || - !strcmp (np->type,"ht" ); +return !strcmp (np->type,"pci" ) || !strcmp (np->type,"pciex" ) || + !strcmp (np->type,"vci" ) || !strcmp (np->type,"ht" ); } static void of_bus_pci_count_cells(struct device_node *np,
drivers/power/max17040_battery.c +3 -2
@@ -148,7 +148,7 @@ static void max17040_get_online(struct i2c_client *client) {struct max17040_chip *chip =i2c_get_clientdata (client); -if (chip->pdata->battery_online) +if (chip->pdata && chip->pdata->battery_online) chip->online = chip->pdata->battery_online ();else chip->online =1 ;
@@ -158,7 +158,8 @@ static void max17040_get_status(struct i2c_client *client) {struct max17040_chip *chip =i2c_get_clientdata (client); -if (!chip->pdata->charger_online || !chip->pdata->charger_enable) { +if (!chip->pdata || !chip->pdata->charger_online + || !chip->pdata->charger_enable) { chip->status =POWER_SUPPLY_STATUS_UNKNOWN ;return ; }
drivers/spi/spi.c +1 -3
@@ -584,9 +584,7 @@ static void spi_pump_messages(struct kthread_work *work) ret = master->transfer_one_message (master, master->cur_msg);if (ret) {dev_err (&master->dev, -"failed to transfer one message from queue: %d\n" , ret); - master->cur_msg->status = ret; -spi_finalize_current_message (master); +"failed to transfer one message from queue\n" );return ; } }
drivers/staging/comedi/drivers/adv_pci1710.c +12 -5
@@ -489,6 +489,7 @@ static int pci171x_insn_write_ao(struct comedi_device *dev, struct comedi_insn *insn, unsigned int *data) { struct pci1710_private *devpriv = dev->private; +unsigned int val;int n, chan, range, ofs; chan =CR_CHAN (insn->chanspec);
@@ -504,11 +505,14 @@ static int pci171x_insn_write_ao(struct comedi_device *dev,outw (devpriv->da_ranges, dev->iobase + PCI171x_DAREF); ofs = PCI171x_DA1; } + val = devpriv->ao_data[chan]; -for (n =0 ; n < insn->n; n++) -outw (data[n], dev->iobase + ofs); +for (n =0 ; n < insn->n; n++) { + val = data[n]; +outw (val, dev->iobase + ofs); + } - devpriv->ao_data[chan] = data[n]; + devpriv->ao_data[chan] = val;return n;
@@ -678,6 +682,7 @@ static int pci1720_insn_write_ao(struct comedi_device *dev, struct comedi_insn *insn, unsigned int *data) { struct pci1710_private *devpriv = dev->private; +unsigned int val;int n, rangereg, chan; chan =CR_CHAN (insn->chanspec);
@@ -687,13 +692,15 @@ static int pci1720_insn_write_ao(struct comedi_device *dev,outb (rangereg, dev->iobase +PCI1720_RANGE ); devpriv->da_ranges = rangereg; } + val = devpriv->ao_data[chan];for (n =0 ; n < insn->n; n++) { -outw (data[n], dev->iobase +PCI1720_DA0 + (chan <<1 )); + val = data[n]; +outw (val, dev->iobase +PCI1720_DA0 + (chan <<1 ));outb (0 , dev->iobase +PCI1720_SYNCOUT );/* update outputs */ } - devpriv->ao_data[chan] = data[n]; + devpriv->ao_data[chan] = val;return n; }
drivers/staging/iio/adc/ad799x_core.c +2 -1
@@ -644,7 +644,8 @@ static int ad799x_probe(struct i2c_client *client,return 0 ; error_free_irq: -free_irq (client->irq, indio_dev); +if (client->irq >0 ) +free_irq (client->irq, indio_dev); error_cleanup_ring:ad799x_ring_cleanup (indio_dev); error_disable_reg:
drivers/tty/n_gsm.c +11 -0
@@ -1089,6 +1089,7 @@ static void gsm_control_modem(struct gsm_mux *gsm, u8 *data, int clen) {unsigned int addr =0 ;unsigned int modem =0 ; +unsigned int brk =0 ;struct gsm_dlci *dlci;int len = clen;u8 *dp = data;
@@ -1115,6 +1116,16 @@ static void gsm_control_modem(struct gsm_mux *gsm, u8 *data, int clen)if (len ==0 )return ; } + len--; +if (len >0 ) { +while (gsm_read_ea (&brk, *dp++) ==0 ) { + len--; +if (len ==0 ) +return ; + } + modem <<=7 ; + modem |= (brk &0x7f ); + } tty =tty_port_tty_get (&dlci->port);gsm_process_modem (tty, dlci, modem, clen);if (tty) {
drivers/tty/vt/vt.c +2 -0
@@ -1164,6 +1164,8 @@ static void csi_J(struct vc_data *vc, int vpar)scr_memsetw (vc->vc_screenbuf, vc->vc_video_erase_char, vc->vc_screenbuf_size >>1 );set_origin (vc); +if (CON_IS_VISIBLE (vc)) +update_screen (vc);/* fall through */ case 2 :/* erase whole display */ count = vc->vc_cols * vc->vc_rows;
drivers/usb/core/hcd.c +0 -1
@@ -1010,7 +1010,6 @@ static int register_root_hub(struct usb_hcd *hcd) dev_name(&usb_dev->dev), retval);return retval; } - usb_dev->lpm_capable =usb_device_supports_lpm (usb_dev); } retval =usb_new_device (usb_dev);
drivers/usb/core/hub.c +1 -6
@@ -135,7 +135,7 @@ struct usb_hub *usb_hub_to_struct_hub(struct usb_device *hdev)return usb_get_intfdata (hdev->actconfig->interface[0 ]); } -int usb_device_supports_lpm (struct usb_device *udev) +static int usb_device_supports_lpm (struct usb_device *udev) {/* USB 2.1 (and greater) devices indicate LPM support through * their USB 2.0 Extended Capabilities BOS descriptor.
@@ -156,11 +156,6 @@ int usb_device_supports_lpm(struct usb_device *udev) "Power management will be impacted.\n");return 0 ; } - -/* udev is root hub */ -if (!udev->parent) -return 1 ; -if (udev->parent->lpm_capable)return 1 ;
drivers/usb/core/usb.h +0 -1
@@ -35,7 +35,6 @@ extern int usb_get_device_descriptor(struct usb_device *dev, unsigned int size);extern int usb_get_bos_descriptor (struct usb_device *dev);extern void usb_release_bos_descriptor (struct usb_device *dev); -extern int usb_device_supports_lpm (struct usb_device *udev);extern char *usb_cache_string (struct usb_device *udev,int index);extern int usb_set_configuration (struct usb_device *dev,int configuration);extern int usb_choose_configuration (struct usb_device *udev);
drivers/usb/serial/ftdi_sio.c +3 -0
@@ -155,6 +155,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_CANUSB_PID) }, { USB_DEVICE(FTDI_VID, FTDI_CANDAPTER_PID) }, { USB_DEVICE(FTDI_VID, FTDI_NXTCAM_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_EV3CON_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_0_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_1_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_2_PID) },
@@ -194,6 +195,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) }, + { USB_DEVICE(FTDI_VID, FTDI_TAGSYS_LP101_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_TAGSYS_P200X_PID) }, { USB_DEVICE(FTDI_VID, FTDI_LENZ_LIUSB_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_632_PID) }, { USB_DEVICE(FTDI_VID, FTDI_XF_634_PID) },
drivers/usb/serial/ftdi_sio_ids.h +7 -0
@@ -50,6 +50,7 @@#define TI_XDS100V2_PID 0xa6d0#define FTDI_NXTCAM_PID 0xABB8/* NXTCam for Mindstorms NXT */ +#define FTDI_EV3CON_PID 0xABB9/* Mindstorms EV3 Console Adapter */ /* US Interface Navigator (http://www.usinterface.com/) */ #define FTDI_USINT_CAT_PID 0xb810/* Navigator CAT and 2nd PTT lines */
@@ -363,6 +364,12 @@/* Sprog II (Andrew Crosland's SprogII DCC interface) */ #define FTDI_SPROG_II 0xF0C8 +/* +* Two of the Tagsys RFID Readers +*/ +#define FTDI_TAGSYS_LP101_PID 0xF0E9/* Tagsys L-P101 RFID*/ +#define FTDI_TAGSYS_P200X_PID 0xF0EE/* Tagsys Medio P200x RFID*/ +/* an infrared receiver for user access control with IR tags */ #define FTDI_PIEGROUP_PID 0xF208/* Product Id */
drivers/usb/serial/option.c +2 -1
@@ -1362,7 +1362,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1267, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1268, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1269, 0xff, 0xff, 0xff) }, - { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1270, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1270, 0xff, 0xff, 0xff), + .driver_info = (kernel_ulong_t)&net_intf5_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1271, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1272, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1273, 0xff, 0xff, 0xff) },
drivers/usb/serial/qcserial.c +3 -0
@@ -139,6 +139,9 @@ static const struct usb_device_id id_table[] = { {USB_DEVICE_INTERFACE_NUMBER(0x1199, 0x901c, 0)}, /* Sierra Wireless EM7700 Device Management */ {USB_DEVICE_INTERFACE_NUMBER(0x1199, 0x901c, 2)}, /* Sierra Wireless EM7700 NMEA */ {USB_DEVICE_INTERFACE_NUMBER(0x1199, 0x901c, 3)}, /* Sierra Wireless EM7700 Modem */ + {USB_DEVICE_INTERFACE_NUMBER(0x1199, 0x9051, 0)}, /* Netgear AirCard 340U Device Management */ + {USB_DEVICE_INTERFACE_NUMBER(0x1199, 0x9051, 2)}, /* Netgear AirCard 340U NMEA */ + {USB_DEVICE_INTERFACE_NUMBER(0x1199, 0x9051, 3)}, /* Netgear AirCard 340U Modem */ { } /* Terminating entry */ };
drivers/usb/storage/Kconfig +3 -1
@@ -18,7 +18,9 @@ config USB_STORAGE This option depends on 'SCSI' support being enabled, but you probably also need 'SCSI device support: SCSI disk support' - (BLK_DEV_SD) for most USB storage devices. + (BLK_DEV_SD) for most USB storage devices. Some devices also + will require 'Probe all LUNs on each SCSI device' + (SCSI_MULTI_LUN). To compile this driver as a module, choose M here: the module will be called usb-storage.
drivers/usb/storage/scsiglue.c +6 -0
@@ -78,6 +78,8 @@ static const char* host_info(struct Scsi_Host *host)static int slave_alloc (struct scsi_device *sdev) { +struct us_data *us =host_to_us (sdev->host); +/* * Set the INQUIRY transfer length to 36. We don't use any of * the extra data and many devices choke if asked for more or
@@ -102,6 +104,10 @@ static int slave_alloc (struct scsi_device *sdev)*/ blk_queue_update_dma_alignment (sdev->request_queue, (512 -1 )); +/* Tell the SCSI layer if we know there is more than one LUN */ +if (us->protocol ==USB_PR_BULK && us->max_lun >0 ) + sdev->sdev_bflags |=BLIST_FORCELUN ; +return 0 ; }
drivers/usb/storage/unusual_cypress.h +1 -1
@@ -31,7 +31,7 @@ UNUSUAL_DEV( 0x04b4, 0x6831, 0x0000, 0x9999, "Cypress ISD-300LP", USB_SC_CYP_ATACB, USB_PR_DEVICE, NULL, 0), -UNUSUAL_DEV (0x14cd ,0x6116 ,0x0000 ,0x0219 , +UNUSUAL_DEV (0x14cd ,0x6116 ,0x0160 ,0x0160 ,"Super Top" ,"USB 2.0 SATA BRIDGE" , USB_SC_CYP_ATACB, USB_PR_DEVICE, NULL, 0),
drivers/usb/storage/unusual_devs.h +7 -0
@@ -1455,6 +1455,13 @@ UNUSUAL_DEV( 0x0f88, 0x042e, 0x0100, 0x0100, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_FIX_CAPACITY ), +/* Reported by Moritz Moeller-Herrmann <[email protected]> */ +UNUSUAL_DEV (0x0fca ,0x8004 ,0x0201 ,0x0201 , +"Research In Motion" , +"BlackBerry Bold 9000" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , +US_FL_MAX_SECTORS_64 ), +/* Reported by Michael Stattmann <[email protected]> */ UNUSUAL_DEV( 0x0fce, 0xd008, 0x0000, 0x0000, "Sony Ericsson",
drivers/vme/bridges/vme_ca91cx42.c +2 -2
@@ -880,7 +880,7 @@ static ssize_t ca91cx42_master_read(struct vme_master_resource *image,if (done == count) goto out; } -if ((uintptr_t )addr &0x2 ) { +if ((uintptr_t )(addr + done) &0x2 ) {if ((count - done) <2 ) { *(u8 *)(buf + done) =ioread8 (addr + done); done +=1 ;
@@ -934,7 +934,7 @@ static ssize_t ca91cx42_master_write(struct vme_master_resource *image,if (done == count) goto out; } -if ((uintptr_t )addr &0x2 ) { +if ((uintptr_t )(addr + done) &0x2 ) {if ((count - done) <2 ) {iowrite8 (*(u8 *)(buf + done), addr + done); done +=1 ;
drivers/vme/bridges/vme_tsi148.c +2 -2
@@ -1283,7 +1283,7 @@ static ssize_t tsi148_master_read(struct vme_master_resource *image, void *buf,if (done == count) goto out; } -if ((uintptr_t )addr &0x2 ) { +if ((uintptr_t )(addr + done) &0x2 ) {if ((count - done) <2 ) { *(u8 *)(buf + done) =ioread8 (addr + done); done +=1 ;
@@ -1365,7 +1365,7 @@ static ssize_t tsi148_master_write(struct vme_master_resource *image, void *buf,if (done == count) goto out; } -if ((uintptr_t )addr &0x2 ) { +if ((uintptr_t )(addr + done) &0x2 ) {if ((count - done) <2 ) {iowrite8 (*(u8 *)(buf + done), addr + done); done +=1 ;
fs/bio-integrity.c +9 -1
@@ -114,6 +114,14 @@ void bio_integrity_free(struct bio *bio) }EXPORT_SYMBOL (bio_integrity_free); +static inline unsigned int bip_integrity_vecs (struct bio_integrity_payload *bip) +{ +if (bip->bip_slab ==BIO_POOL_NONE ) +return BIP_INLINE_VECS ; + +return bvec_nr_vecs (bip->bip_slab); +} +/** * bio_integrity_add_page - Attach integrity metadata * @bio: bio to update
@@ -129,7 +137,7 @@ int bio_integrity_add_page(struct bio *bio, struct page *page,struct bio_integrity_payload *bip = bio->bi_integrity;struct bio_vec *iv; -if (bip->bip_vcnt >=bvec_nr_vecs (bip->bip_slab)) { +if (bip->bip_vcnt >=bip_integrity_vecs (bip)) {printk (KERN_ERR "%s: bip_vec full\n" , __func__);return 0 ; }
fs/cifs/cifsacl.c +24 -4
@@ -1027,15 +1027,30 @@ id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 nmode,__u32 secdesclen =0 ;struct cifs_ntsd *pntsd =NULL ;/* acl obtained from server */ struct cifs_ntsd *pnntsd =NULL ;/* modified acl to be sent to server */ +struct cifs_sb_info *cifs_sb =CIFS_SB (inode->i_sb); +struct tcon_link *tlink =cifs_sb_tlink (cifs_sb); +struct cifs_tcon *tcon; + +if (IS_ERR (tlink)) +return PTR_ERR (tlink); + tcon =tlink_tcon (tlink);cifs_dbg (NOISY ,"set ACL from mode for %s\n" , path);/* Get the security descriptor */ - pntsd =get_cifs_acl (CIFS_SB (inode->i_sb), inode, path, &secdesclen); + +if (tcon->ses->server->ops->get_acl ==NULL ) { +cifs_put_tlink (tlink); +return -EOPNOTSUPP ; + } + + pntsd = tcon->ses->server->ops->get_acl (cifs_sb, inode, path, + &secdesclen);if (IS_ERR (pntsd)) { rc =PTR_ERR (pntsd);cifs_dbg (VFS ,"%s: error %d getting sec desc\n" , __func__, rc); - goto out; +cifs_put_tlink (tlink); +return rc; }/*
@@ -1048,6 +1063,7 @@ id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 nmode, pnntsd =kmalloc (secdesclen,GFP_KERNEL );if (!pnntsd) {kfree (pntsd); +cifs_put_tlink (tlink);return -ENOMEM ; }
@@ -1056,14 +1072,18 @@ id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 nmode,cifs_dbg (NOISY ,"build_sec_desc rc: %d\n" , rc); +if (tcon->ses->server->ops->set_acl ==NULL ) + rc = -EOPNOTSUPP ; +if (!rc) {/* Set the security descriptor */ - rc =set_cifs_acl (pnntsd, secdesclen, inode, path, aclflag); + rc = tcon->ses->server->ops->set_acl (pnntsd, secdesclen, inode, + path, aclflag);cifs_dbg (NOISY ,"set_cifs_acl rc: %d\n" , rc); } +cifs_put_tlink (tlink);kfree (pnntsd);kfree (pntsd); -out:return rc; }
fs/cifs/cifsglob.h +10 -0
@@ -370,6 +370,16 @@ struct smb_version_operations {void (*new_lease_key)(struct cifs_fid *fid);int (*calc_signature)(struct smb_rqst *rqst,struct TCP_Server_Info *server); +ssize_t (*query_all_EAs)(const unsigned int ,struct cifs_tcon *, +const unsigned char *,const unsigned char *,char *, +size_t ,const struct nls_table *,int ); +int (*set_EA)(const unsigned int ,struct cifs_tcon *,const char *, +const char *,const void *,const __u16 , +const struct nls_table *,int ); +struct cifs_ntsd * (*get_acl)(struct cifs_sb_info *,struct inode *, +const char *,u32 *); +int (*set_acl)(struct cifs_ntsd *,__u32 ,struct inode *,const char *, +int ); };struct smb_version_values {
fs/cifs/inode.c +9 -4
@@ -490,10 +490,15 @@ static int cifs_sfu_mode(struct cifs_fattr *fattr, const unsigned char *path,return PTR_ERR (tlink); tcon =tlink_tcon (tlink); - rc =CIFSSMBQAllEAs (xid, tcon, path,"SETFILEBITS" , - ea_value,4 /* size of buf */ , cifs_sb->local_nls, - cifs_sb->mnt_cifs_flags & -CIFS_MOUNT_MAP_SPECIAL_CHR ); +if (tcon->ses->server->ops->query_all_EAs ==NULL ) { +cifs_put_tlink (tlink); +return -EOPNOTSUPP ; + } + + rc = tcon->ses->server->ops->query_all_EAs (xid, tcon, path, +"SETFILEBITS" , ea_value,4 /* size of buf */ , + cifs_sb->local_nls, + cifs_sb->mnt_cifs_flags &CIFS_MOUNT_MAP_SPECIAL_CHR );cifs_put_tlink (tlink);if (rc <0 )return (int )rc;
fs/cifs/smb1ops.c +8 -0
@@ -948,6 +948,14 @@ struct smb_version_operations smb1_operations = { .mand_lock = cifs_mand_lock, .mand_unlock_range = cifs_unlock_range, .push_mand_locks = cifs_push_mandatory_locks, +#ifdef CONFIG_CIFS_XATTR + .query_all_EAs = CIFSSMBQAllEAs, + .set_EA = CIFSSMBSetEA, +#endif /* CIFS_XATTR */ +#ifdef CONFIG_CIFS_ACL + .get_acl = get_cifs_acl, + .set_acl = set_cifs_acl, +#endif /* CIFS_ACL */ };struct smb_version_values smb1_values = {
fs/cifs/xattr.c +41 -23
112 lines not on this page · raw message
fs/file.c +1 -1
@@ -34,7 +34,7 @@ static void *alloc_fdmem(size_t size)* vmalloc() if the allocation size will be considered "large" by the VM. */ if (size <= (PAGE_SIZE <<PAGE_ALLOC_COSTLY_ORDER )) { -void *data =kmalloc (size,GFP_KERNEL |__GFP_NOWARN); +void *data =kmalloc (size,GFP_KERNEL |__GFP_NOWARN|__GFP_NORETRY);if (data !=NULL )return data; }
fs/lockd/svclock.c +8 -0
@@ -767,6 +767,7 @@ nlmsvc_grant_blocked(struct nlm_block *block)struct nlm_file *file = block->b_file;struct nlm_lock *lock = &block->b_call->a_args.lock;int error; +loff_t fl_start, fl_end;dprintk ("lockd: grant blocked lock %p\n" , block);
@@ -784,9 +785,16 @@ nlmsvc_grant_blocked(struct nlm_block *block) }/* Try the lock operation again */ +/* vfs_lock_file() can mangle fl_start and fl_end, but we need +* them unchanged for the GRANT_MSG +*/ lock->fl.fl_flags |=FL_SLEEP ; + fl_start = lock->fl.fl_start; + fl_end = lock->fl.fl_end; error =vfs_lock_file (file->f_file,F_SETLK , &lock->fl,NULL ); lock->fl.fl_flags &= ~FL_SLEEP ; + lock->fl.fl_start = fl_start; + lock->fl.fl_end = fl_end;switch (error) {case 0 :
include/linux/compiler-gcc4.h +1 -5
@@ -75,11 +75,7 @@* * (asm goto is automatically volatile - the naming reflects this.) */ -#if GCC_VERSION <=40801 -# define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) -#else -# define asm_volatile_goto(x...) do { asm goto(x); } while (0) -#endif +#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP #if GCC_VERSION >=40400
kernel/irq/irqdesc.c +1 -0
@@ -274,6 +274,7 @@ struct irq_desc *irq_to_desc(unsigned int irq) {return (irq <NR_IRQS ) ? irq_desc + irq :NULL ; } +EXPORT_SYMBOL (irq_to_desc);static void free_desc (unsigned int irq) {
kernel/time/jiffies.c +6 -0
@@ -51,7 +51,13 @@* HZ shrinks, so values greater than 8 overflow 32bits when * HZ=100. */ +#if HZ <34 +#define JIFFIES_SHIFT 6 +#elif HZ <67 +#define JIFFIES_SHIFT 7 +#else #define JIFFIES_SHIFT 8 +#endif static cycle_t jiffies_read (struct clocksource *cs) {
kernel/time/tick-broadcast.c +1 -0
@@ -745,6 +745,7 @@ out:static void tick_broadcast_clear_oneshot (int cpu) {cpumask_clear_cpu (cpu, tick_broadcast_oneshot_mask); +cpumask_clear_cpu (cpu, tick_broadcast_pending_mask); } static void tick_broadcast_init_next_event(struct cpumask *mask,
kernel/trace/ring_buffer.c +7 -0
@@ -2396,6 +2396,13 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer, write &=RB_WRITE_MASK ; tail = write - length; +/* +* If this is the first commit on the page, then it has the same +* timestamp as the page itself. +*/ +if (!tail) + delta =0 ; +/* See if we shot pass the end of this buffer page */ if (unlikely (write >BUF_PAGE_SIZE )) return rb_move_tail(cpu_buffer, length, tail,
mm/memory-failure.c +4 -2
@@ -943,8 +943,10 @@ static int hwpoison_user_mappings(struct page *p, unsigned long pfn,* to it. Similarly, page lock is shifted. */ if (hpage != p) { -put_page (hpage); -get_page (p); +if (!(flags &MF_COUNT_INCREASED )) { +put_page (hpage); +get_page (p); + }lock_page (p);unlock_page (hpage); *hpagep = p;
net/mac80211/cfg.c +22 -19
66 lines not on this page · raw message
net/mac80211/tx.c +1 -1
@@ -854,7 +854,7 @@ static int ieee80211_fragment(struct ieee80211_tx_data *tx, }/* adjust first fragment's length */ - skb->len = hdrlen + per_fragm; +skb_trim (skb, hdrlen + per_fragm);return 0 ; }
scripts/mod/file2alias.c +2 -2
@@ -208,8 +208,8 @@ static void do_usb_entry(void *symval, range_lo <0x9 ?"[%X-9" :"[%X" , range_lo);sprintf (alias +strlen (alias), - range_hi >0xA ?"a-%X]" :"%X]" , - range_lo); + range_hi >0xA ?"A-%X]" :"%X]" , + range_hi); } }if (bcdDevice_initial_digits < (sizeof (bcdDevice_lo) *2 -1 ))
sound/pci/hda/patch_realtek.c +1 -0
@@ -3700,6 +3700,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x1043 ,0x8398 ,"ASUS P1005" ,ALC269_FIXUP_STEREO_DMIC ),SND_PCI_QUIRK (0x1043 ,0x83ce ,"ASUS P1005" ,ALC269_FIXUP_STEREO_DMIC ),SND_PCI_QUIRK (0x1043 ,0x8516 ,"ASUS X101CH" ,ALC269_FIXUP_ASUS_X101 ), +SND_PCI_QUIRK (0x104d ,0x90b5 ,"Sony VAIO Pro 11" ,ALC286_FIXUP_SONY_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x104d ,0x90b6 ,"Sony VAIO Pro 13" ,ALC286_FIXUP_SONY_MIC_NO_PRESENCE ),SND_PCI_QUIRK (0x104d ,0x9073 ,"Sony VAIO" ,ALC275_FIXUP_SONY_VAIO_GPIO2 ), SND_PCI_QUIRK(0x104d, 0x907b, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
virt/kvm/coalesced_mmio.c +2 -6
@@ -154,17 +154,13 @@ int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm,list_add_tail (&dev->list, &kvm->coalesced_zones);mutex_unlock (&kvm->slots_lock); -return ret; +return 0 ; out_free_dev:mutex_unlock (&kvm->slots_lock); -kfree (dev); -if (dev ==NULL ) -return -ENXIO ; - -return 0 ; +return ret; } int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm,