Linux 2.6.36.1
Subsystems (33)
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 36 -EXTRAVERSION = +EXTRAVERSION = .1 NAME = Flesh-Eating Bats with Fangs # *DOCUMENTATION*
arch/arm/include/asm/kgdb.h +3 -2
@@ -70,7 +70,8 @@ extern int kgdb_fault_expected;#define _GP_REGS 16#define _FP_REGS 8#define _EXTRA_REGS 2 -#define DBG_MAX_REG_NUM (_GP_REGS + (_FP_REGS * 3) + _EXTRA_REGS) +#define GDB_MAX_REGS (_GP_REGS + (_FP_REGS * 3) + _EXTRA_REGS) +#define DBG_MAX_REG_NUM (_GP_REGS + _FP_REGS + _EXTRA_REGS)#define KGDB_MAX_NO_CPUS 1#define BUFMAX 400
@@ -93,7 +94,7 @@ extern int kgdb_fault_expected;#define _SPT 13#define _LR 14#define _PC 15 -#define _CPSR (DBG_MAX_REG_NUM - 1) +#define _CPSR (GDB_MAX_REGS - 1)/* * So that we can denote the end of a frame for tracing,
arch/arm/kernel/kgdb.c +1 -1
@@ -79,7 +79,7 @@ sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task)return ;/* Initialize to zero */ -for (regno =0 ; regno <DBG_MAX_REG_NUM ; regno++) +for (regno =0 ; regno <GDB_MAX_REGS ; regno++) gdb_regs[regno] =0 ;/* Otherwise, we have only some registers from switch_to() */
arch/arm/mach-cns3xxx/include/mach/debug-macro.S +1 -1
@@ -10,7 +10,7 @@ * published by the Free Software Foundation. */ - .macro addruart,rx + .macro addruart,rx,rtmp mrc p15, 0, \rx, c1, c0 tst \rx, #1 @ MMU enabled? moveq \rx, #0x10000000
arch/powerpc/kernel/ppc970-pmu.c +2 -0
@@ -169,9 +169,11 @@ static int p970_marked_instr_event(u64 event)switch (unit) {case PM_VPU : mask =0x4c ;/* byte 0 bits 2,3,6 */ +break ;case PM_LSU0 :/* byte 2 bits 0,2,3,4,6; all of byte 1 */ mask =0x085dff00 ; +break ;case PM_LSU1L : mask =0x50 <<24 ;/* byte 3 bits 4,6 */ break ;
arch/x86/include/asm/cpufeature.h +1 -1
@@ -152,7 +152,7 @@#define X86_FEATURE_3DNOWPREFETCH (6*32+ 8)/* 3DNow prefetch instructions */ #define X86_FEATURE_OSVW (6*32+ 9)/* OS Visible Workaround */ #define X86_FEATURE_IBS (6*32+10)/* Instruction Based Sampling */ -#define X86_FEATURE_SSE5 (6*32+11)/* SSE-5 */ +#define X86_FEATURE_XOP (6*32+11)/* extended AVX instructions */ #define X86_FEATURE_SKINIT (6*32+12)/* SKINIT/STGI instructions */ #define X86_FEATURE_WDT (6*32+13)/* Watchdog timer */ #define X86_FEATURE_NODEID_MSR (6*32+19)/* NodeId MSR */
arch/x86/include/asm/io.h +1 -0
@@ -206,6 +206,7 @@ static inline void __iomem *ioremap(resource_size_t offset, unsigned long size)extern void iounmap (volatile void __iomem *addr); +extern void set_iounmap_nonlazy (void );#ifdef __KERNEL__
arch/x86/include/asm/mrst.h +1 -1
@@ -26,7 +26,7 @@ enum mrst_cpu_type { };extern enum mrst_cpu_type __mrst_cpu_chip; -static enum mrst_cpu_type mrst_identify_cpu (void ) +static inline enum mrst_cpu_type mrst_identify_cpu (void ) {return __mrst_cpu_chip; }
arch/x86/include/asm/smp.h +7 -2
@@ -50,7 +50,7 @@ struct smp_ops {void (*smp_prepare_cpus)(unsigned max_cpus);void (*smp_cpus_done)(unsigned max_cpus); -void (*smp_send_stop)(void ); +void (*stop_other_cpus)(int wait);void (*smp_send_reschedule)(int cpu);int (*cpu_up)(unsigned cpu);
@@ -73,7 +73,12 @@ extern struct smp_ops smp_ops;static inline void smp_send_stop (void ) { - smp_ops.smp_send_stop (); + smp_ops.stop_other_cpus (0 ); +} + +static inline void stop_other_cpus (void ) +{ + smp_ops.stop_other_cpus (1 ); }static inline void smp_prepare_boot_cpu (void )
arch/x86/kernel/apic/io_apic.c +2 -0
@@ -1397,6 +1397,7 @@ int setup_ioapic_entry(int apic_id, int irq, irte.dlvry_mode = apic->irq_delivery_mode; irte.vector = vector; irte.dest_id =IRTE_DEST (destination); + irte.redir_hint =1 ;/* Set source-id of interrupt request */ set_ioapic_sid (&irte, apic_id);
@@ -3348,6 +3349,7 @@ static int msi_compose_msg(struct pci_dev *pdev, unsigned int irq, irte.dlvry_mode = apic->irq_delivery_mode; irte.vector = cfg->vector; irte.dest_id =IRTE_DEST (dest); + irte.redir_hint =1 ;/* Set source-id of interrupt request */ if (pdev)
arch/x86/kernel/cpu/mtrr/cleanup.c +1 -1
@@ -827,7 +827,7 @@ int __init amd_special_default_mtrr(void)if (boot_cpu_data.x86_vendor !=X86_VENDOR_AMD )return 0 ; -if (boot_cpu_data.x86 <0xf || boot_cpu_data.x86 >0x11 ) +if (boot_cpu_data.x86 <0xf )return 0 ;/* In case some hypervisor doesn't pass SYSCFG through: */ if (rdmsr_safe (MSR_K8_SYSCFG , &l, &h) <0 )
arch/x86/kernel/cpu/perf_event_amd.c +2 -2
@@ -52,7 +52,7 @@ static __initconst const u64 amd_hw_cache_event_ids [ C(DTLB) ] = { [ C(OP_READ) ] = { [ C(RESULT_ACCESS) ] = 0x0040, /* Data Cache Accesses */ - [ C(RESULT_MISS) ] = 0x0046, /* L1 DTLB and L2 DLTB Miss */ + [ C(RESULT_MISS) ] = 0x0746, /* L1_DTLB_AND_L2_DLTB_MISS.ALL */ }, [ C(OP_WRITE) ] = { [ C(RESULT_ACCESS) ] = 0,
@@ -66,7 +66,7 @@ static __initconst const u64 amd_hw_cache_event_ids [ C(ITLB) ] = { [ C(OP_READ) ] = { [ C(RESULT_ACCESS) ] = 0x0080, /* Instruction fecthes */ - [ C(RESULT_MISS) ] = 0x0085, /* Instr. fetch ITLB misses */ + [ C(RESULT_MISS) ] = 0x0385, /* L1_ITLB_AND_L2_ITLB_MISS.ALL */ }, [ C(OP_WRITE) ] = { [ C(RESULT_ACCESS) ] = -1,
arch/x86/kernel/crash_dump_64.c +2 -1
@@ -34,7 +34,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,if (!csize)return 0 ; - vaddr =ioremap (pfn <<PAGE_SHIFT ,PAGE_SIZE ); + vaddr =ioremap_cache (pfn <<PAGE_SHIFT ,PAGE_SIZE );if (!vaddr)return -ENOMEM ;
@@ -46,6 +46,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, }else memcpy (buf, vaddr + offset, csize); +set_iounmap_nonlazy ();iounmap (vaddr);return csize; }
arch/x86/kernel/olpc.c +4 -1
@@ -114,6 +114,7 @@ int olpc_ec_cmd(unsigned char cmd, unsigned char *inbuf, size_t inlen,unsigned long flags;int ret = -EIO ;int i; +int restarts =0 ;spin_lock_irqsave (&ec_lock, flags);
@@ -169,7 +170,9 @@ restart:if (wait_on_obf (0x6c ,1 )) {printk (KERN_ERR "olpc-ec: timeout waiting for" " EC to provide data!\n" ); - goto restart; +if (restarts++ <10 ) + goto restart; + goto err; } outbuf[i] =inb (0x68 );pr_devel ("olpc-ec: received 0x%x\n" , outbuf[i]);
arch/x86/kernel/reboot.c +1 -1
@@ -641,7 +641,7 @@ void native_machine_shutdown(void)/* O.K Now that I'm on the appropriate processor, * stop all of the others. */ -smp_send_stop (); +stop_other_cpus ();#endif lapic_shutdown ();
arch/x86/kernel/smp.c +9 -6
@@ -159,10 +159,10 @@ asmlinkage void smp_reboot_interrupt(void)irq_exit (); } -static void native_smp_send_stop (void ) +static void native_stop_other_cpus (int wait) {unsigned long flags; -unsigned long wait; +unsigned long timeout;if (reboot_force)return ;
@@ -179,9 +179,12 @@ static void native_smp_send_stop(void)if (num_online_cpus () >1 ) { apic->send_IPI_allbutself (REBOOT_VECTOR ); -/* Don't wait longer than a second */ - wait =USEC_PER_SEC ; -while (num_online_cpus () >1 && wait--) +/* +* Don't wait longer than a second if the caller +* didn't ask us to wait. +*/ + timeout =USEC_PER_SEC ; +while (num_online_cpus () >1 && (wait || timeout--))udelay (1 ); }
@@ -227,7 +230,7 @@ struct smp_ops smp_ops = { .smp_prepare_cpus = native_smp_prepare_cpus, .smp_cpus_done = native_smp_cpus_done, - .smp_send_stop = native_smp_send_stop, + .stop_other_cpus = native_stop_other_cpus, .smp_send_reschedule = native_smp_send_reschedule, .cpu_up = native_cpu_up,
arch/x86/kernel/traps.c +1 -0
@@ -575,6 +575,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)if (regs->flags &X86_VM_MASK ) {handle_vm86_trap ((struct kernel_vm86_regs *) regs, error_code,1 ); +preempt_conditional_cli (regs);return ; }
arch/x86/kernel/vm86_32.c +8 -2
@@ -551,8 +551,14 @@ cannot_handle:int handle_vm86_trap (struct kernel_vm86_regs *regs,long error_code,int trapno) {if (VMPI .is_vm86pus) { -if ((trapno ==3 ) || (trapno ==1 )) -return_to_32bit (regs,VM86_TRAP + (trapno <<8 )); +if ((trapno ==3 ) || (trapno ==1 )) { +KVM86 ->regs32->ax =VM86_TRAP + (trapno <<8 ); +/* setting this flag forces the code in entry_32.S to +call save_v86_state() and change the stack pointer +to KVM86->regs32 */ +set_thread_flag (TIF_IRET ); +return 0 ; + }do_int (regs, trapno, (unsigned char __user *) (regs->pt.ss <<4 ),SP (regs));return 0 ; }
arch/x86/kvm/svm.c +35 -2
@@ -88,6 +88,14 @@ struct nested_state {/* A VMEXIT is required but not yet emulated */ bool exit_required; +/* +* If we vmexit during an instruction emulation we need this to restore +* the l1 guest rip after the emulation +*/ +unsigned long vmexit_rip; +unsigned long vmexit_rsp; +unsigned long vmexit_rax; +/* cache for intercepts of the guest */ u16 intercept_cr_read;u16 intercept_cr_write;
@@ -1206,8 +1214,12 @@ static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)if (old == new) {/* cr0 write with ts and mp unchanged */ svm->vmcb->control.exit_code =SVM_EXIT_CR0_SEL_WRITE ; -if (nested_svm_exit_handled (svm) ==NESTED_EXIT_DONE ) +if (nested_svm_exit_handled (svm) ==NESTED_EXIT_DONE ) { + svm->nested.vmexit_rip =kvm_rip_read (vcpu); + svm->nested.vmexit_rsp =kvm_register_read (vcpu,VCPU_REGS_RSP ); + svm->nested.vmexit_rax =kvm_register_read (vcpu,VCPU_REGS_RAX );return ; + } } }
@@ -2399,6 +2411,23 @@ static int emulate_on_interception(struct vcpu_svm *svm)return emulate_instruction (&svm->vcpu,0 ,0 ,0 ) ==EMULATE_DONE ; } +static int cr0_write_interception (struct vcpu_svm *svm) +{ +struct kvm_vcpu *vcpu = &svm->vcpu; +int r; + + r =emulate_instruction (&svm->vcpu,0 ,0 ,0 ); + +if (svm->nested.vmexit_rip) { +kvm_register_write (vcpu,VCPU_REGS_RIP , svm->nested.vmexit_rip); +kvm_register_write (vcpu,VCPU_REGS_RSP , svm->nested.vmexit_rsp); +kvm_register_write (vcpu,VCPU_REGS_RAX , svm->nested.vmexit_rax); + svm->nested.vmexit_rip =0 ; + } + +return r ==EMULATE_DONE ; +} +static int cr8_write_interception (struct vcpu_svm *svm) {struct kvm_run *kvm_run = svm->vcpu.run;
@@ -2672,7 +2701,7 @@ static int (*svm_exit_handlers[])(struct vcpu_svm *svm) = { [SVM_EXIT_READ_CR4] = emulate_on_interception, [SVM_EXIT_READ_CR8] = emulate_on_interception, [SVM_EXIT_CR0_SEL_WRITE] = emulate_on_interception, - [SVM_EXIT_WRITE_CR0] = emulate_on_interception, + [SVM_EXIT_WRITE_CR0] = cr0_write_interception, [SVM_EXIT_WRITE_CR3] = emulate_on_interception, [SVM_EXIT_WRITE_CR4] = emulate_on_interception, [SVM_EXIT_WRITE_CR8] = cr8_write_interception,
@@ -3354,6 +3383,10 @@ static void svm_cpuid_update(struct kvm_vcpu *vcpu)static void svm_set_supported_cpuid (u32 func,struct kvm_cpuid_entry2 *entry) {switch (func) { +case 0x80000001 : +if (nested) + entry->ecx |= (1 <<2 );/* Set SVM bit */ +break ;case 0x8000000A : entry->eax =1 ;/* SVM revision 1 */ entry->ebx =8 ;/* Lets support 8 ASIDs in case we add proper
arch/x86/kvm/x86.c +2 -2
@@ -1994,9 +1994,9 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,0 /* Reserved, AES */ |F (XSAVE ) |0 /* OSXSAVE */ |F (AVX );/* cpuid 0x80000001.ecx */ const u32 kvm_supported_word6_x86_features = -F (LAHF_LM ) |F (CMP_LEGACY ) |F (SVM ) |0 /* ExtApicSpace */ | +F (LAHF_LM ) |F (CMP_LEGACY ) |0 /*SVM*/ |0 /* ExtApicSpace */ |F (CR8_LEGACY ) |F (ABM ) |F (SSE4A ) |F (MISALIGNSSE ) | - F(3DNOWPREFETCH) | 0 /* OSVW */ | 0 /* IBS */ | F(SSE5) | + F(3DNOWPREFETCH) | 0 /* OSVW */ | 0 /* IBS */ | F(XOP) |0 /* SKINIT */ |0 /* WDT */ ;/* all calls to cpuid_count() should be made on the same cpu */
arch/x86/xen/enlighten.c +1 -1
@@ -1018,7 +1018,7 @@ static void xen_reboot(int reason)struct sched_shutdown r = { .reason = reason };#ifdef CONFIG_SMP -smp_send_stop (); +stop_other_cpus ();#endif if (HYPERVISOR_sched_op (SCHEDOP_shutdown, &r))
arch/x86/xen/smp.c +3 -3
@@ -400,9 +400,9 @@ static void stop_self(void *v)BUG (); } -static void xen_smp_send_stop (void ) +static void xen_stop_other_cpus (int wait) { -smp_call_function (stop_self,NULL ,0 ); +smp_call_function (stop_self,NULL , wait); }static void xen_smp_send_reschedule (int cpu)
@@ -470,7 +470,7 @@ static const struct smp_ops xen_smp_ops __initdata = { .cpu_disable = xen_cpu_disable, .play_dead = xen_play_dead, - .smp_send_stop = xen_smp_send_stop, + .stop_other_cpus = xen_stop_other_cpus, .smp_send_reschedule = xen_smp_send_reschedule, .send_call_func_ipi = xen_smp_send_call_function_ipi,
drivers/ata/ahci.h +1 -0
@@ -72,6 +72,7 @@ enum {AHCI_CMD_RESET = (1 <<8 ),AHCI_CMD_CLR_BUSY = (1 <<10 ), +RX_FIS_PIO_SETUP =0x20 ,/* offset of PIO Setup FIS data */ RX_FIS_D2H_REG =0x40 ,/* offset of D2H Register FIS data */ RX_FIS_SDB =0x58 ,/* offset of SDB FIS data */ RX_FIS_UNK = 0x60, /* offset of Unknown FIS data */
drivers/ata/libahci.c +15 -3
@@ -1830,12 +1830,24 @@ static unsigned int ahci_qc_issue(struct ata_queued_cmd *qc)static bool ahci_qc_fill_rtf (struct ata_queued_cmd *qc) {struct ahci_port_priv *pp = qc->ap->private_data; -u8 *d2h_fis = pp->rx_fis +RX_FIS_D2H_REG ; +u8 *rx_fis = pp->rx_fis;if (pp->fbs_enabled) - d2h_fis += qc->dev->link->pmp *AHCI_RX_FIS_SZ ; + rx_fis += qc->dev->link->pmp *AHCI_RX_FIS_SZ ; + +/* +* After a successful execution of an ATA PIO data-in command, +* the device doesn't send D2H Reg FIS to update the TF and +* the host should take TF and E_Status from the preceding PIO +* Setup FIS. +*/ +if (qc->tf.protocol ==ATA_PROT_PIO && qc->dma_dir ==DMA_FROM_DEVICE && + !(qc->flags &ATA_QCFLAG_FAILED )) { +ata_tf_from_fis (rx_fis +RX_FIS_PIO_SETUP , &qc->result_tf); + qc->result_tf.command = (rx_fis +RX_FIS_PIO_SETUP )[15 ]; + }else +ata_tf_from_fis (rx_fis +RX_FIS_D2H_REG , &qc->result_tf); -ata_tf_from_fis (d2h_fis, &qc->result_tf);return true; }
drivers/bluetooth/hci_ldisc.c +7 -0
@@ -256,9 +256,16 @@ static int hci_uart_tty_open(struct tty_struct *tty)BT_DBG ("tty %p" , tty); +/* FIXME: This btw is bogus, nothing requires the old ldisc to clear +the pointer */ if (hu)return -EEXIST ; +/* Error if the tty has no write op instead of leaving an exploitable +hole */ +if (tty->ops->write ==NULL ) +return -EOPNOTSUPP ; +if (!(hu =kzalloc (sizeof (struct hci_uart ),GFP_KERNEL ))) {BT_ERR ("Can't allocate control structure" );return -ENFILE ;
drivers/char/pcmcia/synclink_cs.c +2 -0
@@ -4127,6 +4127,8 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)if (cmd !=SIOCWANDEV )return hdlc_ioctl (dev, ifr, cmd); +memset (&new_line,0 , size); +switch (ifr->ifr_settings.type) {case IF_GET_IFACE :/* return current sync_serial_settings */
drivers/idle/intel_idle.c +1 -1
@@ -276,7 +276,7 @@ static int intel_idle_probe(void)case 0x1C :/* 28 - Atom Processor */ case 0x26 :/* 38 - Lincroft Atom Processor */ - lapic_timer_reliable_states = (1 <<2 ) | (1 <<1 );/* C2, C1 */ + lapic_timer_reliable_states = (1 <<1 );/* C1 */ cpuidle_state_table = atom_cstates;break ;#ifdef FUTURE_USE
drivers/misc/sgi-xp/xpc_uv.c +17 -0
@@ -417,6 +417,7 @@ xpc_process_activate_IRQ_rcvd_uv(void)static void xpc_handle_activate_mq_msg_uv (struct xpc_partition *part,struct xpc_activate_mq_msghdr_uv *msg_hdr, +int part_setup,int *wakeup_hb_checker) {unsigned long irq_flags;
@@ -481,6 +482,9 @@ xpc_handle_activate_mq_msg_uv(struct xpc_partition *part,case XPC_ACTIVATE_MQ_MSG_CHCTL_CLOSEREQUEST_UV : {struct xpc_activate_mq_msg_chctl_closerequest_uv *msg; +if (!part_setup) +break ; + msg = container_of(msg_hdr, struct xpc_activate_mq_msg_chctl_closerequest_uv, hdr);
@@ -497,6 +501,9 @@ xpc_handle_activate_mq_msg_uv(struct xpc_partition *part,case XPC_ACTIVATE_MQ_MSG_CHCTL_CLOSEREPLY_UV : {struct xpc_activate_mq_msg_chctl_closereply_uv *msg; +if (!part_setup) +break ; + msg = container_of(msg_hdr, struct xpc_activate_mq_msg_chctl_closereply_uv, hdr);
@@ -511,6 +518,9 @@ xpc_handle_activate_mq_msg_uv(struct xpc_partition *part,case XPC_ACTIVATE_MQ_MSG_CHCTL_OPENREQUEST_UV : {struct xpc_activate_mq_msg_chctl_openrequest_uv *msg; +if (!part_setup) +break ; + msg = container_of(msg_hdr, struct xpc_activate_mq_msg_chctl_openrequest_uv, hdr);
@@ -528,6 +538,9 @@ xpc_handle_activate_mq_msg_uv(struct xpc_partition *part,case XPC_ACTIVATE_MQ_MSG_CHCTL_OPENREPLY_UV : {struct xpc_activate_mq_msg_chctl_openreply_uv *msg; +if (!part_setup) +break ; + msg = container_of(msg_hdr, struct xpc_activate_mq_msg_chctl_openreply_uv, hdr); args = &part->remote_openclose_args[msg->ch_number];
@@ -545,6 +558,9 @@ xpc_handle_activate_mq_msg_uv(struct xpc_partition *part,case XPC_ACTIVATE_MQ_MSG_CHCTL_OPENCOMPLETE_UV : {struct xpc_activate_mq_msg_chctl_opencomplete_uv *msg; +if (!part_setup) +break ; + msg = container_of(msg_hdr, struct xpc_activate_mq_msg_chctl_opencomplete_uv, hdr);spin_lock_irqsave (&part->chctl_lock, irq_flags);
@@ -621,6 +637,7 @@ xpc_handle_activate_IRQ_uv(int irq, void *dev_id) part_referenced =xpc_part_ref (part);xpc_handle_activate_mq_msg_uv (part, msg_hdr, + part_referenced, &wakeup_hb_checker);if (part_referenced)xpc_part_deref (part);
drivers/net/wireless/p54/eeprom.c +3 -1
@@ -260,8 +260,10 @@ static int p54_generate_channel_lists(struct ieee80211_hw *dev) list->max_entries = max_channel_num; list->channels =kzalloc (sizeof (struct p54_channel_entry ) * max_channel_num,GFP_KERNEL ); -if (!list->channels) +if (!list->channels) { + ret = -ENOMEM ; goto free; + }for (i =0 ; i < max_channel_num; i++) {if (i < priv->iq_autocal_len) {
drivers/net/wireless/p54/p54usb.c +14 -1
@@ -33,8 +33,17 @@ MODULE_ALIAS("prism54usb");MODULE_FIRMWARE ("isl3886usb" );MODULE_FIRMWARE ("isl3887usb" ); +/* +* Note: +* +* Always update our wiki's device list (located at: +* http://wireless.kernel.org/en/users/Drivers/p54/devices ), +* whenever you add a new device. +*/ +static struct usb_device_id p54u_table[]__devinitdata = {/* Version 1 devices (pci chip + net2280) */ + {USB_DEVICE (0x045e ,0x00c2 )},/* Microsoft MN-710 */ {USB_DEVICE (0x0506 ,0x0a11 )},/* 3COM 3CRWE254G72 */ {USB_DEVICE (0x06b9 ,0x0120 )},/* Thomson SpeedTouch 120g */ {USB_DEVICE (0x0707 ,0xee06 )},/* SMC 2862W-G */
@@ -47,7 +56,9 @@ static struct usb_device_id p54u_table[] __devinitdata = { {USB_DEVICE(0x0846, 0x4220)}, /* Netgear WG111 */ {USB_DEVICE(0x09aa, 0x1000)}, /* Spinnaker Proto board */ {USB_DEVICE(0x0cde, 0x0006)}, /* Medion 40900, Roper Europe */ + {USB_DEVICE(0x107b, 0x55f2)}, /* Gateway WGU-210 (Gemtek) */ {USB_DEVICE(0x124a, 0x4023)}, /* Shuttle PN15, Airvast WM168g, IOGear GWU513 */ + {USB_DEVICE(0x1630, 0x0005)}, /* 2Wire 802.11g USB (v1) / Z-Com */ {USB_DEVICE(0x1915, 0x2234)}, /* Linksys WUSB54G OEM */ {USB_DEVICE(0x1915, 0x2235)}, /* Linksys WUSB54G Portable OEM */ {USB_DEVICE(0x2001, 0x3701)}, /* DLink DWL-G120 Spinnaker */
@@ -60,6 +71,7 @@ static struct usb_device_id p54u_table[] __devinitdata = { {USB_DEVICE(0x050d, 0x7050)}, /* Belkin F5D7050 ver 1000 */ {USB_DEVICE(0x0572, 0x2000)}, /* Cohiba Proto board */ {USB_DEVICE(0x0572, 0x2002)}, /* Cohiba Proto board */ + {USB_DEVICE(0x06a9, 0x000e)}, /* Westell 802.11g USB (A90-211WG-01) */ {USB_DEVICE(0x06b9, 0x0121)}, /* Thomson SpeedTouch 121g */ {USB_DEVICE(0x0707, 0xee13)}, /* SMC 2862W-G version 2 */ {USB_DEVICE(0x083a, 0x4521)}, /* Siemens Gigaset USB Adapter 54 version 2 */
@@ -80,6 +92,7 @@ static struct usb_device_id p54u_table[] __devinitdata = { {USB_DEVICE(0x13B1, 0x000C)}, /* Linksys WUSB54AG */ {USB_DEVICE(0x1413, 0x5400)}, /* Telsey 802.11g USB2.0 Adapter */ {USB_DEVICE(0x1435, 0x0427)}, /* Inventel UR054G */ + {USB_DEVICE(0x1668, 0x1050)}, /* Actiontec 802UIG-1 */ {USB_DEVICE(0x2001, 0x3704)}, /* DLink DWL-G122 rev A2 */ {USB_DEVICE(0x413c, 0x5513)}, /* Dell WLA3310 USB Wireless Adapter */ {USB_DEVICE(0x413c, 0x8102)}, /* Spinnaker DUT */
@@ -930,8 +943,8 @@ static int __devinit p54u_probe(struct usb_interface *intf,#ifdef CONFIG_PM /* ISL3887 needs a full reset on resume */ udev->reset_resume =1 ; +#endif /* CONFIG_PM */ err =p54u_device_reset (dev); -#endif priv->hw_type =P54U_3887 ; dev->extra_tx_headroom +=sizeof (struct lm87_tx_hdr );
drivers/platform/x86/asus-laptop.c +3 -3
@@ -1065,9 +1065,9 @@ static ssize_t store_gps(struct device *dev, struct device_attribute *attr,*/ static int asus_gps_rfkill_set (void *data,bool blocked) { -acpi_handle handle = data; +struct asus_laptop *asus = data; -return asus_gps_switch (handle, !blocked); +return asus_gps_switch (asus, !blocked); }static const struct rfkill_ops asus_gps_rfkill_ops = {
@@ -1094,7 +1094,7 @@ static int asus_rfkill_init(struct asus_laptop *asus) asus->gps_rfkill =rfkill_alloc ("asus-gps" , &asus->platform_device->dev,RFKILL_TYPE_GPS , - &asus_gps_rfkill_ops,NULL ); + &asus_gps_rfkill_ops, asus);if (!asus->gps_rfkill)return -EINVAL ;
drivers/scsi/gdth.c +8 -0
@@ -4175,6 +4175,14 @@ static int ioc_general(void __user *arg, char *cmnd) ha =gdth_find_ha (gen.ionode);if (!ha)return -EFAULT ; + +if (gen.data_len >INT_MAX ) +return -EINVAL ; +if (gen.sense_len >INT_MAX ) +return -EINVAL ; +if (gen.data_len + gen.sense_len >INT_MAX ) +return -EINVAL ; +if (gen.data_len + gen.sense_len !=0 ) {if (!(buf =gdth_ioctl_alloc (ha, gen.data_len + gen.sense_len, FALSE, &paddr)))
drivers/scsi/libsas/sas_ata.c +1 -0
@@ -347,6 +347,7 @@ static int sas_ata_scr_read(struct ata_link *link, unsigned int sc_reg_in,static struct ata_port_operations sas_sata_ops = { .phy_reset = sas_ata_phy_reset, .post_internal_cmd = sas_ata_post_internal, + .qc_defer = ata_std_qc_defer, .qc_prep = ata_noop_qc_prep, .qc_issue = sas_ata_qc_issue, .qc_fill_rtf = sas_ata_qc_fill_rtf,
drivers/scsi/pmcraid.h +0 -1
@@ -568,7 +568,6 @@ struct pmcraid_cmd {struct pmcraid_control_block *ioa_cb;dma_addr_t ioa_cb_bus_addr;dma_addr_t dma_handle; -u8 *sense_buffer;/* pointer to mid layer structure of SCSI commands */ struct scsi_cmnd *scsi_cmd;
drivers/scsi/qla4xxx/ql4_nx.c +1 -0
@@ -5,6 +5,7 @@* See LICENSE.qla4xxx for copyright and licensing details. */ #include <linux/delay.h> +#include <linux/io.h> #include <linux/pci.h> #include "ql4_def.h" #include "ql4_glbl.h"
drivers/scsi/scsi_lib.c +2 -1
@@ -2428,7 +2428,8 @@ scsi_internal_device_unblock(struct scsi_device *sdev) sdev->sdev_state =SDEV_RUNNING ; else if (sdev->sdev_state == SDEV_CREATED_BLOCK) sdev->sdev_state = SDEV_CREATED; - else + else if (sdev->sdev_state != SDEV_CANCEL && + sdev->sdev_state != SDEV_OFFLINE) return -EINVAL;spin_lock_irqsave (q->queue_lock, flags);
drivers/scsi/scsi_sysfs.c +2 -1
@@ -962,10 +962,11 @@ static void __scsi_remove_target(struct scsi_target *starget)list_for_each_entry (sdev, &shost->__devices, siblings) {if (sdev->channel != starget->channel || sdev->id != starget->id || - sdev->sdev_state ==SDEV_DEL ) +scsi_device_get (sdev))continue ;spin_unlock_irqrestore (shost->host_lock, flags);scsi_remove_device (sdev); +scsi_device_put (sdev);spin_lock_irqsave (shost->host_lock, flags); goto restart; }
drivers/scsi/sd.c +10 -5
@@ -2252,11 +2252,10 @@ static void sd_probe_async(void *data, async_cookie_t cookie) index = sdkp->index; dev = &sdp->sdev_gendev; -if (index <SD_MAX_DISKS ) { - gd->major =sd_major ((index &0xf0 ) >>4 ); - gd->first_minor = ((index &0xf ) <<4 ) | (index &0xfff00 ); - gd->minors =SD_MINORS ; - } + gd->major =sd_major ((index &0xf0 ) >>4 ); + gd->first_minor = ((index &0xf ) <<4 ) | (index &0xfff00 ); + gd->minors =SD_MINORS ; + gd->fops = &sd_fops; gd->private_data = &sdkp->driver; gd->queue = sdkp->device->request_queue;
@@ -2346,6 +2345,12 @@ static int sd_probe(struct device *dev)if (error) goto out_put; +if (index >=SD_MAX_DISKS ) { + error = -ENODEV ; +sdev_printk (KERN_WARNING , sdp,"SCSI disk (sd) name space exhausted.\n" ); + goto out_free_index; + } + error =sd_format_disk_name ("sd" , index, gd->disk_name,DISK_NAME_LEN );if (error) goto out_free_index;
drivers/staging/phison/phison.c +1 -1
@@ -62,7 +62,7 @@ static int phison_init_one(struct pci_dev *pdev, const struct pci_device_id *id) };const struct ata_port_info *ppi[] = { &info,NULL }; - ret =ata_pci_sff_init_one (pdev, ppi, &phison_sht,NULL ,0 ); + ret =ata_pci_bmdma_init_one (pdev, ppi, &phison_sht,NULL ,0 );dev_dbg (&pdev->dev,"phison_init_one(), ret = %x\n" , ret);
drivers/staging/usbip/usbip_event.c +3 -13
@@ -38,21 +38,13 @@ static int event_handler(struct usbip_device *ud) ud->eh_ops.shutdown (ud); ud->event &= ~USBIP_EH_SHUTDOWN ; - -break ; } -/* Stop the error handler. */ -if (ud->event &USBIP_EH_BYE ) -return -1 ; -/* Reset the device. */ if (ud->event &USBIP_EH_RESET ) { ud->eh_ops.reset (ud); ud->event &= ~USBIP_EH_RESET ; - -break ; }/* Mark the device as unusable. */
@@ -60,13 +52,11 @@ static int event_handler(struct usbip_device *ud) ud->eh_ops.unusable (ud); ud->event &= ~USBIP_EH_UNUSABLE ; - -break ; } -/* NOTREACHED */ -printk (KERN_ERR "%s: unknown event\n" , __func__); -return -1 ; +/* Stop the error handler. */ +if (ud->event &USBIP_EH_BYE ) +return -1 ; }return 0 ;
drivers/staging/usbip/vhci_hcd.c +2 -0
@@ -164,6 +164,8 @@ void rh_port_disconnect(int rhport)* spin_unlock(&vdev->ud.lock); */ spin_unlock_irqrestore (&the_controller->lock, flags); + +usb_hcd_poll_rh_status (vhci_to_hcd (the_controller)); }
drivers/usb/core/hub.c +6 -3
@@ -2860,13 +2860,16 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,else i = udev->descriptor.bMaxPacketSize0;if (le16_to_cpu (udev->ep0.desc.wMaxPacketSize) != i) { -if (udev->speed !=USB_SPEED_FULL || +if (udev->speed ==USB_SPEED_LOW || !(i ==8 || i ==16 || i ==32 || i ==64 )) { -dev_err (&udev->dev,"ep0 maxpacket = %d\n" , i); +dev_err (&udev->dev,"Invalid ep0 maxpacket: %d\n" , i); retval = -EMSGSIZE ; goto fail; } -dev_dbg (&udev->dev,"ep0 maxpacket = %d\n" , i); +if (udev->speed ==USB_SPEED_FULL ) +dev_dbg (&udev->dev,"ep0 maxpacket = %d\n" , i); +else +dev_warn (&udev->dev,"Using ep0 maxpacket: %d\n" , i); udev->ep0.desc.wMaxPacketSize =cpu_to_le16 (i);usb_ep0_reinit (udev); }
drivers/usb/core/message.c +7 -7
@@ -1140,13 +1140,6 @@ void usb_disable_device(struct usb_device *dev, int skip_ep0) {int i; -dev_dbg (&dev->dev,"%s nuking %s URBs\n" , __func__, - skip_ep0 ?"non-ep0" :"all" ); -for (i = skip_ep0; i <16 ; ++i) { -usb_disable_endpoint (dev, i, true); -usb_disable_endpoint (dev, i +USB_DIR_IN , true); - } -/* getting rid of interfaces will disconnect * any drivers bound to them (a key side effect) */
@@ -1176,6 +1169,13 @@ void usb_disable_device(struct usb_device *dev, int skip_ep0)if (dev->state ==USB_STATE_CONFIGURED )usb_set_device_state (dev,USB_STATE_ADDRESS ); } + +dev_dbg (&dev->dev,"%s nuking %s URBs\n" , __func__, + skip_ep0 ?"non-ep0" :"all" ); +for (i = skip_ep0; i <16 ; ++i) { +usb_disable_endpoint (dev, i, true); +usb_disable_endpoint (dev, i +USB_DIR_IN , true); + } }/**
drivers/usb/gadget/atmel_usba_udc.c +3 -0
@@ -2014,6 +2014,9 @@ static int __init usba_udc_probe(struct platform_device *pdev) }else {disable_irq (gpio_to_irq (udc->vbus_pin)); } + }else { +/* gpio_request fail so use -EINVAL for gpio_is_valid */ + ubc->vbus_pin = -EINVAL ; } }
drivers/usb/gadget/composite.c +2 -1
@@ -901,7 +901,8 @@ unknown:*/ switch (ctrl->bRequestType &USB_RECIP_MASK ) {case USB_RECIP_INTERFACE : - f = cdev->config->interface[intf]; +if (cdev->config) + f = cdev->config->interface[intf];break ;case USB_RECIP_ENDPOINT :
drivers/usb/gadget/f_acm.c +1 -1
@@ -111,7 +111,7 @@ acm_iad_descriptor = { .bInterfaceCount = 2, // control + data .bFunctionClass = USB_CLASS_COMM, .bFunctionSubClass = USB_CDC_SUBCLASS_ACM, - .bFunctionProtocol = USB_CDC_PROTO_NONE, + .bFunctionProtocol = USB_CDC_ACM_PROTO_AT_V25TER,/* .iFunction = DYNAMIC */ };
drivers/usb/gadget/g_ffs.c +2 -2
@@ -53,8 +53,8 @@ MODULE_AUTHOR("Michal Nazarewicz");MODULE_LICENSE ("GPL" ); -static unsigned short gfs_vendor_id =0x0525 ;/* XXX NetChip */ -static unsigned short gfs_product_id =0xa4ac ;/* XXX */ +static unsigned short gfs_vendor_id =0x1d6b ;/* Linux Foundation */ +static unsigned short gfs_product_id =0x0105 ;/* FunctionFS Gadget */ static struct usb_device_descriptor gfs_dev_desc = { .bLength =sizeof gfs_dev_desc,
drivers/usb/gadget/multi.c +2 -2
@@ -74,8 +74,8 @@ MODULE_LICENSE("GPL");/***************************** Device Descriptor ****************************/ -#define MULTI_VENDOR_NUM 0x0525/* XXX NetChip */ -#define MULTI_PRODUCT_NUM 0xa4ab/* XXX */ +#define MULTI_VENDOR_NUM 0x1d6b/* Linux Foundation */ +#define MULTI_PRODUCT_NUM 0x0104/* Multifunction Composite Gadget */ enum {
drivers/usb/host/r8a66597.h +1 -1
@@ -227,7 +227,7 @@ static inline void r8a66597_write_fifo(struct r8a66597 *r8a66597,int odd = len &0x0001 ; len = len /2 ; -ioread16_rep (fifoaddr, buf, len); +iowrite16_rep (fifoaddr, buf, len);if (unlikely (odd)) { buf = &buf[len];iowrite8 ((unsigned char )*buf, fifoaddr);
drivers/usb/musb/blackfin.c +5 -2
@@ -342,8 +342,10 @@ int __init musb_platform_init(struct musb *musb, void *board_data)usb_nop_xceiv_register (); musb->xceiv =otg_get_transceiver (); -if (!musb->xceiv) +if (!musb->xceiv) { +gpio_free (musb->config->gpio_vrsel);return -ENODEV ; + }if (ANOMALY_05000346 ) {bfin_write_USB_APHY_CALIB (ANOMALY_05000346_value);
@@ -394,8 +396,9 @@ int __init musb_platform_init(struct musb *musb, void *board_data)int musb_platform_exit (struct musb *musb) { -gpio_free (musb->config->gpio_vrsel); +otg_put_transceiver (musb->xceiv); +usb_nop_xceiv_unregister ();return 0 ; }
drivers/usb/musb/davinci.c +2 -0
@@ -446,6 +446,7 @@ int __init musb_platform_init(struct musb *musb, void *board_data) fail:clk_disable (musb->clock); +otg_put_transceiver (musb->xceiv);usb_nop_xceiv_unregister ();return -ENODEV ; }
@@ -496,6 +497,7 @@ int musb_platform_exit(struct musb *musb)clk_disable (musb->clock); +otg_put_transceiver (musb->xceiv);usb_nop_xceiv_unregister ();return 0 ;
drivers/usb/musb/musb_core.c +0 -4
@@ -1921,10 +1921,6 @@ static void musb_free(struct musb *musb)dma_controller_destroy (c); } -#ifdef CONFIG_USB_MUSB_OTG -put_device (musb->xceiv->dev); -#endif -#ifdef CONFIG_USB_MUSB_HDRC_HCD usb_put_hcd (musb_to_hcd (musb));#else
drivers/usb/musb/omap2430.c +1 -0
@@ -320,5 +320,6 @@ int musb_platform_exit(struct musb *musb)musb_platform_suspend (musb); +otg_put_transceiver (musb->xceiv);return 0 ; }
drivers/usb/musb/tusb6010.c +4 -0
@@ -1152,6 +1152,8 @@ done:if (ret <0 ) {if (sync)iounmap (sync); + +otg_put_transceiver (musb->xceiv);usb_nop_xceiv_unregister (); }return ret;
@@ -1166,6 +1168,8 @@ int musb_platform_exit(struct musb *musb) musb->board_set_power (0 );iounmap (musb->sync_va); + +otg_put_transceiver (musb->xceiv);usb_nop_xceiv_unregister ();return 0 ; }
drivers/usb/serial/cp210x.c +2 -0
@@ -54,6 +54,7 @@ static int cp210x_carrier_raised(struct usb_serial_port *p);static int debug;static const struct usb_device_id id_table[] = { + {USB_DEVICE (0x045B ,0x0053 ) },/* Renesas RX610 RX-Stick */ {USB_DEVICE (0x0471 ,0x066A ) },/* AKTAKOM ACE-1001 cable */ {USB_DEVICE (0x0489 ,0xE000 ) },/* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */ {USB_DEVICE (0x0489 ,0xE003 ) },/* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */
@@ -132,6 +133,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x17F4, 0xAAAA) }, /* Wavesense Jazz blood glucose meter */ { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */ { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */ + { USB_DEVICE(0x1BE3, 0x07A6) }, /* WAGO 750-923 USB Service Cable */ { USB_DEVICE(0x413C, 0x9500) }, /* DW700 GPS USB interface */ { } /* Terminating Entry */ };
drivers/usb/serial/ftdi_sio.c +34 -5
@@ -177,6 +177,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_SNIFFER_PID) }, { 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(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) },
@@ -674,7 +675,6 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_RRCIRKITS_LOCOBUFFER_PID) }, { USB_DEVICE(FTDI_VID, FTDI_ASK_RDR400_PID) }, { USB_DEVICE(ICOM_ID1_VID, ICOM_ID1_PID) }, - { USB_DEVICE(PAPOUCH_VID, PAPOUCH_TMU_PID) }, { USB_DEVICE(FTDI_VID, FTDI_ACG_HFDUAL_PID) }, { USB_DEVICE(FTDI_VID, FTDI_YEI_SERVOCENTER31_PID) }, { USB_DEVICE(FTDI_VID, FTDI_THORLABS_PID) },
@@ -715,8 +715,37 @@ static struct usb_device_id id_table_combined [] = { .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(RATOC_VENDOR_ID, RATOC_PRODUCT_ID_USB60F) }, { USB_DEVICE(FTDI_VID, FTDI_REU_TINY_PID) }, + +/* Papouch devices based on FTDI chip */ + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_SB485_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_AP485_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_SB422_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_SB485_2_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_AP485_2_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_SB422_2_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_SB485S_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_SB485C_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_LEC_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_SB232_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_TMU_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_IRAMP_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_DRAK5_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO8x8_PID) }, { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO4x4_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO2x2_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO10x1_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO30x3_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO60x3_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO2x16_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_QUIDO3x32_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_DRAK6_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_UPSUSB_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_MU_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_SIMUKEY_PID) }, { USB_DEVICE(PAPOUCH_VID, PAPOUCH_AD4USB_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_GMUX_PID) }, + { USB_DEVICE(PAPOUCH_VID, PAPOUCH_GMSR_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_DOMINTELL_DGQG_PID) }, { USB_DEVICE(FTDI_VID, FTDI_DOMINTELL_DUSB_PID) }, { USB_DEVICE(ALTI2_VID, ALTI2_N3_PID) },
@@ -751,6 +780,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, XVERVE_SIGNALYZER_SH4_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(FTDI_VID, SEGWAY_RMP200_PID) }, + { USB_DEVICE(FTDI_VID, ACCESIO_COM4SM_PID) }, { USB_DEVICE(IONICS_VID, IONICS_PLUGCOMPUTER_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_24_MASTER_WING_PID) },
@@ -761,6 +791,9 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_MAXI_WING_PID) }, { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_MEDIA_WING_PID) }, { USB_DEVICE(FTDI_VID, FTDI_CHAMSYS_WING_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_SCIENCESCOPE_LOGBOOKML_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_SCIENCESCOPE_LS_LOGBOOK_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_SCIENCESCOPE_HS_LOGBOOK_PID) }, { }, /* Optional parameter entry */ { } /* Terminating entry */ };
@@ -2028,8 +2061,6 @@ static void ftdi_set_termios(struct tty_struct *tty, "urb failed to set to rts/cts flow control\n"); } -/* raise DTR/RTS */ -set_mctrl (port,TIOCM_DTR |TIOCM_RTS ); }else {/* * Xon/Xoff code
@@ -2077,8 +2108,6 @@ static void ftdi_set_termios(struct tty_struct *tty, } } -/* lower DTR/RTS */ -clear_mctrl (port,TIOCM_DTR |TIOCM_RTS ); }return ; }
drivers/usb/serial/ftdi_sio_ids.h +38 -1
@@ -61,6 +61,7 @@#define FTDI_OPENDCC_SNIFFER_PID 0xBFD9#define FTDI_OPENDCC_THROTTLE_PID 0xBFDA#define FTDI_OPENDCC_GATEWAY_PID 0xBFDB +#define FTDI_OPENDCC_GBM_PID 0xBFDC/* * RR-CirKits LocoBuffer USB (http://www.rr-cirkits.com)
@@ -1022,9 +1023,34 @@*/ #define PAPOUCH_VID 0x5050/* Vendor ID */ +#define PAPOUCH_SB485_PID 0x0100/* Papouch SB485 USB-485/422 Converter */ +#define PAPOUCH_AP485_PID 0x0101/* AP485 USB-RS485 Converter */ +#define PAPOUCH_SB422_PID 0x0102/* Papouch SB422 USB-RS422 Converter */ +#define PAPOUCH_SB485_2_PID 0x0103/* Papouch SB485 USB-485/422 Converter */ +#define PAPOUCH_AP485_2_PID 0x0104/* AP485 USB-RS485 Converter */ +#define PAPOUCH_SB422_2_PID 0x0105/* Papouch SB422 USB-RS422 Converter */ +#define PAPOUCH_SB485S_PID 0x0106/* Papouch SB485S USB-485/422 Converter */ +#define PAPOUCH_SB485C_PID 0x0107/* Papouch SB485C USB-485/422 Converter */ +#define PAPOUCH_LEC_PID 0x0300/* LEC USB Converter */ +#define PAPOUCH_SB232_PID 0x0301/* Papouch SB232 USB-RS232 Converter */ #define PAPOUCH_TMU_PID 0x0400/* TMU USB Thermometer */ -#define PAPOUCH_QUIDO4x4_PID 0x0900/* Quido 4/4 Module */ +#define PAPOUCH_IRAMP_PID 0x0500/* Papouch IRAmp Duplex */ +#define PAPOUCH_DRAK5_PID 0x0700/* Papouch DRAK5 */ +#define PAPOUCH_QUIDO8x8_PID 0x0800/* Papouch Quido 8/8 Module */ +#define PAPOUCH_QUIDO4x4_PID 0x0900/* Papouch Quido 4/4 Module */ +#define PAPOUCH_QUIDO2x2_PID 0x0a00/* Papouch Quido 2/2 Module */ +#define PAPOUCH_QUIDO10x1_PID 0x0b00/* Papouch Quido 10/1 Module */ +#define PAPOUCH_QUIDO30x3_PID 0x0c00/* Papouch Quido 30/3 Module */ +#define PAPOUCH_QUIDO60x3_PID 0x0d00/* Papouch Quido 60(100)/3 Module */ +#define PAPOUCH_QUIDO2x16_PID 0x0e00/* Papouch Quido 2/16 Module */ +#define PAPOUCH_QUIDO3x32_PID 0x0f00/* Papouch Quido 3/32 Module */ +#define PAPOUCH_DRAK6_PID 0x1000/* Papouch DRAK6 */ +#define PAPOUCH_UPSUSB_PID 0x8000/* Papouch UPS-USB adapter */ +#define PAPOUCH_MU_PID 0x8001/* MU controller */ +#define PAPOUCH_SIMUKEY_PID 0x8002/* Papouch SimuKey */ #define PAPOUCH_AD4USB_PID 0x8003/* AD4USB Measurement Module */ +#define PAPOUCH_GMUX_PID 0x8004/* Papouch GOLIATH MUX */ +#define PAPOUCH_GMSR_PID 0x8005/* Papouch GOLIATH MSR */ /* * Marvell SheevaPlug
@@ -1063,3 +1089,14 @@* Submitted by John G. Rogers */ #define SEGWAY_RMP200_PID 0xe729 + + +/* +* Accesio USB Data Acquisition products (http://www.accesio.com/) +*/ +#define ACCESIO_COM4SM_PID 0xD578 + +/* www.sciencescope.co.uk educational dataloggers */ +#define FTDI_SCIENCESCOPE_LOGBOOKML_PID 0xFF18 +#define FTDI_SCIENCESCOPE_LS_LOGBOOK_PID 0xFF1C +#define FTDI_SCIENCESCOPE_HS_LOGBOOK_PID 0xFF1D
drivers/usb/serial/mct_u232.c +5 -2
@@ -549,9 +549,12 @@ static void mct_u232_close(struct usb_serial_port *port) {dbg ("%s port %d" , __func__, port->number); -usb_serial_generic_close (port); -if (port->serial->dev) +if (port->serial->dev) { +/* shutdown our urbs */ +usb_kill_urb (port->write_urb); +usb_kill_urb (port->read_urb);usb_kill_urb (port->interrupt_in_urb); + } }/* mct_u232_close */
drivers/usb/serial/opticon.c +3 -3
@@ -96,8 +96,8 @@ static void opticon_bulk_callback(struct urb *urb)/* real data, send it to the tty layer */ tty =tty_port_tty_get (&port->port);if (tty) { -tty_insert_flip_string (tty, data, - data_length); +tty_insert_flip_string (tty, data +2 , + data_length);tty_flip_buffer_push (tty);tty_kref_put (tty); }
@@ -130,7 +130,7 @@ exit: priv->bulk_address), priv->bulk_in_buffer, priv->buffer_size, opticon_bulk_callback, priv); - result =usb_submit_urb (port->read_urb,GFP_ATOMIC ); + result =usb_submit_urb (priv->bulk_read_urb,GFP_ATOMIC );if (result) dev_err(&port->dev, "%s - failed resubmitting read urb, error %d\n",
drivers/usb/serial/option.c +20 -3
@@ -622,6 +622,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0011, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0012, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0013, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0014, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_MF628, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0016, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0017, 0xff, 0xff, 0xff) },
@@ -633,38 +634,52 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0023, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0024, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0025, 0xff, 0xff, 0xff) }, - { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0026, 0xff, 0xff, 0xff) }, +/* { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0026, 0xff, 0xff, 0xff) }, */ { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0028, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0029, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0030, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_MF626, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0032, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0033, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0034, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0037, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0038, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0039, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0040, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0042, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0043, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0044, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0048, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0049, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0050, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0051, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0052, 0xff, 0xff, 0xff) }, +/* { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0053, 0xff, 0xff, 0xff) }, */ { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0054, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0055, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0056, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0057, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0058, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0059, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0061, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0062, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0063, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0064, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0065, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0066, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0067, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0069, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0070, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0076, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0077, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0078, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0079, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0082, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0083, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0086, 0xff, 0xff, 0xff) }, - { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x2002, 0xff, 0xff, 0xff) }, - { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x2003, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0087, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0104, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0105, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0106, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0108, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0113, 0xff, 0xff, 0xff) },
@@ -880,6 +895,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0073, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0130, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0141, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x2002, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x2003, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_CDMA_TECH, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_AC8710, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, ZTE_PRODUCT_AC2726, 0xff, 0xff, 0xff) },
drivers/usb/serial/visor.c +10 -1
@@ -606,6 +606,10 @@ static int treo_attach(struct usb_serial *serial)static int clie_5_attach (struct usb_serial *serial) { +struct usb_serial_port *port; +unsigned int pipe; +int j; +dbg ("%s" , __func__);/* TH55 registers 2 ports.
@@ -621,9 +625,14 @@ static int clie_5_attach(struct usb_serial *serial)return -1 ;/* port 0 now uses the modified endpoint Address */ - serial->port[0 ]->bulk_out_endpointAddress = + port = serial->port[0 ]; + port->bulk_out_endpointAddress = serial->port[1 ]->bulk_out_endpointAddress; + pipe =usb_sndbulkpipe (serial->dev, port->bulk_out_endpointAddress); +for (j =0 ; j <ARRAY_SIZE (port->write_urbs); ++j) + port->write_urbs[j]->pipe = pipe; +return 0 ; }
fs/cifs/cifsproto.h +2 -1
@@ -107,7 +107,8 @@ extern struct timespec cnvrtDosUnixTm(__le16 le_date, __le16 le_time,extern struct cifsFileInfo *cifs_new_fileinfo (struct inode *newinode,__u16 fileHandle,struct file *file, -struct vfsmount *mnt,unsigned int oflags); +struct vfsmount *mnt,unsigned int oflags, +__u32 oplock); extern int cifs_posix_open(char *full_path, struct inode **pinode, struct super_block *sb, int mode, int oflags,
fs/cifs/dir.c +5 -7
@@ -132,9 +132,9 @@ cifs_bp_rename_retry:struct cifsFileInfo *cifs_new_fileinfo (struct inode *newinode,__u16 fileHandle, -struct file *file,struct vfsmount *mnt,unsigned int oflags) +struct file *file,struct vfsmount *mnt,unsigned int oflags, +__u32 oplock) { -int oplock =0 ;struct cifsFileInfo *pCifsFile;struct cifsInodeInfo *pCifsInode;struct cifs_sb_info *cifs_sb =CIFS_SB (mnt->mnt_sb);
@@ -143,9 +143,6 @@ cifs_new_fileinfo(struct inode *newinode, __u16 fileHandle,if (pCifsFile ==NULL )return pCifsFile; -if (oplockEnabled) - oplock =REQ_OPLOCK ; - pCifsFile->netfid = fileHandle; pCifsFile->pid = current->tgid; pCifsFile->pInode =igrab (newinode);
@@ -468,7 +465,7 @@ cifs_create_set_dentry: } pfile_info =cifs_new_fileinfo (newinode, fileHandle, filp, - nd->path.mnt, oflags); + nd->path.mnt, oflags, oplock);if (pfile_info ==NULL ) {fput (filp);CIFSSMBClose (xid, tcon, fileHandle);
@@ -729,7 +726,8 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry, cfile =cifs_new_fileinfo (newInode, fileHandle, filp, nd->path.mnt, - nd->intent.open.flags); + nd->intent.open.flags, + oplock);if (cfile ==NULL ) {fput (filp);CIFSSMBClose (xid, pTcon, fileHandle);
fs/cifs/file.c +2 -2
@@ -277,7 +277,7 @@ int cifs_open(struct inode *inode, struct file *file) pCifsFile =cifs_new_fileinfo (inode, netfid, file, file->f_path.mnt, - oflags); + oflags, oplock);if (pCifsFile ==NULL ) {CIFSSMBClose (xid, tcon, netfid); rc = -ENOMEM ;
@@ -370,7 +370,7 @@ int cifs_open(struct inode *inode, struct file *file) goto out; pCifsFile =cifs_new_fileinfo (inode, netfid, file, file->f_path.mnt, - file->f_flags); + file->f_flags, oplock);if (pCifsFile ==NULL ) { rc = -ENOMEM ; goto out;
fs/nfs/direct.c +1 -1
@@ -873,7 +873,7 @@ static ssize_t nfs_direct_write(struct kiocb *iocb, const struct iovec *iov, dreq->inode = inode; dreq->ctx =get_nfs_open_context (nfs_file_open_context (iocb->ki_filp)); dreq->l_ctx =nfs_get_lock_context (dreq->ctx); -if (dreq->l_ctx !=NULL ) +if (dreq->l_ctx ==NULL ) goto out_release;if (!is_sync_kiocb (iocb)) dreq->iocb = iocb;
fs/pipe.c +1 -1
@@ -382,7 +382,7 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov, error = ops->confirm (pipe, buf);if (error) {if (!ret) - error = ret; + ret = error;break ; }
kernel/futex.c +16 -15
@@ -1363,7 +1363,6 @@ static inline struct futex_hash_bucket *queue_lock(struct futex_q *q) {struct futex_hash_bucket *hb; -get_futex_key_refs (&q->key); hb =hash_futex (&q->key); q->lock_ptr = &hb->lock;
@@ -1375,7 +1374,6 @@ static inline void queue_unlock(struct futex_q *q, struct futex_hash_bucket *hb) { spin_unlock(&hb->lock); -drop_futex_key_refs (&q->key); }/**
@@ -1480,8 +1478,6 @@ static void unqueue_me_pi(struct futex_q *q) q->pi_state =NULL ;spin_unlock (q->lock_ptr); - -drop_futex_key_refs (&q->key); }/*
@@ -1812,7 +1808,10 @@ static int futex_wait(u32 __user *uaddr, int fshared, } retry: -/* Prepare to wait on uaddr. */ +/* +* Prepare to wait on uaddr. On success, holds hb lock and increments +* q.key refs. +*/ ret =futex_wait_setup (uaddr, val, fshared, &q, &hb);if (ret) goto out;
@@ -1822,24 +1821,23 @@ retry:/* If we were woken (and unqueued), we succeeded, whatever. */ ret =0 ; +/* unqueue_me() drops q.key ref */ if (!unqueue_me (&q)) - goto out_put_key; + goto out; ret = -ETIMEDOUT ;if (to && !to->task) - goto out_put_key; + goto out;/* * We expect signal_pending(current), but we might be the * victim of a spurious wakeup as well. */ -if (!signal_pending (current)) { -put_futex_key (fshared, &q.key); +if (!signal_pending (current)) goto retry; - } ret = -ERESTARTSYS ;if (!abs_time) - goto out_put_key; + goto out; restart = ¤t_thread_info ()->restart_block; restart->fn = futex_wait_restart;
@@ -1856,8 +1854,6 @@ retry: ret = -ERESTART_RESTARTBLOCK ; -out_put_key: -put_futex_key (fshared, &q.key); out:if (to) {hrtimer_cancel (&to->timer);
@@ -2236,7 +2232,10 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, int fshared, q.rt_waiter = &rt_waiter; q.requeue_pi_key = &key2; -/* Prepare to wait on uaddr. */ +/* +* Prepare to wait on uaddr. On success, increments q.key (key1) ref +* count. +*/ ret =futex_wait_setup (uaddr, val, fshared, &q, &hb);if (ret) goto out_key2;
@@ -2254,7 +2253,9 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, int fshared,* In order for us to be here, we know our q.key == key2, and since * we took the hb->lock above, we also know that futex_requeue() has * completed and we no longer have to concern ourselves with a wakeup -* race with the atomic proxy lock acquition by the requeue code. +* race with the atomic proxy lock acquisition by the requeue code. The +* futex_requeue dropped our key1 reference and incremented our key2 +* reference count. */ /* Check if the requeue code acquired the second futex for us. */
kernel/perf_event.c +7 -1
@@ -1773,7 +1773,13 @@ static u64 perf_event_read(struct perf_event *event)unsigned long flags;raw_spin_lock_irqsave (&ctx->lock, flags); -update_context_time (ctx); +/* +* may read while context is not active +* (e.g., thread is blocked), in that case +* we cannot update context time +*/ +if (ctx->is_active) +update_context_time (ctx);update_event_times (event);raw_spin_unlock_irqrestore (&ctx->lock, flags); }
kernel/sched.c +3 -10
@@ -723,7 +723,7 @@ sched_feat_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) { char buf[64]; -char *cmp = buf; +char *cmp;int neg =0 ;int i;
@@ -734,6 +734,7 @@ sched_feat_write(struct file *filp, const char __user *ubuf,return -EFAULT ; buf[cnt] =0 ; + cmp =strstrip (buf);if (strncmp (buf,"NO_" ,3 ) ==0 ) { neg =1 ;
@@ -741,9 +742,7 @@ sched_feat_write(struct file *filp, const char __user *ubuf, }for (i =0 ; sched_feat_names[i]; i++) { -int len =strlen (sched_feat_names[i]); - -if (strncmp (cmp, sched_feat_names[i], len) ==0 ) { +if (strcmp (cmp, sched_feat_names[i]) ==0 ) {if (neg) sysctl_sched_features &= ~(1UL << i);else
@@ -1858,12 +1857,6 @@ static void dec_nr_running(struct rq *rq)static void set_load_weight (struct task_struct *p) { -if (task_has_rt_policy (p)) { - p->se.load.weight =0 ; - p->se.load.inv_weight =WMULT_CONST ; -return ; - } -/* * SCHED_IDLE tasks get minimal weight: */
mm/vmalloc.c +9 -0
@@ -517,6 +517,15 @@ static atomic_t vmap_lazy_nr = ATOMIC_INIT(0);static void purge_fragmented_blocks_allcpus (void );/* +* called before a call to iounmap() if the caller wants vm_area_struct's +* immediately freed. +*/ +void set_iounmap_nonlazy (void ) +{ +atomic_set (&vmap_lazy_nr,lazy_max_pages ()+1 ); +} + +/* * Purges all lazily-freed vmap areas. * * If sync is 0 then don't purge if there is already a purge in progress.
net/bluetooth/l2cap.c +2 -2
@@ -2891,7 +2891,7 @@ static inline int l2cap_connect_req(struct l2cap_conn *conn, struct l2cap_cmd_hdstruct l2cap_chan_list *list = &conn->chan_list;struct l2cap_conn_req *req = (struct l2cap_conn_req *) data;struct l2cap_conn_rsp rsp; -struct sock *parent, *uninitialized_var (sk ); +struct sock *parent, *sk =NULL ;int result, status =L2CAP_CS_NO_INFO ;u16 dcid =0 , scid =__le16_to_cpu (req->scid);
@@ -3000,7 +3000,7 @@ sendresp: L2CAP_INFO_REQ, sizeof(info), &info); } -if (!(l2cap_pi (sk)->conf_state &L2CAP_CONF_REQ_SENT ) && +if (sk && !(l2cap_pi (sk)->conf_state &L2CAP_CONF_REQ_SENT ) && result ==L2CAP_CR_SUCCESS ) {u8 buf[128 ];l2cap_pi (sk)->conf_state |=L2CAP_CONF_REQ_SENT ;
net/netfilter/xt_SECMARK.c +1 -1
@@ -101,7 +101,7 @@ static int secmark_tg_check(const struct xt_tgchk_param *par)switch (info->mode) {case SECMARK_MODE_SEL : err =checkentry_selinux (info); -if (err <=0 ) +if (err)return err;break ;
I'm announcing the release of the 2.6.36.1 kernel.
All users of the 2.6.36 kernel series must upgrade.
The updated 2.6.36.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.36.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 - arch/arm/include/asm/kgdb.h | 5 +- arch/arm/kernel/kgdb.c | 2 - arch/arm/mach-cns3xxx/include/mach/debug-macro.S | 2 - arch/powerpc/kernel/ppc970-pmu.c | 2 + arch/x86/include/asm/cpufeature.h | 2 - arch/x86/include/asm/io.h | 1 arch/x86/include/asm/mrst.h | 2 - arch/x86/include/asm/smp.h | 9 ++++- arch/x86/kernel/apic/io_apic.c | 2 + arch/x86/kernel/cpu/mtrr/cleanup.c | 2 - arch/x86/kernel/cpu/perf_event_amd.c | 4 +- arch/x86/kernel/crash_dump_64.c | 3 + arch/x86/kernel/olpc.c | 5 ++ arch/x86/kernel/reboot.c | 2 - arch/x86/kernel/smp.c | 15 +++++--- arch/x86/kernel/traps.c | 1 arch/x86/kernel/vm86_32.c | 10 ++++- arch/x86/kvm/svm.c | 37 ++++++++++++++++++++- arch/x86/kvm/x86.c | 4 +- arch/x86/xen/enlighten.c | 2 - arch/x86/xen/smp.c | 6 +-- drivers/ata/ahci.h | 1 drivers/ata/libahci.c | 18 ++++++++-- drivers/bluetooth/hci_ldisc.c | 7 ++++ drivers/char/pcmcia/synclink_cs.c | 2 + drivers/idle/intel_idle.c | 2 - drivers/misc/sgi-xp/xpc_uv.c | 17 ++++++++++ drivers/net/wireless/p54/eeprom.c | 4 +- drivers/net/wireless/p54/p54usb.c | 15 ++++++++ drivers/platform/x86/asus-laptop.c | 6 +-- drivers/scsi/gdth.c | 8 ++++ drivers/scsi/libsas/sas_ata.c | 1 drivers/scsi/pmcraid.h | 1 drivers/scsi/qla4xxx/ql4_nx.c | 1 drivers/scsi/scsi_lib.c | 3 + drivers/scsi/scsi_sysfs.c | 3 + drivers/scsi/sd.c | 15 +++++--- drivers/staging/phison/phison.c | 2 - drivers/staging/usbip/usbip_event.c | 16 +-------- drivers/staging/usbip/vhci_hcd.c | 2 + drivers/usb/core/hub.c | 9 +++-- drivers/usb/core/message.c | 14 ++++---- drivers/usb/gadget/atmel_usba_udc.c | 3 + drivers/usb/gadget/composite.c | 3 + drivers/usb/gadget/f_acm.c | 2 - drivers/usb/gadget/g_ffs.c | 4 +- drivers/usb/gadget/multi.c | 4 +- drivers/usb/host/r8a66597.h | 2 - drivers/usb/musb/blackfin.c | 7 ++-- drivers/usb/musb/davinci.c | 2 + drivers/usb/musb/musb_core.c | 4 -- drivers/usb/musb/omap2430.c | 1 drivers/usb/musb/tusb6010.c | 4 ++ drivers/usb/serial/cp210x.c | 2 + drivers/usb/serial/ftdi_sio.c | 39 ++++++++++++++++++++--- drivers/usb/serial/ftdi_sio_ids.h | 39 ++++++++++++++++++++++- drivers/usb/serial/mct_u232.c | 7 ++-- drivers/usb/serial/opticon.c | 6 +-- drivers/usb/serial/option.c | 23 +++++++++++-- drivers/usb/serial/visor.c | 11 +++++- fs/cifs/cifsproto.h | 3 + fs/cifs/dir.c | 12 ++----- fs/cifs/file.c | 4 +- fs/nfs/direct.c | 2 - fs/pipe.c | 2 - kernel/futex.c | 31 +++++++++--------- kernel/perf_event.c | 8 ++++ kernel/sched.c | 13 +------ mm/vmalloc.c | 9 +++++ net/bluetooth/l2cap.c | 4 +- net/netfilter/xt_SECMARK.c | 2 - 72 files changed, 379 insertions(+), 141 deletions(-)
Alan Cox (1):
bluetooth: Fix missing NULL check
Alan Stern (2):
USB: disable endpoints after unbinding interfaces, not before
USB: accept some invalid ep0-maxpacket values
Alok Kataria (1):
x86, kexec: Make sure to stop all CPUs before exiting the kernel
Alon Ziv (1):
USB: opticon: Fix long-standing bugs in opticon driver
Anders Larsen (1):
USB: cp210x: Add WAGO 750-923 Service Cable device ID
Andre Przywara (1):
x86, cpu: Fix renamed, not-yet-shipping AMD CPUID feature bit
Andreas Herrmann (1):
x86, mtrr: Assume SYS_CFG[Tom2ForceMemTypeWB] exists on all future AMD CPUs
Anil Ravindranath (1):
pmcraid: remove duplicate struct member
Bart Oldeman (1):
x86, vm86: Fix preemption bug for int1 debug and int3 breakpoint handlers.
Christian Lamparter (2):
p54usb: fix off-by-one on !CONFIG_PM
p54usb: add five more USBIDs
Christof Schmitt (1):
Fix race when removing SCSI devices
Cliff Wickman (2):
mm, x86: Saving vmcore with non-lazy freeing of vmas x86, kdump: Change copy_oldmem_page() to use cached addressing
Corentin Chary (1):
asus-laptop: fix gps rfkill
DJ Delorie (1):
USB: cp210x: Add Renesas RX-Stick device ID
Dan Carpenter (1):
gdth: integer overflow in ioctl
Daniel Suchy (1):
USB: ftdi_sio: new VID/PIDs for various Papouch devices
Darren Hart (1):
futex: Fix errors in nested key ref-counting
David Milburn (1):
libsas: fix NCQ mixing with non-NCQ
Eric Paris (1):
secmark: do not return early if there was no error
Greg Kroah-Hartman (3):
Staging: phison: fix problem caused by libata change
USB: ftdi_sio: add device ids for ScienceScope Linux 2.6.36.1
H. Peter Anvin (1):
x86, mrst: A function in a header file needs to be marked "inline"
Jean-Christophe PLAGNIOL-VILLARD (1):
USB: atmel_usba_udc: force vbus_pin at -EINVAL when gpio_request failled
Jiri Slaby (1):
qla4xxx: fix build on PPC
Joerg Roedel (2):
KVM: X86: Report SVM bit to userspace only when supported
KVM: SVM: Restore correct registers after sel_cr0 intercept emulation
Johan Hovold (3):
USB: mct_u232: fix broken close
USB: ftdi_sio: revert "USB: ftdi_sio: fix DTR/RTS line modes"
USB: visor: fix initialisation of UX50/TH55 devices
Julia Lawall (1):
drivers/net/wireless/p54/eeprom.c: Return -ENOMEM on memory allocation failure
Len Brown (1):
intel_idle: do not use the LAPIC timer for ATOM C2
Linus Walleij (1):
sched: Drop all load weight manipulation for RT tasks
Mac Lin (1):
ARM: cns3xxx: Fixup the missing second parameter to addruart macro to allow them to build.
Mathieu Desnoyers (1):
sched: Fix string comparison in /proc/sched_features
Mauro Carvalho Chehab (1):
USB: option: Add more ZTE modem USB id's
Max Vozeler (2):
staging: usbip: Notify usb core of port status changes
staging: usbip: Process event flags without delay
Michael Reed (1):
sd name space exhaustion causes system hang
Michal Nazarewicz (2):
USB: gadget: g_ffs: fixed vendor and product ID
USB: gadget: g_multi: fixed vendor and product ID
Mike Christie (1):
Fix regressions in scsi_internal_device_block
Nathan Holstein (1):
Bluetooth: fix oops in l2cap_connect_req
Nicolas Kaiser (1):
pipe: fix failure to return error code on ->confirm()
Nobuhiro Iwamatsu (1):
usb: r8a66597-hcd: Change mistake of the outsw function
Paul Fox (1):
x86, olpc: Don't retry EC commands forever
Paul Mackerras (1):
powerpc/perf: Fix sampling enable for PPC970
Praveena Nadahally (1):
USB: Change acm_iad_descriptor bFunctionProtocol to USB_CDC_ACM_PROTO_AT_V25TER
Rabin Vincent (1):
kgdb,arm: fix register dump
Rainer Keller (1):
USB: add PID for FTDI based OpenDCC hardware
Rich Mattes (1):
USB: ftdi_sio: Add PID for accesio products
Robin Holt (1):
sgi-xp: incoming XPC channel messages can come in after the channel's partition structures have been torn down
Roger Quadros (1):
usb gadget: composite: prevent OOPS for non-standard control request
Sergei Shtylyov (3):
USB: MUSB: fix kernel WARNING/oops when unloading module in OTG mode
usb: musb: blackfin: call usb_nop_xceiv_unregister() in musb_platform_exit()
usb: musb: blackfin: call gpio_free() on error path in musb_platform_init()
Stephane Eranian (2):
perf_events: Fix bogus AMD64 generic TLB events
perf_events: Fix bogus context time tracking
Steve Dickson (1):
Fixed Regression in NFS Direct I/O path
Suresh Jayaraman (1):
cifs: fix broken oplock handling
Suresh Siddha (1):
x86, intr-remap: Set redirection hint in the IRTE
Tejun Heo (1):
libahci: fix result_tf handling after an ATA PIO data-in command
Vasiliy Kulikov (1):
pcmcia: synclink_cs: fix information leak to userland
Quoted 10 lines · Greg KH
I'm announcing the release of the 2.6.36.1 kernel.
All users of the 2.6.36 kernel series must upgrade.
The updated 2.6.36.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.36.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=summarythanks,
This one is missing
0e7adbe ALSA: hda - Disable sticky PCM stream assignment for AD codecs
Otherwise sound doesn't work on AD codecs.
Signature · 1 line
Felipe Contreras
Quoted 10 lines · Felipe Contreras
Quoted 9 lines · Greg KH
I'm announcing the release of the 2.6.36.1 kernel.
All users of the 2.6.36 kernel series must upgrade.
The updated 2.6.36.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.36.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=summary
Quoted 6 lines
Quoted 1 line
thanks,
This one is missing
0e7adbe ALSA: hda - Disable sticky PCM stream assignment for AD codecsOtherwise sound doesn't work on AD codecs.
It will get into .2, thanks.
greg k-h
Quoted 13 lines · Greg KH
Quoted 12 lines · Felipe Contreras
Quoted 10 lines · Greg KH
I'm announcing the release of the 2.6.36.1 kernel.
All users of the 2.6.36 kernel series must upgrade.
The updated 2.6.36.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.36.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=summarythanks,
Quoted 8 lines
Quoted 4 lines
This one is missing
0e7adbe ALSA: hda - Disable sticky PCM stream assignment for AD codecsOtherwise sound doesn't work on AD codecs.
It will get into .2, thanks.
greg k-h
ed3aada1bf34c5a9e98af167f125f8a740fc726a also seems to be missing.
63bfd7384b119409685a17d5c58f0b56e5dc03da should be considered too.
Dave
Am Montag 22 November 2010 schrieb Greg KH:
Quoted 11 lines
I'm announcing the release of the 2.6.36.1 kernel.
All users of the 2.6.36 kernel series must upgrade.
The updated 2.6.36.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.36.y.gi
t and can be browsed at the normal kernel.org git web browser:http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=
summary
I am missing
drm/radeon/kms: MC vram map needs to be >= pci aperture size b7d8cce5b558e0c0aa6898c9865356481598b46d
from Alex Deucher which fixes
Bug 28402 - random radeon/kms/drm related freezes with kernel 2.6.34
https://bugs.freedesktop.org/show_bug.cgi?id=28402
random - possibly Radeon DRM KMS related - freezes
https://bugzilla.kernel.org/show_bug.cgi?id=16376
which according should have been queued for stable[1]
[1] https://bugs.freedesktop.org/show_bug.cgi?id=28402#c96
Thanks,
Signature · 2 lines
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Hello Greg,
Quoted 1 line · Greg KH
I'm announcing the release of the 2.6.36.1 kernel.
could you please consider 0310871d8f71da4ad8643687fbc40f219a0dac4d for .36.2?
This went into 2.6.37-rc1 and fixes a 2.6.35 -> 2.6.36 regression in msp3400, but doesn't appear to show up on the usual regression lists.
regards
Mario
Signature · 3 lines
We know that communication is a problem, but the company is not going to
discuss it with the employees.
-- Switching supervisor, AT&T Long Lines DivisionQuoted 12 lines · Dave Jones
Quoted 11 lines · Greg KH
Quoted 10 lines · Felipe Contreras
Quoted 9 lines · Greg KH
I'm announcing the release of the 2.6.36.1 kernel.
All users of the 2.6.36 kernel series must upgrade.
The updated 2.6.36.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.36.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=summary
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
thanks,
This one is missing
0e7adbe ALSA: hda - Disable sticky PCM stream assignment for AD codecsOtherwise sound doesn't work on AD codecs.
It will get into .2, thanks.
It's now queued up.
Quoted 3 lines
ed3aada1bf34c5a9e98af167f125f8a740fc726aalso seems to be missing.
63bfd7384b119409685a17d5c58f0b56e5dc03dashould be considered too.
These are also queued up.
thanks,
greg k-h
Quoted 23 lines · Martin Steigerwald
Am Montag 22 November 2010 schrieb Greg KH:
Quoted 11 lines
I'm announcing the release of the 2.6.36.1 kernel.
All users of the 2.6.36 kernel series must upgrade.
The updated 2.6.36.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.36.y.gi
t and can be browsed at the normal kernel.org git web browser:http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=
summaryI am missing
drm/radeon/kms: MC vram map needs to be >= pci aperture size
b7d8cce5b558e0c0aa6898c9865356481598b46dfrom Alex Deucher which fixes
Bug 28402 - random radeon/kms/drm related freezes with kernel 2.6.34
https://bugs.freedesktop.org/show_bug.cgi?id=28402
Quoted 6 lines
random - possibly Radeon DRM KMS related - freezes
https://bugzilla.kernel.org/show_bug.cgi?id=16376which according should have been queued for stable[1]
It's now in this next release.
thanks,
greg k-h