diff options
39 files changed, 126 insertions, 102 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index d5418d528910..ee5a5f9358ec 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
| @@ -220,14 +220,17 @@ and is between 256 and 4096 characters. It is defined in the file | |||
| 220 | Bits in debug_level correspond to a level in | 220 | Bits in debug_level correspond to a level in |
| 221 | ACPI_DEBUG_PRINT statements, e.g., | 221 | ACPI_DEBUG_PRINT statements, e.g., |
| 222 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, ... | 222 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, ... |
| 223 | See Documentation/acpi/debug.txt for more information | 223 | The debug_level mask defaults to "info". See |
| 224 | about debug layers and levels. | 224 | Documentation/acpi/debug.txt for more information about |
| 225 | debug layers and levels. | ||
| 225 | 226 | ||
| 227 | Enable processor driver info messages: | ||
| 228 | acpi.debug_layer=0x20000000 | ||
| 229 | Enable PCI/PCI interrupt routing info messages: | ||
| 230 | acpi.debug_layer=0x400000 | ||
| 226 | Enable AML "Debug" output, i.e., stores to the Debug | 231 | Enable AML "Debug" output, i.e., stores to the Debug |
| 227 | object while interpreting AML: | 232 | object while interpreting AML: |
| 228 | acpi.debug_layer=0xffffffff acpi.debug_level=0x2 | 233 | acpi.debug_layer=0xffffffff acpi.debug_level=0x2 |
| 229 | Enable PCI/PCI interrupt routing info messages: | ||
| 230 | acpi.debug_layer=0x400000 acpi.debug_level=0x4 | ||
| 231 | Enable all messages related to ACPI hardware: | 234 | Enable all messages related to ACPI hardware: |
| 232 | acpi.debug_layer=0x2 acpi.debug_level=0xffffffff | 235 | acpi.debug_layer=0x2 acpi.debug_level=0xffffffff |
| 233 | 236 | ||
diff --git a/MAINTAINERS b/MAINTAINERS index c42a567e010c..fbc8fa58d56d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -4529,7 +4529,7 @@ S: Maintained | |||
| 4529 | USB VIDEO CLASS | 4529 | USB VIDEO CLASS |
| 4530 | P: Laurent Pinchart | 4530 | P: Laurent Pinchart |
| 4531 | M: laurent.pinchart@skynet.be | 4531 | M: laurent.pinchart@skynet.be |
| 4532 | L: linux-uvc-devel@lists.berlios.de | 4532 | L: linux-uvc-devel@lists.berlios.de (subscribers-only) |
| 4533 | L: video4linux-list@redhat.com | 4533 | L: video4linux-list@redhat.com |
| 4534 | W: http://linux-uvc.berlios.de | 4534 | W: http://linux-uvc.berlios.de |
| 4535 | S: Maintained | 4535 | S: Maintained |
| @@ -1,7 +1,7 @@ | |||
| 1 | VERSION = 2 | 1 | VERSION = 2 |
| 2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
| 3 | SUBLEVEL = 28 | 3 | SUBLEVEL = 28 |
| 4 | EXTRAVERSION = -rc9 | 4 | EXTRAVERSION = |
| 5 | NAME = Erotic Pickled Herring | 5 | NAME = Erotic Pickled Herring |
| 6 | 6 | ||
| 7 | # *DOCUMENTATION* | 7 | # *DOCUMENTATION* |
diff --git a/arch/mips/include/asm/byteorder.h b/arch/mips/include/asm/byteorder.h index 2988d29a0867..33790b9e0cc0 100644 --- a/arch/mips/include/asm/byteorder.h +++ b/arch/mips/include/asm/byteorder.h | |||
| @@ -50,9 +50,8 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) | |||
| 50 | static inline __attribute_const__ __u64 __arch_swab64(__u64 x) | 50 | static inline __attribute_const__ __u64 __arch_swab64(__u64 x) |
| 51 | { | 51 | { |
| 52 | __asm__( | 52 | __asm__( |
| 53 | " dsbh %0, %1 \n" | 53 | " dsbh %0, %1\n" |
| 54 | " dshd %0, %0 \n" | 54 | " dshd %0, %0" |
| 55 | " drotr %0, %0, 32 \n" | ||
| 56 | : "=r" (x) | 55 | : "=r" (x) |
| 57 | : "r" (x)); | 56 | : "r" (x)); |
| 58 | 57 | ||
diff --git a/arch/mips/include/asm/elf.h b/arch/mips/include/asm/elf.h index a8eac1697b3d..d58f128aa747 100644 --- a/arch/mips/include/asm/elf.h +++ b/arch/mips/include/asm/elf.h | |||
| @@ -232,7 +232,7 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; | |||
| 232 | */ | 232 | */ |
| 233 | #ifdef __MIPSEB__ | 233 | #ifdef __MIPSEB__ |
| 234 | #define ELF_DATA ELFDATA2MSB | 234 | #define ELF_DATA ELFDATA2MSB |
| 235 | #elif __MIPSEL__ | 235 | #elif defined(__MIPSEL__) |
| 236 | #define ELF_DATA ELFDATA2LSB | 236 | #define ELF_DATA ELFDATA2LSB |
| 237 | #endif | 237 | #endif |
| 238 | #define ELF_ARCH EM_MIPS | 238 | #define ELF_ARCH EM_MIPS |
diff --git a/arch/parisc/include/asm/tlbflush.h b/arch/parisc/include/asm/tlbflush.h index b72ec66db699..1f6fd4fc05b9 100644 --- a/arch/parisc/include/asm/tlbflush.h +++ b/arch/parisc/include/asm/tlbflush.h | |||
| @@ -44,9 +44,12 @@ static inline void flush_tlb_mm(struct mm_struct *mm) | |||
| 44 | { | 44 | { |
| 45 | BUG_ON(mm == &init_mm); /* Should never happen */ | 45 | BUG_ON(mm == &init_mm); /* Should never happen */ |
| 46 | 46 | ||
| 47 | #ifdef CONFIG_SMP | 47 | #if 1 || defined(CONFIG_SMP) |
| 48 | flush_tlb_all(); | 48 | flush_tlb_all(); |
| 49 | #else | 49 | #else |
| 50 | /* FIXME: currently broken, causing space id and protection ids | ||
| 51 | * to go out of sync, resulting in faults on userspace accesses. | ||
| 52 | */ | ||
| 50 | if (mm) { | 53 | if (mm) { |
| 51 | if (mm->context != 0) | 54 | if (mm->context != 0) |
| 52 | free_sid(mm->context); | 55 | free_sid(mm->context); |
diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu index b815664fe370..8e99073b9e0f 100644 --- a/arch/x86/Kconfig.cpu +++ b/arch/x86/Kconfig.cpu | |||
| @@ -520,6 +520,7 @@ config X86_PTRACE_BTS | |||
| 520 | bool "Branch Trace Store" | 520 | bool "Branch Trace Store" |
| 521 | default y | 521 | default y |
| 522 | depends on X86_DEBUGCTLMSR | 522 | depends on X86_DEBUGCTLMSR |
| 523 | depends on BROKEN | ||
| 523 | help | 524 | help |
| 524 | This adds a ptrace interface to the hardware's branch trace store. | 525 | This adds a ptrace interface to the hardware's branch trace store. |
| 525 | 526 | ||
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 73ece2633f47..141907ab6e22 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c | |||
| @@ -687,7 +687,7 @@ void math_error(void __user *ip) | |||
| 687 | 687 | ||
| 688 | err = swd & ~cwd & 0x3f; | 688 | err = swd & ~cwd & 0x3f; |
| 689 | 689 | ||
| 690 | #if CONFIG_X86_32 | 690 | #ifdef CONFIG_X86_32 |
| 691 | if (!err) | 691 | if (!err) |
| 692 | return; | 692 | return; |
| 693 | #endif | 693 | #endif |
diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index 541bcc944a5b..85cbd3cd3723 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c | |||
| @@ -684,7 +684,7 @@ int track_pfn_vma_copy(struct vm_area_struct *vma) | |||
| 684 | { | 684 | { |
| 685 | int retval = 0; | 685 | int retval = 0; |
| 686 | unsigned long i, j; | 686 | unsigned long i, j; |
| 687 | u64 paddr; | 687 | resource_size_t paddr; |
| 688 | unsigned long prot; | 688 | unsigned long prot; |
| 689 | unsigned long vma_start = vma->vm_start; | 689 | unsigned long vma_start = vma->vm_start; |
| 690 | unsigned long vma_end = vma->vm_end; | 690 | unsigned long vma_end = vma->vm_end; |
| @@ -746,8 +746,8 @@ int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t prot, | |||
| 746 | { | 746 | { |
| 747 | int retval = 0; | 747 | int retval = 0; |
| 748 | unsigned long i, j; | 748 | unsigned long i, j; |
| 749 | u64 base_paddr; | 749 | resource_size_t base_paddr; |
| 750 | u64 paddr; | 750 | resource_size_t paddr; |
| 751 | unsigned long vma_start = vma->vm_start; | 751 | unsigned long vma_start = vma->vm_start; |
| 752 | unsigned long vma_end = vma->vm_end; | 752 | unsigned long vma_end = vma->vm_end; |
| 753 | unsigned long vma_size = vma_end - vma_start; | 753 | unsigned long vma_size = vma_end - vma_start; |
| @@ -757,12 +757,12 @@ int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t prot, | |||
| 757 | 757 | ||
| 758 | if (is_linear_pfn_mapping(vma)) { | 758 | if (is_linear_pfn_mapping(vma)) { |
| 759 | /* reserve the whole chunk starting from vm_pgoff */ | 759 | /* reserve the whole chunk starting from vm_pgoff */ |
| 760 | paddr = (u64)vma->vm_pgoff << PAGE_SHIFT; | 760 | paddr = (resource_size_t)vma->vm_pgoff << PAGE_SHIFT; |
| 761 | return reserve_pfn_range(paddr, vma_size, prot); | 761 | return reserve_pfn_range(paddr, vma_size, prot); |
| 762 | } | 762 | } |
| 763 | 763 | ||
| 764 | /* reserve page by page using pfn and size */ | 764 | /* reserve page by page using pfn and size */ |
| 765 | base_paddr = (u64)pfn << PAGE_SHIFT; | 765 | base_paddr = (resource_size_t)pfn << PAGE_SHIFT; |
| 766 | for (i = 0; i < size; i += PAGE_SIZE) { | 766 | for (i = 0; i < size; i += PAGE_SIZE) { |
| 767 | paddr = base_paddr + i; | 767 | paddr = base_paddr + i; |
| 768 | retval = reserve_pfn_range(paddr, PAGE_SIZE, prot); | 768 | retval = reserve_pfn_range(paddr, PAGE_SIZE, prot); |
| @@ -790,7 +790,7 @@ void untrack_pfn_vma(struct vm_area_struct *vma, unsigned long pfn, | |||
| 790 | unsigned long size) | 790 | unsigned long size) |
| 791 | { | 791 | { |
| 792 | unsigned long i; | 792 | unsigned long i; |
| 793 | u64 paddr; | 793 | resource_size_t paddr; |
| 794 | unsigned long prot; | 794 | unsigned long prot; |
| 795 | unsigned long vma_start = vma->vm_start; | 795 | unsigned long vma_start = vma->vm_start; |
| 796 | unsigned long vma_end = vma->vm_end; | 796 | unsigned long vma_end = vma->vm_end; |
| @@ -801,14 +801,14 @@ void untrack_pfn_vma(struct vm_area_struct *vma, unsigned long pfn, | |||
| 801 | 801 | ||
| 802 | if (is_linear_pfn_mapping(vma)) { | 802 | if (is_linear_pfn_mapping(vma)) { |
| 803 | /* free the whole chunk starting from vm_pgoff */ | 803 | /* free the whole chunk starting from vm_pgoff */ |
| 804 | paddr = (u64)vma->vm_pgoff << PAGE_SHIFT; | 804 | paddr = (resource_size_t)vma->vm_pgoff << PAGE_SHIFT; |
| 805 | free_pfn_range(paddr, vma_size); | 805 | free_pfn_range(paddr, vma_size); |
| 806 | return; | 806 | return; |
| 807 | } | 807 | } |
| 808 | 808 | ||
| 809 | if (size != 0 && size != vma_size) { | 809 | if (size != 0 && size != vma_size) { |
| 810 | /* free page by page, using pfn and size */ | 810 | /* free page by page, using pfn and size */ |
| 811 | paddr = (u64)pfn << PAGE_SHIFT; | 811 | paddr = (resource_size_t)pfn << PAGE_SHIFT; |
| 812 | for (i = 0; i < size; i += PAGE_SIZE) { | 812 | for (i = 0; i < size; i += PAGE_SIZE) { |
| 813 | paddr = paddr + i; | 813 | paddr = paddr + i; |
| 814 | free_pfn_range(paddr, PAGE_SIZE); | 814 | free_pfn_range(paddr, PAGE_SIZE); |
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 7edf6d913c13..765fd1c56cd6 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
| @@ -688,14 +688,6 @@ void __init acpi_early_init(void) | |||
| 688 | if (acpi_disabled) | 688 | if (acpi_disabled) |
| 689 | return; | 689 | return; |
| 690 | 690 | ||
| 691 | /* | ||
| 692 | * ACPI CA initializes acpi_dbg_level to non-zero, which means | ||
| 693 | * we get debug output merely by turning on CONFIG_ACPI_DEBUG. | ||
| 694 | * Turn it off so we don't get output unless the user specifies | ||
| 695 | * acpi.debug_level. | ||
| 696 | */ | ||
| 697 | acpi_dbg_level = 0; | ||
| 698 | |||
| 699 | printk(KERN_INFO PREFIX "Core revision %08x\n", ACPI_CA_VERSION); | 691 | printk(KERN_INFO PREFIX "Core revision %08x\n", ACPI_CA_VERSION); |
| 700 | 692 | ||
| 701 | /* enable workarounds, unless strict ACPI spec. compliance */ | 693 | /* enable workarounds, unless strict ACPI spec. compliance */ |
diff --git a/drivers/acpi/utilities/utglobal.c b/drivers/acpi/utilities/utglobal.c index 670551b95e56..17ed5ac840f7 100644 --- a/drivers/acpi/utilities/utglobal.c +++ b/drivers/acpi/utilities/utglobal.c | |||
| @@ -64,7 +64,7 @@ u32 acpi_dbg_level = ACPI_DEBUG_DEFAULT; | |||
| 64 | 64 | ||
| 65 | /* Debug switch - layer (component) mask */ | 65 | /* Debug switch - layer (component) mask */ |
| 66 | 66 | ||
| 67 | u32 acpi_dbg_layer = ACPI_COMPONENT_DEFAULT | ACPI_ALL_DRIVERS; | 67 | u32 acpi_dbg_layer = 0; |
| 68 | u32 acpi_gbl_nesting_level = 0; | 68 | u32 acpi_gbl_nesting_level = 0; |
| 69 | 69 | ||
| 70 | /* Debugger globals */ | 70 | /* Debugger globals */ |
diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index 5fcd3d89c75d..4041e9143283 100644 --- a/drivers/edac/edac_device.c +++ b/drivers/edac/edac_device.c | |||
| @@ -394,6 +394,12 @@ static void edac_device_workq_function(struct work_struct *work_req) | |||
| 394 | 394 | ||
| 395 | mutex_lock(&device_ctls_mutex); | 395 | mutex_lock(&device_ctls_mutex); |
| 396 | 396 | ||
| 397 | /* If we are being removed, bail out immediately */ | ||
| 398 | if (edac_dev->op_state == OP_OFFLINE) { | ||
| 399 | mutex_unlock(&device_ctls_mutex); | ||
| 400 | return; | ||
| 401 | } | ||
| 402 | |||
| 397 | /* Only poll controllers that are running polled and have a check */ | 403 | /* Only poll controllers that are running polled and have a check */ |
| 398 | if ((edac_dev->op_state == OP_RUNNING_POLL) && | 404 | if ((edac_dev->op_state == OP_RUNNING_POLL) && |
| 399 | (edac_dev->edac_check != NULL)) { | 405 | (edac_dev->edac_check != NULL)) { |
| @@ -585,14 +591,14 @@ struct edac_device_ctl_info *edac_device_del_device(struct device *dev) | |||
| 585 | /* mark this instance as OFFLINE */ | 591 | /* mark this instance as OFFLINE */ |
| 586 | edac_dev->op_state = OP_OFFLINE; | 592 | edac_dev->op_state = OP_OFFLINE; |
| 587 | 593 | ||
| 588 | /* clear workq processing on this instance */ | ||
| 589 | edac_device_workq_teardown(edac_dev); | ||
| 590 | |||
| 591 | /* deregister from global list */ | 594 | /* deregister from global list */ |
| 592 | del_edac_device_from_global_list(edac_dev); | 595 | del_edac_device_from_global_list(edac_dev); |
| 593 | 596 | ||
| 594 | mutex_unlock(&device_ctls_mutex); | 597 | mutex_unlock(&device_ctls_mutex); |
| 595 | 598 | ||
| 599 | /* clear workq processing on this instance */ | ||
| 600 | edac_device_workq_teardown(edac_dev); | ||
| 601 | |||
| 596 | /* Tear down the sysfs entries for this instance */ | 602 | /* Tear down the sysfs entries for this instance */ |
| 597 | edac_device_remove_sysfs(edac_dev); | 603 | edac_device_remove_sysfs(edac_dev); |
| 598 | 604 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_irq.c b/drivers/gpu/drm/radeon/radeon_irq.c index 99be11418ac2..8289e16419a8 100644 --- a/drivers/gpu/drm/radeon/radeon_irq.c +++ b/drivers/gpu/drm/radeon/radeon_irq.c | |||
| @@ -44,7 +44,7 @@ void radeon_irq_set_state(struct drm_device *dev, u32 mask, int state) | |||
| 44 | else | 44 | else |
| 45 | dev_priv->irq_enable_reg &= ~mask; | 45 | dev_priv->irq_enable_reg &= ~mask; |
| 46 | 46 | ||
| 47 | if (!dev->irq_enabled) | 47 | if (dev->irq_enabled) |
| 48 | RADEON_WRITE(RADEON_GEN_INT_CNTL, dev_priv->irq_enable_reg); | 48 | RADEON_WRITE(RADEON_GEN_INT_CNTL, dev_priv->irq_enable_reg); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| @@ -57,7 +57,7 @@ static void r500_vbl_irq_set_state(struct drm_device *dev, u32 mask, int state) | |||
| 57 | else | 57 | else |
| 58 | dev_priv->r500_disp_irq_reg &= ~mask; | 58 | dev_priv->r500_disp_irq_reg &= ~mask; |
| 59 | 59 | ||
| 60 | if (!dev->irq_enabled) | 60 | if (dev->irq_enabled) |
| 61 | RADEON_WRITE(R500_DxMODE_INT_MASK, dev_priv->r500_disp_irq_reg); | 61 | RADEON_WRITE(R500_DxMODE_INT_MASK, dev_priv->r500_disp_irq_reg); |
| 62 | } | 62 | } |
| 63 | 63 | ||
diff --git a/drivers/ide/cs5530.c b/drivers/ide/cs5530.c index 53f079cc00af..d8ede85fe17f 100644 --- a/drivers/ide/cs5530.c +++ b/drivers/ide/cs5530.c | |||
| @@ -81,11 +81,12 @@ static u8 cs5530_udma_filter(ide_drive_t *drive) | |||
| 81 | { | 81 | { |
| 82 | ide_hwif_t *hwif = drive->hwif; | 82 | ide_hwif_t *hwif = drive->hwif; |
| 83 | ide_drive_t *mate = ide_get_pair_dev(drive); | 83 | ide_drive_t *mate = ide_get_pair_dev(drive); |
| 84 | u16 *mateid = mate->id; | 84 | u16 *mateid; |
| 85 | u8 mask = hwif->ultra_mask; | 85 | u8 mask = hwif->ultra_mask; |
| 86 | 86 | ||
| 87 | if (mate == NULL) | 87 | if (mate == NULL) |
| 88 | goto out; | 88 | goto out; |
| 89 | mateid = mate->id; | ||
| 89 | 90 | ||
| 90 | if (ata_id_has_dma(mateid) && __ide_dma_bad_drive(mate) == 0) { | 91 | if (ata_id_has_dma(mateid) && __ide_dma_bad_drive(mate) == 0) { |
| 91 | if ((mateid[ATA_ID_FIELD_VALID] & 4) && | 92 | if ((mateid[ATA_ID_FIELD_VALID] & 4) && |
diff --git a/drivers/ide/sc1200.c b/drivers/ide/sc1200.c index f1a8758e3a99..ec7f766ef5e4 100644 --- a/drivers/ide/sc1200.c +++ b/drivers/ide/sc1200.c | |||
| @@ -104,11 +104,12 @@ static u8 sc1200_udma_filter(ide_drive_t *drive) | |||
| 104 | { | 104 | { |
| 105 | ide_hwif_t *hwif = drive->hwif; | 105 | ide_hwif_t *hwif = drive->hwif; |
| 106 | ide_drive_t *mate = ide_get_pair_dev(drive); | 106 | ide_drive_t *mate = ide_get_pair_dev(drive); |
| 107 | u16 *mateid = mate->id; | 107 | u16 *mateid; |
| 108 | u8 mask = hwif->ultra_mask; | 108 | u8 mask = hwif->ultra_mask; |
| 109 | 109 | ||
| 110 | if (mate == NULL) | 110 | if (mate == NULL) |
| 111 | goto out; | 111 | goto out; |
| 112 | mateid = mate->id; | ||
| 112 | 113 | ||
| 113 | if (ata_id_has_dma(mateid) && __ide_dma_bad_drive(mate) == 0) { | 114 | if (ata_id_has_dma(mateid) && __ide_dma_bad_drive(mate) == 0) { |
| 114 | if ((mateid[ATA_ID_FIELD_VALID] & 4) && | 115 | if ((mateid[ATA_ID_FIELD_VALID] & 4) && |
diff --git a/drivers/media/dvb/b2c2/Kconfig b/drivers/media/dvb/b2c2/Kconfig index 73dc2ee9b014..b34301d56cd2 100644 --- a/drivers/media/dvb/b2c2/Kconfig +++ b/drivers/media/dvb/b2c2/Kconfig | |||
| @@ -9,11 +9,11 @@ config DVB_B2C2_FLEXCOP | |||
| 9 | select DVB_STV0297 if !DVB_FE_CUSTOMISE | 9 | select DVB_STV0297 if !DVB_FE_CUSTOMISE |
| 10 | select DVB_BCM3510 if !DVB_FE_CUSTOMISE | 10 | select DVB_BCM3510 if !DVB_FE_CUSTOMISE |
| 11 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE | 11 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE |
| 12 | select MEDIA_TUNER_SIMPLE if !DVB_FE_CUSTOMISE | ||
| 13 | select DVB_S5H1420 if !DVB_FE_CUSTOMISE | 12 | select DVB_S5H1420 if !DVB_FE_CUSTOMISE |
| 14 | select DVB_TUNER_ITD1000 if !DVB_FE_CUSTOMISE | 13 | select DVB_TUNER_ITD1000 if !DVB_FE_CUSTOMISE |
| 15 | select DVB_ISL6421 if !DVB_FE_CUSTOMISE | 14 | select DVB_ISL6421 if !DVB_FE_CUSTOMISE |
| 16 | select DVB_CX24123 if !DVB_FE_CUSTOMISE | 15 | select DVB_CX24123 if !DVB_FE_CUSTOMISE |
| 16 | select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMIZE | ||
| 17 | help | 17 | help |
| 18 | Support for the digital TV receiver chip made by B2C2 Inc. included in | 18 | Support for the digital TV receiver chip made by B2C2 Inc. included in |
| 19 | Technisats PCI cards and USB boxes. | 19 | Technisats PCI cards and USB boxes. |
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c index a127a4175c40..5cded3708541 100644 --- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c +++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |||
| @@ -628,12 +628,14 @@ int flexcop_frontend_init(struct flexcop_device *fc) | |||
| 628 | } | 628 | } |
| 629 | 629 | ||
| 630 | /* try the cable dvb (stv0297) */ | 630 | /* try the cable dvb (stv0297) */ |
| 631 | fc->fc_i2c_adap[0].no_base_addr = 1; | ||
| 631 | fc->fe = dvb_attach(stv0297_attach, &alps_tdee4_stv0297_config, i2c); | 632 | fc->fe = dvb_attach(stv0297_attach, &alps_tdee4_stv0297_config, i2c); |
| 632 | if (fc->fe != NULL) { | 633 | if (fc->fe != NULL) { |
| 633 | fc->dev_type = FC_CABLE; | 634 | fc->dev_type = FC_CABLE; |
| 634 | fc->fe->ops.tuner_ops.set_params = alps_tdee4_stv0297_tuner_set_params; | 635 | fc->fe->ops.tuner_ops.set_params = alps_tdee4_stv0297_tuner_set_params; |
| 635 | goto fe_found; | 636 | goto fe_found; |
| 636 | } | 637 | } |
| 638 | fc->fc_i2c_adap[0].no_base_addr = 0; | ||
| 637 | 639 | ||
| 638 | /* try the sky v2.3 (vp310/Samsung tbdu18132(tsa5059)) */ | 640 | /* try the sky v2.3 (vp310/Samsung tbdu18132(tsa5059)) */ |
| 639 | fc->fe = dvb_attach(mt312_attach, | 641 | fc->fe = dvb_attach(mt312_attach, |
diff --git a/drivers/media/dvb/b2c2/flexcop-i2c.c b/drivers/media/dvb/b2c2/flexcop-i2c.c index 43a112ec6d44..f13783f08f0f 100644 --- a/drivers/media/dvb/b2c2/flexcop-i2c.c +++ b/drivers/media/dvb/b2c2/flexcop-i2c.c | |||
| @@ -47,9 +47,13 @@ static int flexcop_i2c_read4(struct flexcop_i2c_adapter *i2c, | |||
| 47 | int len = r100.tw_sm_c_100.total_bytes, /* remember total_bytes is buflen-1 */ | 47 | int len = r100.tw_sm_c_100.total_bytes, /* remember total_bytes is buflen-1 */ |
| 48 | ret; | 48 | ret; |
| 49 | 49 | ||
| 50 | r100.tw_sm_c_100.no_base_addr_ack_error = i2c->no_base_addr; | ||
| 51 | ret = flexcop_i2c_operation(i2c->fc, &r100); | 50 | ret = flexcop_i2c_operation(i2c->fc, &r100); |
| 52 | if (ret != 0) { | 51 | if (ret != 0) { |
| 52 | deb_i2c("Retrying operation\n"); | ||
| 53 | r100.tw_sm_c_100.no_base_addr_ack_error = i2c->no_base_addr; | ||
| 54 | ret = flexcop_i2c_operation(i2c->fc, &r100); | ||
| 55 | } | ||
| 56 | if (ret != 0) { | ||
| 53 | deb_i2c("read failed. %d\n", ret); | 57 | deb_i2c("read failed. %d\n", ret); |
| 54 | return ret; | 58 | return ret; |
| 55 | } | 59 | } |
diff --git a/drivers/media/dvb/bt8xx/Kconfig b/drivers/media/dvb/bt8xx/Kconfig index 7e9c090fc04e..27edb0ece587 100644 --- a/drivers/media/dvb/bt8xx/Kconfig +++ b/drivers/media/dvb/bt8xx/Kconfig | |||
| @@ -8,7 +8,7 @@ config DVB_BT8XX | |||
| 8 | select DVB_OR51211 if !DVB_FE_CUSTOMISE | 8 | select DVB_OR51211 if !DVB_FE_CUSTOMISE |
| 9 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE | 9 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE |
| 10 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE | 10 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE |
| 11 | select MEDIA_TUNER_SIMPLE if !DVB_FE_CUSTOMISE | 11 | select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMIZE |
| 12 | help | 12 | help |
| 13 | Support for PCI cards based on the Bt8xx PCI bridge. Examples are | 13 | Support for PCI cards based on the Bt8xx PCI bridge. Examples are |
| 14 | the Nebula cards, the Pinnacle PCTV cards, the Twinhan DST cards, | 14 | the Nebula cards, the Pinnacle PCTV cards, the Twinhan DST cards, |
diff --git a/drivers/media/dvb/dvb-usb/Kconfig b/drivers/media/dvb/dvb-usb/Kconfig index 62b68c291d99..49f7b20c25d6 100644 --- a/drivers/media/dvb/dvb-usb/Kconfig +++ b/drivers/media/dvb/dvb-usb/Kconfig | |||
| @@ -24,8 +24,8 @@ config DVB_USB_A800 | |||
| 24 | tristate "AVerMedia AverTV DVB-T USB 2.0 (A800)" | 24 | tristate "AVerMedia AverTV DVB-T USB 2.0 (A800)" |
| 25 | depends on DVB_USB | 25 | depends on DVB_USB |
| 26 | select DVB_DIB3000MC | 26 | select DVB_DIB3000MC |
| 27 | select MEDIA_TUNER_MT2060 if !DVB_FE_CUSTOMISE | ||
| 28 | select DVB_PLL if !DVB_FE_CUSTOMISE | 27 | select DVB_PLL if !DVB_FE_CUSTOMISE |
| 28 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMIZE | ||
| 29 | help | 29 | help |
| 30 | Say Y here to support the AVerMedia AverTV DVB-T USB 2.0 (A800) receiver. | 30 | Say Y here to support the AVerMedia AverTV DVB-T USB 2.0 (A800) receiver. |
| 31 | 31 | ||
| @@ -34,7 +34,7 @@ config DVB_USB_DIBUSB_MB | |||
| 34 | depends on DVB_USB | 34 | depends on DVB_USB |
| 35 | select DVB_PLL if !DVB_FE_CUSTOMISE | 35 | select DVB_PLL if !DVB_FE_CUSTOMISE |
| 36 | select DVB_DIB3000MB | 36 | select DVB_DIB3000MB |
| 37 | select MEDIA_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 37 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMIZE |
| 38 | help | 38 | help |
| 39 | Support for USB 1.1 and 2.0 DVB-T receivers based on reference designs made by | 39 | Support for USB 1.1 and 2.0 DVB-T receivers based on reference designs made by |
| 40 | DiBcom (<http://www.dibcom.fr>) equipped with a DiB3000M-B demodulator. | 40 | DiBcom (<http://www.dibcom.fr>) equipped with a DiB3000M-B demodulator. |
| @@ -55,7 +55,7 @@ config DVB_USB_DIBUSB_MC | |||
| 55 | tristate "DiBcom USB DVB-T devices (based on the DiB3000M-C/P) (see help for device list)" | 55 | tristate "DiBcom USB DVB-T devices (based on the DiB3000M-C/P) (see help for device list)" |
| 56 | depends on DVB_USB | 56 | depends on DVB_USB |
| 57 | select DVB_DIB3000MC | 57 | select DVB_DIB3000MC |
| 58 | select MEDIA_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 58 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMIZE |
| 59 | help | 59 | help |
| 60 | Support for USB2.0 DVB-T receivers based on reference designs made by | 60 | Support for USB2.0 DVB-T receivers based on reference designs made by |
| 61 | DiBcom (<http://www.dibcom.fr>) equipped with a DiB3000M-C/P demodulator. | 61 | DiBcom (<http://www.dibcom.fr>) equipped with a DiB3000M-C/P demodulator. |
| @@ -73,11 +73,11 @@ config DVB_USB_DIB0700 | |||
| 73 | select DVB_DIB7000M | 73 | select DVB_DIB7000M |
| 74 | select DVB_DIB3000MC | 74 | select DVB_DIB3000MC |
| 75 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE | 75 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE |
| 76 | select MEDIA_TUNER_MT2060 if !DVB_FE_CUSTOMISE | ||
| 77 | select MEDIA_TUNER_MT2266 if !DVB_FE_CUSTOMISE | ||
| 78 | select MEDIA_TUNER_XC2028 if !DVB_FE_CUSTOMISE | ||
| 79 | select MEDIA_TUNER_XC5000 if !DVB_FE_CUSTOMIZE | ||
| 80 | select DVB_TUNER_DIB0070 | 76 | select DVB_TUNER_DIB0070 |
| 77 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMIZE | ||
| 78 | select MEDIA_TUNER_MT2266 if !MEDIA_TUNER_CUSTOMIZE | ||
| 79 | select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMIZE | ||
| 80 | select MEDIA_TUNER_XC5000 if !MEDIA_TUNER_CUSTOMIZE | ||
| 81 | help | 81 | help |
| 82 | Support for USB2.0/1.1 DVB receivers based on the DiB0700 USB bridge. The | 82 | Support for USB2.0/1.1 DVB receivers based on the DiB0700 USB bridge. The |
| 83 | USB bridge is also present in devices having the DiB7700 DVB-T-USB | 83 | USB bridge is also present in devices having the DiB7700 DVB-T-USB |
| @@ -95,7 +95,7 @@ config DVB_USB_UMT_010 | |||
| 95 | depends on DVB_USB | 95 | depends on DVB_USB |
| 96 | select DVB_PLL if !DVB_FE_CUSTOMISE | 96 | select DVB_PLL if !DVB_FE_CUSTOMISE |
| 97 | select DVB_DIB3000MC | 97 | select DVB_DIB3000MC |
| 98 | select MEDIA_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 98 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMIZE |
| 99 | help | 99 | help |
| 100 | Say Y here to support the HanfTek UMT-010 USB2.0 stick-sized DVB-T receiver. | 100 | Say Y here to support the HanfTek UMT-010 USB2.0 stick-sized DVB-T receiver. |
| 101 | 101 | ||
| @@ -107,11 +107,11 @@ config DVB_USB_CXUSB | |||
| 107 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE | 107 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE |
| 108 | select DVB_MT352 if !DVB_FE_CUSTOMISE | 108 | select DVB_MT352 if !DVB_FE_CUSTOMISE |
| 109 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE | 109 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE |
| 110 | select MEDIA_TUNER_SIMPLE if !DVB_FE_CUSTOMISE | ||
| 111 | select MEDIA_TUNER_XC2028 if !DVB_FE_CUSTOMISE | ||
| 112 | select MEDIA_TUNER_MXL5005S if !DVB_FE_CUSTOMISE | ||
| 113 | select DVB_DIB7000P if !DVB_FE_CUSTOMISE | 110 | select DVB_DIB7000P if !DVB_FE_CUSTOMISE |
| 114 | select DVB_TUNER_DIB0070 if !DVB_FE_CUSTOMISE | 111 | select DVB_TUNER_DIB0070 if !DVB_FE_CUSTOMISE |
| 112 | select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMIZE | ||
| 113 | select MEDIA_TUNER_XC2028 if !MEDIA_TUNER_CUSTOMIZE | ||
| 114 | select MEDIA_TUNER_MXL5005S if !MEDIA_TUNER_CUSTOMIZE | ||
| 115 | help | 115 | help |
| 116 | Say Y here to support the Conexant USB2.0 hybrid reference design. | 116 | Say Y here to support the Conexant USB2.0 hybrid reference design. |
| 117 | Currently, only DVB and ATSC modes are supported, analog mode | 117 | Currently, only DVB and ATSC modes are supported, analog mode |
| @@ -124,9 +124,9 @@ config DVB_USB_M920X | |||
| 124 | tristate "Uli m920x DVB-T USB2.0 support" | 124 | tristate "Uli m920x DVB-T USB2.0 support" |
| 125 | depends on DVB_USB | 125 | depends on DVB_USB |
| 126 | select DVB_MT352 if !DVB_FE_CUSTOMISE | 126 | select DVB_MT352 if !DVB_FE_CUSTOMISE |
| 127 | select MEDIA_TUNER_QT1010 if !DVB_FE_CUSTOMISE | ||
| 128 | select MEDIA_TUNER_TDA827X if !DVB_FE_CUSTOMISE | ||
| 129 | select DVB_TDA1004X if !DVB_FE_CUSTOMISE | 127 | select DVB_TDA1004X if !DVB_FE_CUSTOMISE |
| 128 | select MEDIA_TUNER_QT1010 if !MEDIA_TUNER_CUSTOMIZE | ||
| 129 | select MEDIA_TUNER_TDA827X if !MEDIA_TUNER_CUSTOMIZE | ||
| 130 | help | 130 | help |
| 131 | Say Y here to support the MSI Mega Sky 580 USB2.0 DVB-T receiver. | 131 | Say Y here to support the MSI Mega Sky 580 USB2.0 DVB-T receiver. |
| 132 | Currently, only devices with a product id of | 132 | Currently, only devices with a product id of |
| @@ -137,7 +137,7 @@ config DVB_USB_GL861 | |||
| 137 | tristate "Genesys Logic GL861 USB2.0 support" | 137 | tristate "Genesys Logic GL861 USB2.0 support" |
| 138 | depends on DVB_USB | 138 | depends on DVB_USB |
| 139 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE | 139 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE |
| 140 | select MEDIA_TUNER_QT1010 if !DVB_FE_CUSTOMISE | 140 | select MEDIA_TUNER_QT1010 if !MEDIA_TUNER_CUSTOMIZE |
| 141 | help | 141 | help |
| 142 | Say Y here to support the MSI Megasky 580 (55801) DVB-T USB2.0 | 142 | Say Y here to support the MSI Megasky 580 (55801) DVB-T USB2.0 |
| 143 | receiver with USB ID 0db0:5581. | 143 | receiver with USB ID 0db0:5581. |
| @@ -146,7 +146,7 @@ config DVB_USB_AU6610 | |||
| 146 | tristate "Alcor Micro AU6610 USB2.0 support" | 146 | tristate "Alcor Micro AU6610 USB2.0 support" |
| 147 | depends on DVB_USB | 147 | depends on DVB_USB |
| 148 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE | 148 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE |
| 149 | select MEDIA_TUNER_QT1010 if !DVB_FE_CUSTOMISE | 149 | select MEDIA_TUNER_QT1010 if !MEDIA_TUNER_CUSTOMIZE |
| 150 | help | 150 | help |
| 151 | Say Y here to support the Sigmatek DVB-110 DVB-T USB2.0 receiver. | 151 | Say Y here to support the Sigmatek DVB-110 DVB-T USB2.0 receiver. |
| 152 | 152 | ||
| @@ -198,8 +198,8 @@ config DVB_USB_NOVA_T_USB2 | |||
| 198 | tristate "Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 support" | 198 | tristate "Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 support" |
| 199 | depends on DVB_USB | 199 | depends on DVB_USB |
| 200 | select DVB_DIB3000MC | 200 | select DVB_DIB3000MC |
| 201 | select MEDIA_TUNER_MT2060 if !DVB_FE_CUSTOMISE | ||
| 202 | select DVB_PLL if !DVB_FE_CUSTOMISE | 201 | select DVB_PLL if !DVB_FE_CUSTOMISE |
| 202 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMIZE | ||
| 203 | help | 203 | help |
| 204 | Say Y here to support the Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 receiver. | 204 | Say Y here to support the Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 receiver. |
| 205 | 205 | ||
| @@ -235,8 +235,8 @@ config DVB_USB_OPERA1 | |||
| 235 | config DVB_USB_AF9005 | 235 | config DVB_USB_AF9005 |
| 236 | tristate "Afatech AF9005 DVB-T USB1.1 support" | 236 | tristate "Afatech AF9005 DVB-T USB1.1 support" |
| 237 | depends on DVB_USB && EXPERIMENTAL | 237 | depends on DVB_USB && EXPERIMENTAL |
| 238 | select MEDIA_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 238 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMIZE |
| 239 | select MEDIA_TUNER_QT1010 if !DVB_FE_CUSTOMISE | 239 | select MEDIA_TUNER_QT1010 if !MEDIA_TUNER_CUSTOMIZE |
| 240 | help | 240 | help |
| 241 | Say Y here to support the Afatech AF9005 based DVB-T USB1.1 receiver | 241 | Say Y here to support the Afatech AF9005 based DVB-T USB1.1 receiver |
| 242 | and the TerraTec Cinergy T USB XE (Rev.1) | 242 | and the TerraTec Cinergy T USB XE (Rev.1) |
| @@ -284,7 +284,7 @@ config DVB_USB_DTV5100 | |||
| 284 | tristate "AME DTV-5100 USB2.0 DVB-T support" | 284 | tristate "AME DTV-5100 USB2.0 DVB-T support" |
| 285 | depends on DVB_USB | 285 | depends on DVB_USB |
| 286 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE | 286 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE |
| 287 | select MEDIA_TUNER_QT1010 if !DVB_FE_CUSTOMISE | 287 | select MEDIA_TUNER_QT1010 if !MEDIA_TUNER_CUSTOMIZE |
| 288 | help | 288 | help |
| 289 | Say Y here to support the AME DTV-5100 USB2.0 DVB-T receiver. | 289 | Say Y here to support the AME DTV-5100 USB2.0 DVB-T receiver. |
| 290 | 290 | ||
| @@ -293,9 +293,9 @@ config DVB_USB_AF9015 | |||
| 293 | depends on DVB_USB && EXPERIMENTAL | 293 | depends on DVB_USB && EXPERIMENTAL |
| 294 | select DVB_AF9013 | 294 | select DVB_AF9013 |
| 295 | select DVB_PLL if !DVB_FE_CUSTOMISE | 295 | select DVB_PLL if !DVB_FE_CUSTOMISE |
| 296 | select MEDIA_TUNER_MT2060 if !DVB_FE_CUSTOMISE | 296 | select MEDIA_TUNER_MT2060 if !MEDIA_TUNER_CUSTOMIZE |
| 297 | select MEDIA_TUNER_QT1010 if !DVB_FE_CUSTOMISE | 297 | select MEDIA_TUNER_QT1010 if !MEDIA_TUNER_CUSTOMIZE |
| 298 | select MEDIA_TUNER_TDA18271 if !DVB_FE_CUSTOMISE | 298 | select MEDIA_TUNER_TDA18271 if !MEDIA_TUNER_CUSTOMIZE |
| 299 | select MEDIA_TUNER_MXL5005S if !DVB_FE_CUSTOMISE | 299 | select MEDIA_TUNER_MXL5005S if !MEDIA_TUNER_CUSTOMIZE |
| 300 | help | 300 | help |
| 301 | Say Y here to support the Afatech AF9015 based DVB-T USB2.0 receiver | 301 | Say Y here to support the Afatech AF9015 based DVB-T USB2.0 receiver |
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c index f28d3ae59e04..391732788911 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_devices.c +++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c | |||
| @@ -446,13 +446,13 @@ static int stk7700ph_tuner_attach(struct dvb_usb_adapter *adap) | |||
| 446 | == NULL ? -ENODEV : 0; | 446 | == NULL ? -ENODEV : 0; |
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | #define DEFAULT_RC_INTERVAL 150 | 449 | #define DEFAULT_RC_INTERVAL 50 |
| 450 | 450 | ||
| 451 | static u8 rc_request[] = { REQUEST_POLL_RC, 0 }; | 451 | static u8 rc_request[] = { REQUEST_POLL_RC, 0 }; |
| 452 | 452 | ||
| 453 | /* Number of keypresses to ignore before start repeating */ | 453 | /* Number of keypresses to ignore before start repeating */ |
| 454 | #define RC_REPEAT_DELAY 2 | 454 | #define RC_REPEAT_DELAY 6 |
| 455 | #define RC_REPEAT_DELAY_V1_20 5 | 455 | #define RC_REPEAT_DELAY_V1_20 10 |
| 456 | 456 | ||
| 457 | 457 | ||
| 458 | 458 | ||
diff --git a/drivers/media/dvb/ttpci/Kconfig b/drivers/media/dvb/ttpci/Kconfig index 867027ceab3e..401a04effc06 100644 --- a/drivers/media/dvb/ttpci/Kconfig +++ b/drivers/media/dvb/ttpci/Kconfig | |||
| @@ -106,7 +106,7 @@ config DVB_BUDGET_CI | |||
| 106 | select DVB_TDA1004X if !DVB_FE_CUSTOMISE | 106 | select DVB_TDA1004X if !DVB_FE_CUSTOMISE |
| 107 | select DVB_LNBP21 if !DVB_FE_CUSTOMISE | 107 | select DVB_LNBP21 if !DVB_FE_CUSTOMISE |
| 108 | select DVB_TDA10023 if !DVB_FE_CUSTOMISE | 108 | select DVB_TDA10023 if !DVB_FE_CUSTOMISE |
| 109 | select MEDIA_TUNER_TDA827X if !DVB_FE_CUSTOMISE | 109 | select MEDIA_TUNER_TDA827X if !MEDIA_TUNER_CUSTOMIZE |
| 110 | select VIDEO_IR | 110 | select VIDEO_IR |
| 111 | help | 111 | help |
| 112 | Support for simple SAA7146 based DVB cards | 112 | Support for simple SAA7146 based DVB cards |
diff --git a/drivers/media/video/compat_ioctl32.c b/drivers/media/video/compat_ioctl32.c index e6ca4012b5f0..0ea85a05e5c0 100644 --- a/drivers/media/video/compat_ioctl32.c +++ b/drivers/media/video/compat_ioctl32.c | |||
| @@ -831,7 +831,7 @@ long v4l_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) | |||
| 831 | { | 831 | { |
| 832 | int ret = -ENOIOCTLCMD; | 832 | int ret = -ENOIOCTLCMD; |
| 833 | 833 | ||
| 834 | if (!file->f_op->ioctl) | 834 | if (!file->f_op->ioctl && !file->f_op->unlocked_ioctl) |
| 835 | return ret; | 835 | return ret; |
| 836 | 836 | ||
| 837 | switch (cmd) { | 837 | switch (cmd) { |
diff --git a/drivers/media/video/cx18/Kconfig b/drivers/media/video/cx18/Kconfig index ef48565de7f1..8940b5387dec 100644 --- a/drivers/media/video/cx18/Kconfig +++ b/drivers/media/video/cx18/Kconfig | |||
| @@ -9,7 +9,7 @@ config VIDEO_CX18 | |||
| 9 | select VIDEO_CX2341X | 9 | select VIDEO_CX2341X |
| 10 | select VIDEO_CS5345 | 10 | select VIDEO_CS5345 |
| 11 | select DVB_S5H1409 if !DVB_FE_CUSTOMISE | 11 | select DVB_S5H1409 if !DVB_FE_CUSTOMISE |
| 12 | select MEDIA_TUNER_MXL5005S if !DVB_FE_CUSTOMISE | 12 | select MEDIA_TUNER_MXL5005S if !MEDIA_TUNER_CUSTOMIZE |
| 13 | ---help--- | 13 | ---help--- |
| 14 | This is a video4linux driver for Conexant cx23418 based | 14 | This is a video4linux driver for Conexant cx23418 based |
| 15 | PCI combo video recorder devices. | 15 | PCI combo video recorder devices. |
diff --git a/drivers/media/video/cx23885/Kconfig b/drivers/media/video/cx23885/Kconfig index 8c1b7fa47a41..00f1e2e8889e 100644 --- a/drivers/media/video/cx23885/Kconfig +++ b/drivers/media/video/cx23885/Kconfig | |||
| @@ -11,16 +11,16 @@ config VIDEO_CX23885 | |||
| 11 | select VIDEO_CX25840 | 11 | select VIDEO_CX25840 |
| 12 | select VIDEO_CX2341X | 12 | select VIDEO_CX2341X |
| 13 | select DVB_DIB7000P if !DVB_FE_CUSTOMISE | 13 | select DVB_DIB7000P if !DVB_FE_CUSTOMISE |
| 14 | select MEDIA_TUNER_MT2131 if !DVB_FE_CUSTOMISE | ||
| 15 | select DVB_S5H1409 if !DVB_FE_CUSTOMISE | 14 | select DVB_S5H1409 if !DVB_FE_CUSTOMISE |
| 16 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE | 15 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE |
| 17 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE | 16 | select DVB_LGDT330X if !DVB_FE_CUSTOMISE |
| 18 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE | 17 | select DVB_ZL10353 if !DVB_FE_CUSTOMISE |
| 18 | select DVB_TDA10048 if !DVB_FE_CUSTOMIZE | ||
| 19 | select MEDIA_TUNER_MT2131 if !MEDIA_TUNER_CUSTOMIZE | ||
| 19 | select MEDIA_TUNER_XC2028 if !DVB_FE_CUSTOMIZE | 20 | select MEDIA_TUNER_XC2028 if !DVB_FE_CUSTOMIZE |
| 20 | select MEDIA_TUNER_TDA8290 if !DVB_FE_CUSTOMIZE | 21 | select MEDIA_TUNER_TDA8290 if !DVB_FE_CUSTOMIZE |
| 21 | select MEDIA_TUNER_TDA18271 if !DVB_FE_CUSTOMIZE | 22 | select MEDIA_TUNER_TDA18271 if !DVB_FE_CUSTOMIZE |
| 22 | select MEDIA_TUNER_XC5000 if !DVB_FE_CUSTOMIZE | 23 | select MEDIA_TUNER_XC5000 if !DVB_FE_CUSTOMIZE |
| 23 | select DVB_TDA10048 if !DVB_FE_CUSTOMIZE | ||
| 24 | ---help--- | 24 | ---help--- |
| 25 | This is a video4linux driver for Conexant 23885 based | 25 | This is a video4linux driver for Conexant 23885 based |
| 26 | TV cards. | 26 | TV cards. |
diff --git a/drivers/media/video/cx88/Kconfig b/drivers/media/video/cx88/Kconfig index 0b9e5fac6239..b0f837588e01 100644 --- a/drivers/media/video/cx88/Kconfig +++ b/drivers/media/video/cx88/Kconfig | |||
| @@ -56,12 +56,12 @@ config VIDEO_CX88_DVB | |||
| 56 | select DVB_NXT200X if !DVB_FE_CUSTOMISE | 56 | select DVB_NXT200X if !DVB_FE_CUSTOMISE |
| 57 | select DVB_CX24123 if !DVB_FE_CUSTOMISE | 57 | select DVB_CX24123 if !DVB_FE_CUSTOMISE |
| 58 | select DVB_ISL6421 if !DVB_FE_CUSTOMISE | 58 | select DVB_ISL6421 if !DVB_FE_CUSTOMISE |
| 59 | select MEDIA_TUNER_SIMPLE if !DVB_FE_CUSTOMISE | ||
| 60 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE | 59 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE |
| 61 | select DVB_CX24116 if !DVB_FE_CUSTOMISE | 60 | select DVB_CX24116 if !DVB_FE_CUSTOMISE |
| 62 | select DVB_STV0299 if !DVB_FE_CUSTOMISE | 61 | select DVB_STV0299 if !DVB_FE_CUSTOMISE |
| 63 | select DVB_STV0288 if !DVB_FE_CUSTOMISE | 62 | select DVB_STV0288 if !DVB_FE_CUSTOMISE |
| 64 | select DVB_STB6000 if !DVB_FE_CUSTOMISE | 63 | select DVB_STB6000 if !DVB_FE_CUSTOMISE |
| 64 | select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMIZE | ||
| 65 | ---help--- | 65 | ---help--- |
| 66 | This adds support for DVB/ATSC cards based on the | 66 | This adds support for DVB/ATSC cards based on the |
| 67 | Conexant 2388x chip. | 67 | Conexant 2388x chip. |
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index 610f535a257c..4ea1f1e04897 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
| @@ -549,10 +549,11 @@ static int em28xx_config(struct em28xx *dev) | |||
| 549 | static void em28xx_config_i2c(struct em28xx *dev) | 549 | static void em28xx_config_i2c(struct em28xx *dev) |
| 550 | { | 550 | { |
| 551 | struct v4l2_routing route; | 551 | struct v4l2_routing route; |
| 552 | int zero = 0; | ||
| 552 | 553 | ||
| 553 | route.input = INPUT(dev->ctl_input)->vmux; | 554 | route.input = INPUT(dev->ctl_input)->vmux; |
| 554 | route.output = 0; | 555 | route.output = 0; |
| 555 | em28xx_i2c_call_clients(dev, VIDIOC_INT_RESET, NULL); | 556 | em28xx_i2c_call_clients(dev, VIDIOC_INT_RESET, &zero); |
| 556 | em28xx_i2c_call_clients(dev, VIDIOC_INT_S_VIDEO_ROUTING, &route); | 557 | em28xx_i2c_call_clients(dev, VIDIOC_INT_S_VIDEO_ROUTING, &route); |
| 557 | em28xx_i2c_call_clients(dev, VIDIOC_STREAMON, NULL); | 558 | em28xx_i2c_call_clients(dev, VIDIOC_STREAMON, NULL); |
| 558 | } | 559 | } |
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 748a87e82e44..02a6e9ef0337 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
| @@ -1264,10 +1264,10 @@ static int vidioc_s_jpegcomp(struct file *file, void *priv, | |||
| 1264 | struct gspca_dev *gspca_dev = priv; | 1264 | struct gspca_dev *gspca_dev = priv; |
| 1265 | int ret; | 1265 | int ret; |
| 1266 | 1266 | ||
| 1267 | if (mutex_lock_interruptible(&gspca_dev->usb_lock)) | ||
| 1268 | return -ERESTARTSYS; | ||
| 1269 | if (!gspca_dev->sd_desc->set_jcomp) | 1267 | if (!gspca_dev->sd_desc->set_jcomp) |
| 1270 | return -EINVAL; | 1268 | return -EINVAL; |
| 1269 | if (mutex_lock_interruptible(&gspca_dev->usb_lock)) | ||
| 1270 | return -ERESTARTSYS; | ||
| 1271 | ret = gspca_dev->sd_desc->set_jcomp(gspca_dev, jpegcomp); | 1271 | ret = gspca_dev->sd_desc->set_jcomp(gspca_dev, jpegcomp); |
| 1272 | mutex_unlock(&gspca_dev->usb_lock); | 1272 | mutex_unlock(&gspca_dev->usb_lock); |
| 1273 | return ret; | 1273 | return ret; |
diff --git a/drivers/media/video/pvrusb2/Kconfig b/drivers/media/video/pvrusb2/Kconfig index 19eb274c9cd0..854c2a885358 100644 --- a/drivers/media/video/pvrusb2/Kconfig +++ b/drivers/media/video/pvrusb2/Kconfig | |||
| @@ -42,7 +42,7 @@ config VIDEO_PVRUSB2_DVB | |||
| 42 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE | 42 | select DVB_S5H1411 if !DVB_FE_CUSTOMISE |
| 43 | select DVB_TDA10048 if !DVB_FE_CUSTOMIZE | 43 | select DVB_TDA10048 if !DVB_FE_CUSTOMIZE |
| 44 | select MEDIA_TUNER_TDA18271 if !DVB_FE_CUSTOMIZE | 44 | select MEDIA_TUNER_TDA18271 if !DVB_FE_CUSTOMIZE |
| 45 | select MEDIA_TUNER_SIMPLE if !DVB_FE_CUSTOMISE | 45 | select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMIZE |
| 46 | select MEDIA_TUNER_TDA8290 if !DVB_FE_CUSTOMIZE | 46 | select MEDIA_TUNER_TDA8290 if !DVB_FE_CUSTOMIZE |
| 47 | ---help--- | 47 | ---help--- |
| 48 | 48 | ||
diff --git a/drivers/media/video/saa7134/Kconfig b/drivers/media/video/saa7134/Kconfig index 7021bbf5897b..fc2164e28e76 100644 --- a/drivers/media/video/saa7134/Kconfig +++ b/drivers/media/video/saa7134/Kconfig | |||
| @@ -34,9 +34,9 @@ config VIDEO_SAA7134_DVB | |||
| 34 | select DVB_NXT200X if !DVB_FE_CUSTOMISE | 34 | select DVB_NXT200X if !DVB_FE_CUSTOMISE |
| 35 | select DVB_TDA10086 if !DVB_FE_CUSTOMISE | 35 | select DVB_TDA10086 if !DVB_FE_CUSTOMISE |
| 36 | select DVB_TDA826X if !DVB_FE_CUSTOMISE | 36 | select DVB_TDA826X if !DVB_FE_CUSTOMISE |
| 37 | select MEDIA_TUNER_TDA827X if !DVB_FE_CUSTOMISE | ||
| 38 | select DVB_ISL6421 if !DVB_FE_CUSTOMISE | 37 | select DVB_ISL6421 if !DVB_FE_CUSTOMISE |
| 39 | select MEDIA_TUNER_SIMPLE if !DVB_FE_CUSTOMISE | 38 | select MEDIA_TUNER_TDA827X if !MEDIA_TUNER_CUSTOMIZE |
| 39 | select MEDIA_TUNER_SIMPLE if !MEDIA_TUNER_CUSTOMIZE | ||
| 40 | ---help--- | 40 | ---help--- |
| 41 | This adds support for DVB cards based on the | 41 | This adds support for DVB cards based on the |
| 42 | Philips saa7134 chip. | 42 | Philips saa7134 chip. |
diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 7e857e938adb..714a23035de1 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c | |||
| @@ -116,6 +116,7 @@ struct ppp { | |||
| 116 | unsigned long last_xmit; /* jiffies when last pkt sent 9c */ | 116 | unsigned long last_xmit; /* jiffies when last pkt sent 9c */ |
| 117 | unsigned long last_recv; /* jiffies when last pkt rcvd a0 */ | 117 | unsigned long last_recv; /* jiffies when last pkt rcvd a0 */ |
| 118 | struct net_device *dev; /* network interface device a4 */ | 118 | struct net_device *dev; /* network interface device a4 */ |
| 119 | int closing; /* is device closing down? a8 */ | ||
| 119 | #ifdef CONFIG_PPP_MULTILINK | 120 | #ifdef CONFIG_PPP_MULTILINK |
| 120 | int nxchan; /* next channel to send something on */ | 121 | int nxchan; /* next channel to send something on */ |
| 121 | u32 nxseq; /* next sequence number to send */ | 122 | u32 nxseq; /* next sequence number to send */ |
| @@ -995,7 +996,7 @@ ppp_xmit_process(struct ppp *ppp) | |||
| 995 | struct sk_buff *skb; | 996 | struct sk_buff *skb; |
| 996 | 997 | ||
| 997 | ppp_xmit_lock(ppp); | 998 | ppp_xmit_lock(ppp); |
| 998 | if (ppp->dev) { | 999 | if (!ppp->closing) { |
| 999 | ppp_push(ppp); | 1000 | ppp_push(ppp); |
| 1000 | while (!ppp->xmit_pending | 1001 | while (!ppp->xmit_pending |
| 1001 | && (skb = skb_dequeue(&ppp->file.xq))) | 1002 | && (skb = skb_dequeue(&ppp->file.xq))) |
| @@ -1463,8 +1464,7 @@ static inline void | |||
| 1463 | ppp_do_recv(struct ppp *ppp, struct sk_buff *skb, struct channel *pch) | 1464 | ppp_do_recv(struct ppp *ppp, struct sk_buff *skb, struct channel *pch) |
| 1464 | { | 1465 | { |
| 1465 | ppp_recv_lock(ppp); | 1466 | ppp_recv_lock(ppp); |
| 1466 | /* ppp->dev == 0 means interface is closing down */ | 1467 | if (!ppp->closing) |
| 1467 | if (ppp->dev) | ||
| 1468 | ppp_receive_frame(ppp, skb, pch); | 1468 | ppp_receive_frame(ppp, skb, pch); |
| 1469 | else | 1469 | else |
| 1470 | kfree_skb(skb); | 1470 | kfree_skb(skb); |
| @@ -2498,18 +2498,16 @@ init_ppp_file(struct ppp_file *pf, int kind) | |||
| 2498 | */ | 2498 | */ |
| 2499 | static void ppp_shutdown_interface(struct ppp *ppp) | 2499 | static void ppp_shutdown_interface(struct ppp *ppp) |
| 2500 | { | 2500 | { |
| 2501 | struct net_device *dev; | ||
| 2502 | |||
| 2503 | mutex_lock(&all_ppp_mutex); | 2501 | mutex_lock(&all_ppp_mutex); |
| 2504 | ppp_lock(ppp); | ||
| 2505 | dev = ppp->dev; | ||
| 2506 | ppp->dev = NULL; | ||
| 2507 | ppp_unlock(ppp); | ||
| 2508 | /* This will call dev_close() for us. */ | 2502 | /* This will call dev_close() for us. */ |
| 2509 | if (dev) { | 2503 | ppp_lock(ppp); |
| 2510 | unregister_netdev(dev); | 2504 | if (!ppp->closing) { |
| 2511 | free_netdev(dev); | 2505 | ppp->closing = 1; |
| 2512 | } | 2506 | ppp_unlock(ppp); |
| 2507 | unregister_netdev(ppp->dev); | ||
| 2508 | } else | ||
| 2509 | ppp_unlock(ppp); | ||
| 2510 | |||
| 2513 | cardmap_set(&all_ppp_units, ppp->file.index, NULL); | 2511 | cardmap_set(&all_ppp_units, ppp->file.index, NULL); |
| 2514 | ppp->file.dead = 1; | 2512 | ppp->file.dead = 1; |
| 2515 | ppp->owner = NULL; | 2513 | ppp->owner = NULL; |
| @@ -2554,7 +2552,7 @@ static void ppp_destroy_interface(struct ppp *ppp) | |||
| 2554 | if (ppp->xmit_pending) | 2552 | if (ppp->xmit_pending) |
| 2555 | kfree_skb(ppp->xmit_pending); | 2553 | kfree_skb(ppp->xmit_pending); |
| 2556 | 2554 | ||
| 2557 | kfree(ppp); | 2555 | free_netdev(ppp->dev); |
| 2558 | } | 2556 | } |
| 2559 | 2557 | ||
| 2560 | /* | 2558 | /* |
| @@ -2616,7 +2614,7 @@ ppp_connect_channel(struct channel *pch, int unit) | |||
| 2616 | if (pch->file.hdrlen > ppp->file.hdrlen) | 2614 | if (pch->file.hdrlen > ppp->file.hdrlen) |
| 2617 | ppp->file.hdrlen = pch->file.hdrlen; | 2615 | ppp->file.hdrlen = pch->file.hdrlen; |
| 2618 | hdrlen = pch->file.hdrlen + 2; /* for protocol bytes */ | 2616 | hdrlen = pch->file.hdrlen + 2; /* for protocol bytes */ |
| 2619 | if (ppp->dev && hdrlen > ppp->dev->hard_header_len) | 2617 | if (hdrlen > ppp->dev->hard_header_len) |
| 2620 | ppp->dev->hard_header_len = hdrlen; | 2618 | ppp->dev->hard_header_len = hdrlen; |
| 2621 | list_add_tail(&pch->clist, &ppp->channels); | 2619 | list_add_tail(&pch->clist, &ppp->channels); |
| 2622 | ++ppp->n_channels; | 2620 | ++ppp->n_channels; |
diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c index 2cd77ab8fc66..054e05294af8 100644 --- a/drivers/rtc/rtc-isl1208.c +++ b/drivers/rtc/rtc-isl1208.c | |||
| @@ -328,6 +328,13 @@ isl1208_i2c_set_time(struct i2c_client *client, struct rtc_time const *tm) | |||
| 328 | int sr; | 328 | int sr; |
| 329 | u8 regs[ISL1208_RTC_SECTION_LEN] = { 0, }; | 329 | u8 regs[ISL1208_RTC_SECTION_LEN] = { 0, }; |
| 330 | 330 | ||
| 331 | /* The clock has an 8 bit wide bcd-coded register (they never learn) | ||
| 332 | * for the year. tm_year is an offset from 1900 and we are interested | ||
| 333 | * in the 2000-2099 range, so any value less than 100 is invalid. | ||
| 334 | */ | ||
| 335 | if (tm->tm_year < 100) | ||
| 336 | return -EINVAL; | ||
| 337 | |||
| 331 | regs[ISL1208_REG_SC] = bin2bcd(tm->tm_sec); | 338 | regs[ISL1208_REG_SC] = bin2bcd(tm->tm_sec); |
| 332 | regs[ISL1208_REG_MN] = bin2bcd(tm->tm_min); | 339 | regs[ISL1208_REG_MN] = bin2bcd(tm->tm_min); |
| 333 | regs[ISL1208_REG_HR] = bin2bcd(tm->tm_hour) | ISL1208_REG_HR_MIL; | 340 | regs[ISL1208_REG_HR] = bin2bcd(tm->tm_hour) | ISL1208_REG_HR_MIL; |
diff --git a/drivers/w1/w1_io.c b/drivers/w1/w1_io.c index 0d15b0eaf79a..5139c25ca962 100644 --- a/drivers/w1/w1_io.c +++ b/drivers/w1/w1_io.c | |||
| @@ -356,7 +356,9 @@ int w1_reset_select_slave(struct w1_slave *sl) | |||
| 356 | w1_write_8(sl->master, W1_SKIP_ROM); | 356 | w1_write_8(sl->master, W1_SKIP_ROM); |
| 357 | else { | 357 | else { |
| 358 | u8 match[9] = {W1_MATCH_ROM, }; | 358 | u8 match[9] = {W1_MATCH_ROM, }; |
| 359 | memcpy(&match[1], (u8 *)&sl->reg_num, 8); | 359 | u64 rn = le64_to_cpu(*((u64*)&sl->reg_num)); |
| 360 | |||
| 361 | memcpy(&match[1], &rn, 8); | ||
| 360 | w1_write_block(sl->master, match, 9); | 362 | w1_write_block(sl->master, match, 9); |
| 361 | } | 363 | } |
| 362 | return 0; | 364 | return 0; |
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h index 09d33c7740f0..db8852d8bcf7 100644 --- a/include/acpi/acoutput.h +++ b/include/acpi/acoutput.h | |||
| @@ -172,7 +172,7 @@ | |||
| 172 | 172 | ||
| 173 | /* Defaults for debug_level, debug and normal */ | 173 | /* Defaults for debug_level, debug and normal */ |
| 174 | 174 | ||
| 175 | #define ACPI_DEBUG_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT) | 175 | #define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO) |
| 176 | #define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT) | 176 | #define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT) |
| 177 | #define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL) | 177 | #define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL) |
| 178 | 178 | ||
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 029c8c06c151..0515e754449d 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
| @@ -141,6 +141,10 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache) | |||
| 141 | /* | 141 | /* |
| 142 | * We need to show where it is safe to preempt execution of ACPICA | 142 | * We need to show where it is safe to preempt execution of ACPICA |
| 143 | */ | 143 | */ |
| 144 | #define ACPI_PREEMPTION_POINT() cond_resched() | 144 | #define ACPI_PREEMPTION_POINT() \ |
| 145 | do { \ | ||
| 146 | if (!irqs_disabled()) \ | ||
| 147 | cond_resched(); \ | ||
| 148 | } while (0) | ||
| 145 | 149 | ||
| 146 | #endif /* __ACLINUX_H__ */ | 150 | #endif /* __ACLINUX_H__ */ |
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 8185a0f09594..2606d0fb4e54 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
| @@ -1024,7 +1024,7 @@ static int cgroup_get_sb(struct file_system_type *fs_type, | |||
| 1024 | if (ret == -EBUSY) { | 1024 | if (ret == -EBUSY) { |
| 1025 | mutex_unlock(&cgroup_mutex); | 1025 | mutex_unlock(&cgroup_mutex); |
| 1026 | mutex_unlock(&inode->i_mutex); | 1026 | mutex_unlock(&inode->i_mutex); |
| 1027 | goto drop_new_super; | 1027 | goto free_cg_links; |
| 1028 | } | 1028 | } |
| 1029 | 1029 | ||
| 1030 | /* EBUSY should be the only error here */ | 1030 | /* EBUSY should be the only error here */ |
| @@ -1073,10 +1073,11 @@ static int cgroup_get_sb(struct file_system_type *fs_type, | |||
| 1073 | 1073 | ||
| 1074 | return simple_set_mnt(mnt, sb); | 1074 | return simple_set_mnt(mnt, sb); |
| 1075 | 1075 | ||
| 1076 | free_cg_links: | ||
| 1077 | free_cg_links(&tmp_cg_links); | ||
| 1076 | drop_new_super: | 1078 | drop_new_super: |
| 1077 | up_write(&sb->s_umount); | 1079 | up_write(&sb->s_umount); |
| 1078 | deactivate_super(sb); | 1080 | deactivate_super(sb); |
| 1079 | free_cg_links(&tmp_cg_links); | ||
| 1080 | return ret; | 1081 | return ret; |
| 1081 | } | 1082 | } |
| 1082 | 1083 | ||
| @@ -2934,9 +2935,6 @@ int cgroup_clone(struct task_struct *tsk, struct cgroup_subsys *subsys, | |||
| 2934 | again: | 2935 | again: |
| 2935 | root = subsys->root; | 2936 | root = subsys->root; |
| 2936 | if (root == &rootnode) { | 2937 | if (root == &rootnode) { |
| 2937 | printk(KERN_INFO | ||
| 2938 | "Not cloning cgroup for unused subsystem %s\n", | ||
| 2939 | subsys->name); | ||
| 2940 | mutex_unlock(&cgroup_mutex); | 2938 | mutex_unlock(&cgroup_mutex); |
| 2941 | return 0; | 2939 | return 0; |
| 2942 | } | 2940 | } |
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index ba537fae0a4c..ce68e046d963 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c | |||
| @@ -1786,8 +1786,6 @@ static inline void rfcomm_accept_connection(struct rfcomm_session *s) | |||
| 1786 | if (err < 0) | 1786 | if (err < 0) |
| 1787 | return; | 1787 | return; |
| 1788 | 1788 | ||
| 1789 | __module_get(nsock->ops->owner); | ||
| 1790 | |||
| 1791 | /* Set our callbacks */ | 1789 | /* Set our callbacks */ |
| 1792 | nsock->sk->sk_data_ready = rfcomm_l2data_ready; | 1790 | nsock->sk->sk_data_ready = rfcomm_l2data_ready; |
| 1793 | nsock->sk->sk_state_change = rfcomm_l2state_change; | 1791 | nsock->sk->sk_state_change = rfcomm_l2state_change; |
diff --git a/net/socket.c b/net/socket.c index 92764d836891..76ba80aeac1a 100644 --- a/net/socket.c +++ b/net/socket.c | |||
| @@ -2307,6 +2307,7 @@ int kernel_accept(struct socket *sock, struct socket **newsock, int flags) | |||
| 2307 | } | 2307 | } |
| 2308 | 2308 | ||
| 2309 | (*newsock)->ops = sock->ops; | 2309 | (*newsock)->ops = sock->ops; |
| 2310 | __module_get((*newsock)->ops->owner); | ||
| 2310 | 2311 | ||
| 2311 | done: | 2312 | done: |
| 2312 | return err; | 2313 | return err; |
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 596ceabd6504..b77f330d2650 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
| @@ -859,6 +859,7 @@ static struct hda_verb stac92hd83xxx_core_init[] = { | |||
| 859 | 859 | ||
| 860 | /* power state controls amps */ | 860 | /* power state controls amps */ |
| 861 | { 0x01, AC_VERB_SET_EAPD, 1 << 2}, | 861 | { 0x01, AC_VERB_SET_EAPD, 1 << 2}, |
| 862 | {} | ||
| 862 | }; | 863 | }; |
| 863 | 864 | ||
| 864 | static struct hda_verb stac92hd71bxx_core_init[] = { | 865 | static struct hda_verb stac92hd71bxx_core_init[] = { |
| @@ -870,6 +871,7 @@ static struct hda_verb stac92hd71bxx_core_init[] = { | |||
| 870 | { 0x0a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, | 871 | { 0x0a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, |
| 871 | { 0x0d, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, | 872 | { 0x0d, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, |
| 872 | { 0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, | 873 | { 0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, |
| 874 | {} | ||
| 873 | }; | 875 | }; |
| 874 | 876 | ||
| 875 | #define HD_DISABLE_PORTF 2 | 877 | #define HD_DISABLE_PORTF 2 |
| @@ -1667,6 +1669,7 @@ static struct snd_pci_quirk stac92hd83xxx_cfg_tbl[] = { | |||
| 1667 | /* SigmaTel reference board */ | 1669 | /* SigmaTel reference board */ |
| 1668 | SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x2668, | 1670 | SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x2668, |
| 1669 | "DFI LanParty", STAC_92HD71BXX_REF), | 1671 | "DFI LanParty", STAC_92HD71BXX_REF), |
| 1672 | {} /* terminator */ | ||
| 1670 | }; | 1673 | }; |
| 1671 | 1674 | ||
| 1672 | static unsigned int ref92hd71bxx_pin_configs[11] = { | 1675 | static unsigned int ref92hd71bxx_pin_configs[11] = { |
