Linux 3.0.77
Greg KH
maintainerI'm announcing the release of the 3.0.77 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.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/ia64/include/asm/futex.h | 5 - arch/ia64/include/asm/mca.h | 1 arch/ia64/kernel/irq.c | 8 ++ arch/ia64/kernel/mca.c | 37 ++++++++---- arch/ia64/kvm/vtlb.c | 2 arch/powerpc/kernel/head_64.S | 1 arch/powerpc/platforms/cell/spufs/inode.c | 1 arch/s390/include/asm/pgtable.h | 4 + arch/x86/kernel/irq.c | 4 - arch/x86/xen/enlighten.c | 5 + arch/x86/xen/time.c | 6 +- drivers/acpi/pci_root.c | 4 - drivers/i2c/busses/i2c-xiic.c | 6 -- drivers/mfd/adp5520.c | 8 ++ drivers/mmc/core/mmc.c | 2 drivers/net/can/sja1000/sja1000_of_platform.c | 31 +++++----- drivers/rtc/rtc-cmos.c | 4 - drivers/s390/char/sclp_cmd.c | 4 + drivers/tty/pty.c | 3 + drivers/tty/serial/serial_core.c | 4 + drivers/tty/tty_io.c | 4 - drivers/usb/core/devio.c | 2 drivers/usb/misc/appledisplay.c | 1 drivers/usb/serial/ftdi_sio.c | 5 + drivers/usb/serial/ftdi_sio_ids.h | 4 + drivers/usb/serial/option.c | 8 ++ drivers/usb/storage/cypress_atacb.c | 16 ++++- drivers/video/console/fbcon.c | 2 fs/ext4/Kconfig | 3 - fs/fscache/stats.c | 2 fs/lockd/clntlock.c | 3 + fs/lockd/clntproc.c | 3 - fs/nfs/nfs4proc.c | 6 ++ fs/nfsd/nfs4state.c | 8 -- fs/nfsd/nfs4xdr.c | 19 +----- include/linux/ipc_namespace.h | 2 ipc/shm.c | 2 kernel/cgroup.c | 2 kernel/hrtimer.c | 6 ++ kernel/time/tick-broadcast.c | 4 + kernel/time/tick-common.c | 1 kernel/trace/ftrace.c | 5 + kernel/trace/trace.c | 2 kernel/trace/trace_stack.c | 76 +++++++++++++++++++++++--- kernel/trace/trace_stat.c | 2 net/wireless/reg.c | 2 sound/soc/codecs/max98088.c | 2 sound/usb/card.c | 4 + sound/usb/midi.c | 13 ---- 50 files changed, 242 insertions(+), 109 deletions(-)
Adrian Thomasset (1):
USB: ftdi_sio: correct ST Micro Connect Lite PIDs
Anurup m (1):
fs/fscache/stats.c: fix memory leak
Ben Jencks (1):
usb/misc/appledisplay: Add 24" LED Cinema display
Bjørn Mork (1):
USB: option: add a D-Link DWM-156 variant
Bryan Schumaker (1):
nfsd: Decode and send 64bit time values
Clemens Ladisch (1):
ALSA: usb-audio: disable autopm for MIDI devices
David Engraf (1):
hrtimer: Fix ktime_add_ns() overflow on 32bit architectures
Derek Basehore (1):
drivers/rtc/rtc-cmos.c: don't disable hpet emulation on suspend
Dylan Reid (1):
ASoC: max98088: Fix logging of hardware revision.
Federico Vaga (1):
serial_core.c: add put_device() after device_find_child()
Filippo Turato (1):
USB: serial: option: Added support Olivetti Olicard 145
Greg Kroah-Hartman (2):
Revert :can: sja1000: fix handling on dt properties on little endian systems" Linux 3.0.77
Hans de Goede (1):
usbfs: Always allow ctrl requests with USB_RECIP_ENDPOINT on the ctrl ep
Heiko Carstens (1):
s390/memory hotplug: prevent offline of active memory increments
J. Bruce Fields (1):
nfsd4: don't close read-write opens too soon
Johannes Berg (1):
wireless: regulatory: fix channel disabling race condition
Konrad Rzeszutek Wilk (1):
xen/time: Fix kasprintf splat when allocating timer%d IRQ line.
Lars-Peter Clausen (1):
mfd: adp5520: Restore mode bits on resume
Li Fei (1):
x86: Eliminate irq_mis_count counted in arch_irq_stat
Li Zefan (1):
cgroup: fix an off-by-one bug which may trigger BUG_ON()
Linus Torvalds (2):
tty: fix up atime/mtime mess, take three
s390: move dummy io_remap_pfn_range() to asm/pgtable.h
Michael Ellerman (1):
powerpc/spufs: Initialise inode->i_ino in spufs_new_inode()
Michael Neuling (1):
powerpc: Add isync to copy_and_flush
Mika Kuoppala (1):
fbcon: when font is freed, clear also vc_font.data
Namhyung Kim (3):
tracing: Fix off-by-one on allocating stat->pages
tracing: Check return value of tracing_init_dentry()
tracing: Reset ftrace_graph_filter_enabled if count is zero
Philip Rakity (1):
mmc: core: Fix bit width test failing on old eMMC cards
Prarit Bhargava (1):
hrtimer: Add expiry time overflow check in hrtimer_interrupt
Robin Holt (1):
ipc: sysv shared memory limited to 8TiB
Stefani Seibold (1):
USB: add ftdi_sio USB ID for GDM Boost V1.x
Stephan Schreiber (2):
Wrong asm register contraints in the futex implementation Wrong asm register contraints in the kvm implementation
Steven A. Falco (1):
i2c: xiic: must always write 16-bit words to TX_FIFO
Steven Rostedt (Red Hat) (3):
tracing: Use stack of calling function for stack tracer
tracing: Fix stack tracer with fentry use
tracing: Remove most or all of stack tracer stack size from stack_max_size
Takashi Iwai (1):
ALSA: usb-audio: Fix autopm error during probing
Theodore Ts'o (1):
ext4: fix Kconfig documentation for CONFIG_EXT4_DEBUG
Thomas Gleixner (1):
clockevents: Set dummy handler on CPU_DEAD shutdown
Tony Luck (1):
Fix initialization of CMCI/CMCP interrupts
Tormod Volden (1):
usb-storage: CY7C68300A chips do not support Cypress ATACB
Trond Myklebust (2):
LOCKD: Ensure that nlmclnt_block resets block->b_status after a server reboot
NFSv4: Handle NFS4ERR_DELAY and NFS4ERR_GRACE in nfs4_open_delegation_recall
Yinghai Lu (1):
PCI / ACPI: Don't query OSC support with all possible controls
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 76 +SUBLEVEL = 77 EXTRAVERSION = NAME = Sneaky Weasel
arch/ia64/include/asm/futex.h +2 -3
@@ -107,16 +107,15 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,return -EFAULT ; { - registerunsigned long r8 __asm ("r8" ); + register unsigned long r8 __asm ("r8") = 0;unsigned long prev; __asm__ __volatile__(" mf;; \n" -" mov %0=r0 \n" " mov ar.ccv=%4;; \n" "[1:] cmpxchg4.acq %1=[%2],%3,ar.ccv \n" " .xdata4 \"__ex_table\", 1b-., 2f-. \n" "[2:]" - :"=r" (r8),"=r" (prev) + :"+r" (r8),"=&r" (prev) :"r" (uaddr),"r" (newval),"rO" ((long ) (unsigned ) oldval) :"memory" );
arch/ia64/include/asm/mca.h +1 -0
@@ -143,6 +143,7 @@ extern unsigned long __per_cpu_mca[NR_CPUS];extern int cpe_vector;extern int ia64_cpe_irq;extern void ia64_mca_init (void ); +extern void ia64_mca_irq_init (void );extern void ia64_mca_cpu_init (void *);extern void ia64_os_mca_dispatch (void );extern void ia64_os_mca_dispatch_end (void );
arch/ia64/kernel/irq.c +8 -0
@@ -23,6 +23,8 @@#include <linux/interrupt.h> #include <linux/kernel_stat.h> +#include <asm/mca.h> +/* * 'what should we do if we get a hw irq event on an illegal vector'. * each architecture has to answer this themselves.
@@ -83,6 +85,12 @@ bool is_affinity_mask_valid(const struct cpumask *cpumask)#endif /* CONFIG_SMP */ +int __init arch_early_irq_init (void ) +{ +ia64_mca_irq_init (); +return 0 ; +} +#ifdef CONFIG_HOTPLUG_CPU unsigned int vectors_in_migration[NR_IRQS ];
arch/ia64/kernel/mca.c +24 -13
@@ -2071,22 +2071,16 @@ ia64_mca_init(void)printk (KERN_INFO "MCA related initialization done\n" ); } +/* -* ia64_mca_late_init -* -* Opportunity to setup things that require initialization later -* than ia64_mca_init. Setup a timer to poll for CPEs if the -* platform doesn't support an interrupt driven mechanism. -* -* Inputs : None -* Outputs : Status +* These pieces cannot be done in ia64_mca_init() because it is called before +* early_irq_init() which would wipe out our percpu irq registrations. But we +* cannot leave them until ia64_mca_late_init() because by then all the other +* processors have been brought online and have set their own CMC vectors to +* point at a non-existant action. Called from arch_early_irq_init(). */ -static int __init -ia64_mca_late_init (void ) +void __init ia64_mca_irq_init (void ) { -if (!mca_init) -return 0 ; -/* * Configure the CMCI/P vector and handler. Interrupts for CMC are * per-processor, so AP CMC interrupts are setup in smp_callin() (smpboot.c).
@@ -2105,6 +2099,23 @@ ia64_mca_late_init(void)/* Setup the CPEI/P handler */ register_percpu_irq (IA64_CPEP_VECTOR , &mca_cpep_irqaction);#endif +} + +/* +* ia64_mca_late_init +* +* Opportunity to setup things that require initialization later +* than ia64_mca_init. Setup a timer to poll for CPEs if the +* platform doesn't support an interrupt driven mechanism. +* +* Inputs : None +* Outputs : Status +*/ +static int __init +ia64_mca_late_init (void ) +{ +if (!mca_init) +return 0 ;register_hotcpu_notifier (&mca_cpu_notifier);
arch/ia64/kvm/vtlb.c +1 -1
@@ -256,7 +256,7 @@ u64 guest_vhpt_lookup(u64 iha, u64 *pte)"srlz.d;;" "ssm psr.i;;" "srlz.d;;" - : "=r"(ret) : "r"(iha), "r"(pte):"memory"); + : "=&r"(ret) : "r"(iha), "r"(pte) : "memory"); return ret; }
arch/powerpc/kernel/head_64.S +1 -0
@@ -492,6 +492,7 @@ _GLOBAL(copy_and_flush) sync addi r5,r5,8 addi r6,r6,8 + isync blr .align 8
arch/powerpc/platforms/cell/spufs/inode.c +1 -0
@@ -100,6 +100,7 @@ spufs_new_inode(struct super_block *sb, int mode)if (!inode) goto out; + inode->i_ino =get_next_ino (); inode->i_mode = mode; inode->i_uid =current_fsuid (); inode->i_gid =current_fsgid ();
arch/s390/include/asm/pgtable.h +4 -0
@@ -67,6 +67,10 @@ static inline int is_zero_pfn(unsigned long pfn)#define my_zero_pfn (addr) page_to_pfn(ZERO_PAGE(addr)) +/* TODO: s390 cannot support io_remap_pfn_range... */ +#define io_remap_pfn_range (vma, vaddr, pfn, size, prot) \ + remap_pfn_range(vma, vaddr, pfn, size, prot) +#endif /* !__ASSEMBLY__ */ /*
arch/x86/kernel/irq.c +0 -4
@@ -159,10 +159,6 @@ u64 arch_irq_stat_cpu(unsigned int cpu)u64 arch_irq_stat (void ) {u64 sum =atomic_read (&irq_err_count); - -#ifdef CONFIG_X86_IO_APIC - sum +=atomic_read (&irq_mis_count); -#endif return sum; }
arch/x86/xen/enlighten.c +4 -1
@@ -1365,8 +1365,11 @@ static int __cpuinit xen_hvm_cpu_notify(struct notifier_block *self,switch (action) {case CPU_UP_PREPARE :xen_vcpu_setup (cpu); -if (xen_have_vector_callback) +if (xen_have_vector_callback) {xen_init_lock_cpu (cpu); +if (xen_feature (XENFEAT_hvm_safe_pvclock)) +xen_setup_timer (cpu); + }break ;default :break ;
arch/x86/xen/time.c +5 -1
@@ -482,7 +482,11 @@ static void xen_hvm_setup_cpu_clockevents(void) {int cpu =smp_processor_id ();xen_setup_runstate_info (cpu); -xen_setup_timer (cpu); +/* +* xen_setup_timer(cpu) - snprintf is bad in atomic context. Hence +* doing it xen_hvm_cpu_notify (which gets called by smp_init during +* early bootup and also during CPU hotplug events). +*/ xen_setup_cpu_clockevents (); }
drivers/acpi/pci_root.c +2 -2
@@ -247,8 +247,8 @@ static acpi_status acpi_pci_query_osc(struct acpi_pci_root *root, *control &=OSC_PCI_CONTROL_MASKS ; capbuf[OSC_CONTROL_TYPE ] = *control | root->osc_control_set; }else { -/* Run _OSC query for all possible controls. */ - capbuf[OSC_CONTROL_TYPE ] =OSC_PCI_CONTROL_MASKS ; +/* Run _OSC query only with existing controls. */ + capbuf[OSC_CONTROL_TYPE ] = root->osc_control_set; } status =acpi_pci_run_osc (root->device->handle, capbuf, &result);
drivers/i2c/busses/i2c-xiic.c +2 -4
@@ -311,10 +311,8 @@ static void xiic_fill_tx_fifo(struct xiic_i2c *i2c)/* last message in transfer -> STOP */ data |=XIIC_TX_DYN_STOP_MASK ;dev_dbg (i2c->adap.dev.parent,"%s TX STOP\n" , __func__); - -xiic_setreg16 (i2c,XIIC_DTR_REG_OFFSET , data); - }else -xiic_setreg8 (i2c,XIIC_DTR_REG_OFFSET , data); + } +xiic_setreg16 (i2c,XIIC_DTR_REG_OFFSET , data); } }
drivers/mfd/adp5520.c +6 -2
@@ -36,6 +36,7 @@ struct adp5520_chip {struct blocking_notifier_head notifier_list;int irq;unsigned long id; +uint8_t mode; }; static int __adp5520_read(struct i2c_client *client,
@@ -326,7 +327,10 @@ static int adp5520_suspend(struct device *dev)struct i2c_client *client =to_i2c_client (dev);struct adp5520_chip *chip =dev_get_drvdata (&client->dev); -adp5520_clr_bits (chip->dev,ADP5520_MODE_STATUS , ADP5520_nSTNBY); +adp5520_read (chip->dev,ADP5520_MODE_STATUS , &chip->mode); +/* All other bits are W1C */ + chip->mode &=ADP5520_BL_EN |ADP5520_DIM_EN | ADP5520_nSTNBY; +adp5520_write (chip->dev,ADP5520_MODE_STATUS ,0 );return 0 ; }
@@ -335,7 +339,7 @@ static int adp5520_resume(struct device *dev)struct i2c_client *client =to_i2c_client (dev);struct adp5520_chip *chip =dev_get_drvdata (&client->dev); -adp5520_set_bits (chip->dev,ADP5520_MODE_STATUS , ADP5520_nSTNBY); +adp5520_write (chip->dev,ADP5520_MODE_STATUS , chip->mode); return 0; }#endif
drivers/mmc/core/mmc.c +1 -1
@@ -353,13 +353,13 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd) ext_csd[EXT_CSD_SEC_FEATURE_SUPPORT ]; card->ext_csd.raw_trim_mult = ext_csd[EXT_CSD_TRIM_MULT ]; + card->ext_csd.raw_partition_support = ext_csd[EXT_CSD_PARTITION_SUPPORT ];if (card->ext_csd.rev >=4 ) {/* * Enhanced area feature support -- check whether the eMMC * card has the Enhanced area enabled. If so, export enhanced * area offset and size to user by adding sysfs interface. */ - card->ext_csd.raw_partition_support = ext_csd[EXT_CSD_PARTITION_SUPPORT ];if ((ext_csd[EXT_CSD_PARTITION_SUPPORT ] &0x2 ) && (ext_csd[EXT_CSD_PARTITION_ATTRIBUTE ] &0x1 )) { u8 hc_erase_grp_sz =
drivers/net/can/sja1000/sja1000_of_platform.c +16 -15
@@ -93,8 +93,8 @@ static int __devinit sja1000_ofp_probe(struct platform_device *ofdev)struct net_device *dev;struct sja1000_priv *priv;struct resource res; -u32 prop; -int err, irq, res_size; +const u32 *prop; +int err, irq, res_size, prop_size;void __iomem *base; err =of_address_to_resource (np,0 , &res);
@@ -135,27 +135,27 @@ static int __devinit sja1000_ofp_probe(struct platform_device *ofdev) priv->read_reg = sja1000_ofp_read_reg; priv->write_reg = sja1000_ofp_write_reg; - err =of_property_read_u32 (np,"nxp,external-clock-frequency" , &prop); -if (!err) - priv->can.clock.freq = prop /2 ; + prop =of_get_property (np,"nxp,external-clock-frequency" , &prop_size); +if (prop && (prop_size ==sizeof (u32))) + priv->can.clock.freq = *prop /2 ;else priv->can.clock.freq =SJA1000_OFP_CAN_CLOCK ;/* default */ - err =of_property_read_u32 (np,"nxp,tx-output-mode" , &prop); -if (!err) - priv->ocr |= prop &OCR_MODE_MASK ; + prop =of_get_property (np,"nxp,tx-output-mode" , &prop_size); +if (prop && (prop_size ==sizeof (u32))) + priv->ocr |= *prop &OCR_MODE_MASK ;else priv->ocr |=OCR_MODE_NORMAL ;/* default */ - err =of_property_read_u32 (np,"nxp,tx-output-config" , &prop); -if (!err) - priv->ocr |= (prop <<OCR_TX_SHIFT ) &OCR_TX_MASK ; + prop =of_get_property (np,"nxp,tx-output-config" , &prop_size); +if (prop && (prop_size ==sizeof (u32))) + priv->ocr |= (*prop <<OCR_TX_SHIFT ) &OCR_TX_MASK ;else priv->ocr |=OCR_TX0_PULLDOWN ;/* default */ - err =of_property_read_u32 (np,"nxp,clock-out-frequency" , &prop); -if (!err && prop) { -u32 divider = priv->can.clock.freq *2 / prop; + prop =of_get_property (np,"nxp,clock-out-frequency" , &prop_size); +if (prop && (prop_size ==sizeof (u32)) && *prop) { +u32 divider = priv->can.clock.freq *2 / *prop;if (divider >1 ) priv->cdr |= divider /2 -1 ;
@@ -165,7 +165,8 @@ static int __devinit sja1000_ofp_probe(struct platform_device *ofdev) priv->cdr |=CDR_CLK_OFF ;/* default */ } -if (!of_property_read_bool (np,"nxp,no-comparator-bypass" )) + prop =of_get_property (np,"nxp,no-comparator-bypass" ,NULL ); +if (!prop) priv->cdr |=CDR_CBP ;/* default */ priv->irq_flags =IRQF_SHARED ;
drivers/rtc/rtc-cmos.c +2 -2
@@ -805,9 +805,8 @@ static int cmos_suspend(struct device *dev) mask =RTC_IRQMASK ; tmp &= ~mask;CMOS_WRITE (tmp,RTC_CONTROL ); +hpet_mask_rtc_irq_bit (mask); -/* shut down hpet emulation - we don't need it for alarm */ -hpet_mask_rtc_irq_bit (RTC_PIE |RTC_AIE |RTC_UIE );cmos_checkintr (cmos, tmp); }spin_unlock_irq (&rtc_lock);
@@ -872,6 +871,7 @@ static int cmos_resume(struct device *dev)rtc_update_irq (cmos->rtc,1 , mask); tmp &= ~RTC_AIE ;hpet_mask_rtc_irq_bit (RTC_AIE ); +hpet_rtc_timer_init (); }while (mask &RTC_AIE );spin_unlock_irq (&rtc_lock); }
drivers/s390/char/sclp_cmd.c +3 -1
@@ -507,6 +507,8 @@ static void __init sclp_add_standby_memory(void)add_memory_merged (0 ); } +#define MEM_SCT_SIZE (1UL << SECTION_SIZE_BITS) +static void __init insert_increment (u16 rn,int standby,int assigned) {struct memory_increment *incr, *new_incr;
@@ -519,7 +521,7 @@ static void __init insert_increment(u16 rn, int standby, int assigned) new_incr->rn = rn; new_incr->standby = standby;if (!standby) - new_incr->usecount =1 ; + new_incr->usecount = rzm >MEM_SCT_SIZE ? rzm/MEM_SCT_SIZE :1 ; last_rn =0 ; prev = &sclp_mem_list;list_for_each_entry (incr, &sclp_mem_list, list) {
drivers/tty/pty.c +3 -0
@@ -669,6 +669,9 @@ static int ptmx_open(struct inode *inode, struct file *filp)nonseekable_open (inode, filp); +/* We refuse fsnotify events on ptmx, since it's a shared resource */ + filp->f_mode |=FMODE_NONOTIFY ; + retval =tty_alloc_file (filp);if (retval)return retval;
drivers/tty/serial/serial_core.c +4 -0
@@ -1917,6 +1917,8 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport)mutex_unlock (&port->mutex);return 0 ; } +put_device (tty_dev); +if (console_suspend_enabled || !uart_console (uport)) uport->suspended =1 ;
@@ -1982,9 +1984,11 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)disable_irq_wake (uport->irq); uport->irq_wake =0 ; } +put_device (tty_dev);mutex_unlock (&port->mutex);return 0 ; } +put_device (tty_dev); uport->suspended =0 ;/*
drivers/tty/tty_io.c +2 -2
@@ -939,10 +939,10 @@ void start_tty(struct tty_struct *tty)EXPORT_SYMBOL (start_tty); +/* We limit tty time update visibility to every 8 seconds or so. */ static void tty_update_time (struct timespec *time) { -unsigned long sec =get_seconds (); - sec -= sec %60 ; +unsigned long sec =get_seconds () & ~7 ;if ((long )(sec - time->tv_sec) >0 ) time->tv_sec = sec; }
drivers/usb/core/devio.c +2 -0
@@ -642,6 +642,8 @@ static int check_ctrlrecip(struct dev_state *ps, unsigned int requesttype, index &=0xff ;switch (requesttype &USB_RECIP_MASK ) {case USB_RECIP_ENDPOINT : +if ((index & ~USB_DIR_IN ) ==0 ) +return 0 ; ret =findintfep (ps->dev, index);if (ret >=0 ) ret =checkintf (ps, ret);
drivers/usb/misc/appledisplay.c +1 -0
@@ -63,6 +63,7 @@ static const struct usb_device_id appledisplay_table[] = { { APPLEDISPLAY_DEVICE(0x9219) }, { APPLEDISPLAY_DEVICE(0x921c) }, { APPLEDISPLAY_DEVICE(0x921d) }, + { APPLEDISPLAY_DEVICE(0x9236) }, /* Terminating entry */ { }
drivers/usb/serial/ftdi_sio.c +4 -1
@@ -195,6 +195,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_THROTTLE_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GATEWAY_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_BOOST_PID) }, { USB_DEVICE(NEWPORT_VID, NEWPORT_AGILIS_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) },
@@ -876,7 +877,9 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_DOTEC_PID) }, { USB_DEVICE(QIHARDWARE_VID, MILKYMISTONE_JTAGSERIAL_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, - { USB_DEVICE(ST_VID, ST_STMCLT1030_PID), + { USB_DEVICE(ST_VID, ST_STMCLT_2232_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, + { USB_DEVICE(ST_VID, ST_STMCLT_4232_PID), .driver_info = (kernel_ulong_t)&ftdi_stmclite_quirk }, { USB_DEVICE(FTDI_VID, FTDI_RF_R106) }, { USB_DEVICE(FTDI_VID, FTDI_DISTORTEC_JTAG_LOCK_PICK_PID),
drivers/usb/serial/ftdi_sio_ids.h +3 -1
@@ -74,6 +74,7 @@#define FTDI_OPENDCC_THROTTLE_PID 0xBFDA#define FTDI_OPENDCC_GATEWAY_PID 0xBFDB#define FTDI_OPENDCC_GBM_PID 0xBFDC +#define FTDI_OPENDCC_GBM_BOOST_PID 0xBFDD/* NZR SEM 16+ USB (http://www.nzr.de) */ #define FTDI_NZR_SEM_USB_PID 0xC1E0/* NZR SEM-LOG16+ */
@@ -1150,7 +1151,8 @@* STMicroelectonics */ #define ST_VID 0x0483 -#define ST_STMCLT1030_PID 0x3747/* ST Micro Connect Lite STMCLT1030 */ +#define ST_STMCLT_2232_PID 0x3746 +#define ST_STMCLT_4232_PID 0x3747/* * Papouch products (http://www.papouch.com/)
drivers/usb/serial/option.c +8 -0
@@ -347,6 +347,7 @@ static void option_instat_callback(struct urb *urb);/* Olivetti products */ #define OLIVETTI_VENDOR_ID 0x0b3c#define OLIVETTI_PRODUCT_OLICARD100 0xc000 +#define OLIVETTI_PRODUCT_OLICARD145 0xc003/* Celot products */ #define CELOT_VENDOR_ID 0x211f
@@ -1273,6 +1274,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(SIEMENS_VENDOR_ID, CINTERION_PRODUCT_HC28_MDMNET) }, { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100) }, + { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD145) }, { USB_DEVICE(CELOT_VENDOR_ID, CELOT_PRODUCT_CT680M) }, /* CT-650 CDMA 450 1xEVDO modem */ { USB_DEVICE(ONDA_VENDOR_ID, ONDA_MT825UP) }, /* ONDA MT825UP modem */ { USB_DEVICE_AND_INTERFACE_INFO(SAMSUNG_VENDOR_ID, SAMSUNG_PRODUCT_GT_B3730, USB_CLASS_CDC_DATA, 0x00, 0x00) }, /* Samsung GT-B3730 LTE USB modem.*/
@@ -1350,6 +1352,12 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(TPLINK_VENDOR_ID, TPLINK_PRODUCT_MA180), .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE(CHANGHONG_VENDOR_ID, CHANGHONG_PRODUCT_CH690) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d01, 0xff, 0x02, 0x01) }, /* D-Link DWM-156 (variant) */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d01, 0xff, 0x00, 0x00) }, /* D-Link DWM-156 (variant) */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d02, 0xff, 0x02, 0x01) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d02, 0xff, 0x00, 0x00) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x02, 0x01) }, + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x7d03, 0xff, 0x00, 0x00) }, { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/usb/storage/cypress_atacb.c +14 -2
@@ -248,14 +248,26 @@ static int cypress_probe(struct usb_interface *intf, {struct us_data *us;int result; +struct usb_device *device; result =usb_stor_probe1 (&us, intf, id, (id - cypress_usb_ids) + cypress_unusual_dev_list);if (result)return result; - us->protocol_name ="Transparent SCSI with Cypress ATACB" ; - us->proto_handler = cypress_atacb_passthrough; +/* Among CY7C68300 chips, the A revision does not support Cypress ATACB +* Filter out this revision from EEPROM default descriptor values +*/ + device =interface_to_usbdev (intf); +if (device->descriptor.iManufacturer !=0x38 || + device->descriptor.iProduct !=0x4e || + device->descriptor.iSerialNumber !=0x64 ) { + us->protocol_name ="Transparent SCSI with Cypress ATACB" ; + us->proto_handler = cypress_atacb_passthrough; + }else { + us->protocol_name ="Transparent SCSI" ; + us->proto_handler = usb_stor_transparent_scsi_command; + } result =usb_stor_probe2 (us);return result;
drivers/video/console/fbcon.c +2 -0
@@ -1229,6 +1229,8 @@ static void fbcon_deinit(struct vc_data *vc) finished:fbcon_free_font (p, free_font); +if (free_font) + vc->vc_font.data =NULL ;if (!con_is_bound (&fb_con))fbcon_exit ();
fs/ext4/Kconfig +2 -1
@@ -82,4 +82,5 @@ config EXT4_DEBUG Enables run-time debugging support for the ext4 filesystem. If you select Y here, then you will be able to turn on debugging - with a command such as "echo 1 > /sys/kernel/debug/ext4/mballoc-debug" + with a command such as: + echo 1 > /sys/module/ext4/parameters/mballoc_debug
fs/fscache/stats.c +1 -1
@@ -276,5 +276,5 @@ const struct file_operations fscache_stats_fops = { .open = fscache_stats_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release, + .release = single_release, };
fs/lockd/clntlock.c +3 -0
@@ -141,6 +141,9 @@ int nlmclnt_block(struct nlm_wait *block, struct nlm_rqst *req, long timeout) timeout);if (ret <0 )return -ERESTARTSYS ; +/* Reset the lock status after a server reboot so we resend */ +if (block->b_status == nlm_lck_denied_grace_period) + block->b_status = nlm_lck_blocked; req->a_res.status = block->b_status;return 0 ; }
fs/lockd/clntproc.c +0 -3
@@ -550,9 +550,6 @@ again: status =nlmclnt_block (block, req,NLMCLNT_POLL_TIMEOUT );if (status <0 )break ; -/* Resend the blocking lock request after a server reboot */ -if (resp->status == nlm_lck_denied_grace_period) -continue ;if (resp->status != nlm_lck_blocked)break ; }
fs/nfs/nfs4proc.c +6 -0
@@ -1335,6 +1335,12 @@ int nfs4_open_delegation_recall(struct nfs_open_context *ctx, struct nfs4_statecase -ENOMEM : err =0 ; goto out; +case -NFS4ERR_DELAY : +case -NFS4ERR_GRACE : +set_bit (NFS_DELEGATED_STATE , &state->flags); +ssleep (1 ); + err = -EAGAIN ; + goto out; } err =nfs4_handle_exception (server, err, &exception); }while (exception.retry);
fs/nfsd/nfs4state.c +1 -7
@@ -189,13 +189,7 @@ static void __nfs4_file_put_access(struct nfs4_file *fp, int oflag) {if (atomic_dec_and_test (&fp->fi_access[oflag])) {nfs4_file_put_fd (fp, oflag); -/* -* It's also safe to get rid of the RDWR open *if* -* we no longer have need of the other kind of access -* or if we already have the other kind of open: -*/ -if (fp->fi_fds[1 -oflag] - ||atomic_read (&fp->fi_access[1 - oflag]) ==0 ) +if (atomic_read (&fp->fi_access[1 - oflag]) ==0 )nfs4_file_put_fd (fp,O_RDWR ); } }
fs/nfsd/nfs4xdr.c +5 -14
@@ -342,10 +342,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,all 32 bits of 'nseconds'. */ READ_BUF (12 ); len +=12 ; -READ32 (dummy32); -if (dummy32) -return nfserr_inval; -READ32 (iattr->ia_atime.tv_sec); +READ64 (iattr->ia_atime.tv_sec);READ32 (iattr->ia_atime.tv_nsec);if (iattr->ia_atime.tv_nsec >= (u32 )1000000000 )return nfserr_inval;
@@ -368,10 +365,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,all 32 bits of 'nseconds'. */ READ_BUF (12 ); len +=12 ; -READ32 (dummy32); -if (dummy32) -return nfserr_inval; -READ32 (iattr->ia_mtime.tv_sec); +READ64 (iattr->ia_mtime.tv_sec);READ32 (iattr->ia_mtime.tv_nsec);if (iattr->ia_mtime.tv_nsec >= (u32 )1000000000 )return nfserr_inval;
@@ -2148,8 +2142,7 @@ out_acl:if (bmval1 &FATTR4_WORD1_TIME_ACCESS ) {if ((buflen -=12 ) <0 ) goto out_resource; -WRITE32 (0 ); -WRITE32 (stat.atime.tv_sec); +WRITE64 ((s64 )stat.atime.tv_sec);WRITE32 (stat.atime.tv_nsec); }if (bmval1 &FATTR4_WORD1_TIME_DELTA ) {
@@ -2162,15 +2155,13 @@ out_acl:if (bmval1 &FATTR4_WORD1_TIME_METADATA ) {if ((buflen -=12 ) <0 ) goto out_resource; -WRITE32 (0 ); -WRITE32 (stat.ctime.tv_sec); +WRITE64 ((s64 )stat.ctime.tv_sec);WRITE32 (stat.ctime.tv_nsec); }if (bmval1 &FATTR4_WORD1_TIME_MODIFY ) {if ((buflen -=12 ) <0 ) goto out_resource; -WRITE32 (0 ); -WRITE32 (stat.mtime.tv_sec); +WRITE64 ((s64 )stat.mtime.tv_sec);WRITE32 (stat.mtime.tv_nsec); }if (bmval1 &FATTR4_WORD1_MOUNTED_ON_FILEID ) {
include/linux/ipc_namespace.h +1 -1
@@ -42,8 +42,8 @@ struct ipc_namespace {size_t shm_ctlmax;size_t shm_ctlall; +unsigned long shm_tot;int shm_ctlmni; -int shm_tot;struct notifier_block ipcns_nb;
ipc/shm.c +1 -1
@@ -343,7 +343,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params)size_t size = params->u.size;int error;struct shmid_kernel *shp; -int numpages = (size +PAGE_SIZE -1 ) >>PAGE_SHIFT ; +size_t numpages = (size +PAGE_SIZE -1 ) >>PAGE_SHIFT ;struct file * file;char name[13 ];int id;
kernel/cgroup.c +1 -1
@@ -2026,7 +2026,7 @@ int cgroup_attach_proc(struct cgroup *cgrp, struct task_struct *leader)if (!group)return -ENOMEM ;/* pre-allocate to guarantee space while iterating in rcu read-side. */ - retval =flex_array_prealloc (group,0 , group_size -1 ,GFP_KERNEL ); + retval =flex_array_prealloc (group,0 , group_size,GFP_KERNEL );if (retval) goto out_free_group_list;
kernel/hrtimer.c +6 -0
@@ -298,6 +298,10 @@ ktime_t ktime_sub_ns(const ktime_t kt, u64 nsec) }else {unsigned long rem =do_div (nsec,NSEC_PER_SEC ); +/* Make sure nsec fits into long */ +if (unlikely (nsec >KTIME_SEC_MAX )) +return (ktime_t ){ .tv64 =KTIME_MAX }; + tmp =ktime_set ((long )nsec, rem); }
@@ -1308,6 +1312,8 @@ retry: expires =ktime_sub (hrtimer_get_expires (timer), base->offset); +if (expires.tv64 <0 ) + expires.tv64 =KTIME_MAX ;if (expires.tv64 < expires_next.tv64) expires_next = expires;break ;
kernel/time/tick-broadcast.c +4 -0
@@ -66,6 +66,8 @@ static void tick_broadcast_start_periodic(struct clock_event_device *bc)*/ int tick_check_broadcast_device (struct clock_event_device *dev) { +struct clock_event_device *cur = tick_broadcast_device.evtdev; + if ((dev->features & CLOCK_EVT_FEAT_DUMMY) || (tick_broadcast_device.evtdev && tick_broadcast_device.evtdev->rating >= dev->rating) ||
@@ -73,6 +75,8 @@ int tick_check_broadcast_device(struct clock_event_device *dev)return 0 ;clockevents_exchange_device (tick_broadcast_device.evtdev, dev); +if (cur) + cur->event_handler = clockevents_handle_noop; tick_broadcast_device.evtdev = dev;if (!cpumask_empty (tick_get_broadcast_mask ()))tick_broadcast_start_periodic (dev);
kernel/time/tick-common.c +1 -0
@@ -323,6 +323,7 @@ static void tick_shutdown(unsigned int *cpup)*/ dev->mode =CLOCK_EVT_MODE_UNUSED ;clockevents_exchange_device (dev,NULL ); + dev->event_handler = clockevents_handle_noop; td->evtdev =NULL ; }raw_spin_unlock_irqrestore (&tick_device_lock, flags);
kernel/trace/ftrace.c +3 -2
@@ -548,7 +548,7 @@ int ftrace_profile_pages_init(struct ftrace_profile_stat *stat) pages =DIV_ROUND_UP (functions,PROFILES_PER_PAGE ); -for (i =0 ; i < pages; i++) { +for (i =1 ; i < pages; i++) { pg->next = (void *)get_zeroed_page (GFP_KERNEL );if (!pg->next) goto out_free;
@@ -3287,7 +3287,8 @@ out:if (fail)return -EINVAL ; - ftrace_graph_filter_enabled =1 ; + ftrace_graph_filter_enabled = !!(*idx); +return 0 ; }
kernel/trace/trace.c +2 -0
@@ -4360,6 +4360,8 @@ static __init int tracer_init_debugfs(void)trace_access_lock_init (); d_tracer =tracing_init_dentry (); +if (!d_tracer) +return 0 ;trace_create_file ("tracing_enabled" ,0644 , d_tracer, &global_trace, &tracing_ctrl_fops);
kernel/trace/trace_stack.c +69 -7
142 lines not on this page · raw message
kernel/trace/trace_stat.c +2 -0
@@ -307,6 +307,8 @@ static int tracing_stat_init(void)struct dentry *d_tracing; d_tracing =tracing_init_dentry (); +if (!d_tracing) +return 0 ; stat_dir =debugfs_create_dir ("trace_stat" , d_tracing);if (!stat_dir)
net/wireless/reg.c +1 -1
@@ -852,7 +852,7 @@ static void handle_channel(struct wiphy *wiphy,return ;REG_DBG_PRINT ("Disabling freq %d MHz\n" , chan->center_freq); - chan->flags =IEEE80211_CHAN_DISABLED ; + chan->flags |=IEEE80211_CHAN_DISABLED ;return ; }
sound/soc/codecs/max98088.c +1 -1
@@ -1998,7 +1998,7 @@ static int max98088_probe(struct snd_soc_codec *codec) ret); goto err_access; } -dev_info (codec->dev,"revision %c\n" , ret +'A' ); +dev_info (codec->dev,"revision %c\n" , ret -0x40 +'A' );snd_soc_write (codec,M98088_REG_51_PWR_SYS ,M98088_PWRSV );
sound/usb/card.c +3 -1
@@ -610,7 +610,9 @@ int snd_usb_autoresume(struct snd_usb_audio *chip)int err = -ENODEV ;down_read (&chip->shutdown_rwsem); -if (!chip->shutdown && !chip->probing) +if (chip->probing) + err =0 ; +else if (!chip->shutdown) err =usb_autopm_get_interface (chip->pm_intf);up_read (&chip->shutdown_rwsem);
sound/usb/midi.c +2 -11
@@ -125,7 +125,6 @@ struct snd_usb_midi {struct snd_usb_midi_in_endpoint *in; } endpoints[MIDI_MAX_ENDPOINTS ];unsigned long input_triggered; -bool autopm_reference;unsigned int opened[2 ];unsigned char disconnected;unsigned char input_running;
@@ -1023,7 +1022,6 @@ static int substream_open(struct snd_rawmidi_substream *substream, int dir, {struct snd_usb_midi * umidi = substream->rmidi->private_data;struct snd_kcontrol *ctl; -int err;down_read (&umidi->disc_rwsem);if (umidi->disconnected) {
@@ -1034,13 +1032,6 @@ static int substream_open(struct snd_rawmidi_substream *substream, int dir,mutex_lock (&umidi->mutex);if (open) {if (!umidi->opened[0 ] && !umidi->opened[1 ]) { - err =usb_autopm_get_interface (umidi->iface); - umidi->autopm_reference = err >=0 ; -if (err <0 && err != -EACCES ) { -mutex_unlock (&umidi->mutex); -up_read (&umidi->disc_rwsem); -return -EIO ; - }if (umidi->roland_load_ctl) { ctl = umidi->roland_load_ctl; ctl->vd[0 ].access |=SNDRV_CTL_ELEM_ACCESS_INACTIVE ;
@@ -1063,8 +1054,6 @@ static int substream_open(struct snd_rawmidi_substream *substream, int dir,snd_ctl_notify (umidi->card,SNDRV_CTL_EVENT_MASK_INFO , &ctl->id); } -if (umidi->autopm_reference) -usb_autopm_put_interface (umidi->iface); } }mutex_unlock (&umidi->mutex);
@@ -2228,6 +2217,8 @@ int snd_usbmidi_create(struct snd_card *card,return err; } +usb_autopm_get_interface_no_resume (umidi->iface); +list_add_tail (&umidi->list, midi_list);return 0 ; }