26 Jan, 2015

8 commits

  • Commit 315786ebbf4a ("iommu: Add iommu_map_sg() function") adds a new
    ->map_sg() callback and provides a default implementation that drivers
    can use until they implement a hardware-specific variant. Unfortunately
    the Tegra GART driver was not updated as part of that commit, so that
    iommu_map_sg() calls on a domain provided by the GART cause an oops.

    Fixes: 315786ebbf4a ("iommu: Add iommu_map_sg() function")
    Cc: Hiroshi Doyu
    Signed-off-by: Thierry Reding
    Signed-off-by: Joerg Roedel

    Thierry Reding
     
  • The driver currently doesn't work as expected and causes existing setups
    with Tegra20 to break after commit df06b759f2cf ("drm/tegra: Add IOMMU
    support"). To restore these setups, do not register the operations with
    the platform bus for now. Fixing this properly will involve non-trivial
    changes to the DRM driver, which are unlikely to be accepted at this
    point in the release cycle.

    Reported-by: Misha Komarovskiy
    Reported-by: Nicolas Chauvet
    Tested-by: Misha Komarovskiy
    Tested-by: Dmitry Osipenko
    Cc: Hiroshi Doyu
    Signed-off-by: Thierry Reding
    Signed-off-by: Joerg Roedel

    Thierry Reding
     
  • Pull x86 fixes from Thomas Gleixner:
    "Hopefully the last round of fixes for 3.19

    - regression fix for the LDT changes
    - regression fix for XEN interrupt handling caused by the APIC
    changes
    - regression fixes for the PAT changes
    - last minute fixes for new the MPX support
    - regression fix for 32bit UP
    - fix for a long standing relocation issue on 64bit tagged for stable
    - functional fix for the Hyper-V clocksource tagged for stable
    - downgrade of a pr_err which tends to confuse users

    Looks a bit on the large side, but almost half of it are valuable
    comments"

    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/tsc: Change Fast TSC calibration failed from error to info
    x86/apic: Re-enable PCI_MSI support for non-SMP X86_32
    x86, mm: Change cachemode exports to non-gpl
    x86, tls: Interpret an all-zero struct user_desc as "no segment"
    x86, tls, ldt: Stop checking lm in LDT_empty
    x86, mpx: Strictly enforce empty prctl() args
    x86, mpx: Fix potential performance issue on unmaps
    x86, mpx: Explicitly disable 32-bit MPX support on 64-bit kernels
    x86, hyperv: Mark the Hyper-V clocksource as being continuous
    x86: Don't rely on VMWare emulating PAT MSR correctly
    x86, irq: Properly tag virtualization entry in /proc/interrupts
    x86, boot: Skip relocs when load address unchanged
    x86/xen: Override ACPI IRQ management callback __acpi_unregister_gsi
    ACPI: pci: Do not clear pci_dev->irq in acpi_pci_irq_disable()
    x86/xen: Treat SCI interrupt as normal GSI interrupt

    Linus Torvalds
     
  • Pull irq fixes from Thomas Gleixner:
    "From the irqchip departement you get:

    - regression fix for omap-intc

    - regression fix for atmel-aic-common

    - functional correctness fix for hip04

    - type mismatch fix for gic-v3-its

    - proper error pointer check for mtd-sysirq

    Mostly one and two liners except for the omap regression fix which is
    slightly larger than desired"

    * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    irqchip: atmel-aic-common: Prevent clobbering of priority when changing IRQ type
    irqchip: omap-intc: Fix legacy DMA regression
    irqchip: gic-v3-its: Fix use of max with decimal constant
    irqchip: hip04: Initialize hip04_cpu_map to 0xffff
    irqchip: mtk-sysirq: Use IS_ERR() instead of NULL pointer check

    Linus Torvalds
     
  • Pull timer fixes from Thomas Gleixner:
    "A set of small fixes:

    - regression fix for exynos_mct clocksource

    - trivial build fix for kona clocksource

    - functional one liner fix for the sh_tmu clocksource

    - two validation fixes to prevent (root only) data corruption in the
    kernel via settimeofday and adjtimex. Tagged for stable"

    * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    time: adjtimex: Validate the ADJ_FREQUENCY values
    time: settimeofday: Validate the values of tv from user
    clocksource: sh_tmu: Set cpu_possible_mask to fix SMP broadcast
    clocksource: kona: fix __iomem annotation
    clocksource: exynos_mct: Fix bitmask regression for exynos4_mct_write

    Linus Torvalds
     
  • Pull ARM SoC fixes from Olof Johansson:
    "A week's worth of fixes for various ARM platforms. Diff wise, the
    largest fix is for OMAP to deal with how GIC now registers interrupts
    (irq_domain_add_legacy() -> irq_domain_add_linear() changes).

    Besides this, a few more renesas platforms needed the GIC instatiation
    done for legacy boards. There's also a fix that disables coherency of
    mvebu due to issues, and a few other smaller fixes"

    * tag 'armsoc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    arm64: dts: add baud rate to Juno stdout-path
    ARM: dts: imx25: Fix PWM "per" clocks
    bus: mvebu-mbus: fix support of MBus window 13
    Merge tag 'mvebu-fixes-3.19-3' of git://git.infradead.org/linux-mvebu into fixes
    ARM: mvebu: completely disable hardware I/O coherency
    ARM: OMAP: Work around hardcoded interrupts
    ARM: shmobile: r8a7779: Instantiate GIC from C board code in legacy builds
    ARM: shmobile: r8a7778: Instantiate GIC from C board code in legacy builds
    arm: boot: dts: dra7: enable dwc3 suspend PHY quirk

    Linus Torvalds
     
  • Pull device mapper fixes from Mike Snitzer:
    "Two stable fixes for dm-cache and one 3.19 DM core fix:

    - fix potential for dm-cache metadata corruption via stale metadata
    buffers being used when switching an inactive cache table to
    active; this could occur due to each table having it's own bufio
    client rather than sharing the client between tables.

    - fix dm-cache target to properly account for discard IO while
    suspending otherwise IO quiescing could complete prematurely.

    - fix DM core's handling of multiple internal suspends by maintaining
    an 'internal_suspend_count' and only resuming the device when this
    count drops to zero"

    * tag 'dm-3.19-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
    dm: fix handling of multiple internal suspends
    dm cache: fix problematic dual use of a single migration count variable
    dm cache: share cache-metadata object across inactive and active DM tables

    Linus Torvalds
     
  • Pull two block layer fixes from Jens Axboe:
    "Two small patches that should make it into 3.19:

    - a fixup from me for NVMe, making the cq_vector a signed variable.
    Otherwise our -1 comparison fails, and commit 2b25d981790b doesn't
    do what it was supposed to.

    - a fixup for the hotplug handling for blk-mq from Ming Lei, using
    the proper kobject referencing to ensure we release resources at
    the right time"

    * 'for-linus' of git://git.kernel.dk/linux-block:
    blk-mq: fix hctx/ctx kobject use-after-free
    NVMe: cq_vector should be signed

    Linus Torvalds
     

25 Jan, 2015

5 commits

  • pULL SCSI fixes from James Bottomley:
    "This consists of four real fixes and three MAINTAINER updates.

    Three of the fixes are obvious (the DIX and atomic allocation are bug
    on and warn on fixes and the other is just trivial) and the ipr one is
    a bit more involved but is required because without it, the card
    double completes aborted commands and causes a kernel oops"

    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
    MAINTAINERS: ibmvscsi driver maintainer change
    MAINTAINERS: ibmvfc driver maintainer change
    MAINTAINERS: Remove self as isci maintainer
    scsi_debug: test always evaluates to false, || should be used instead
    scsi: Avoid crashing if device uses DIX but adapter does not support it
    scsi_debug: use atomic allocation in resp_rsup_opcodes
    ipr: wait for aborted command responses

    Linus Torvalds
     
  • Pull watchdog fixes from Wim Van Sebroeck:
    "This will fix reboot issues with the imx2_wdt driver and it also drops
    some forgotten owner assignments from platform_drivers"

    * git://www.linux-watchdog.org/linux-watchdog:
    watchdog: drop owner assignment from platform_drivers
    watchdog: imx2_wdt: Disable power down counter on boot
    watchdog: imx2_wdt: Improve power management support.

    Linus Torvalds
     
  • Pull hwmon update from Jean Delvare:
    "This contains a single thing: a new driver for the temperature sensor
    embedded in the Intel 5500/5520/X58 chipsets.

    Sorry for the late request, it's been so long since I last sent a pull
    request and I've been so busy with other tasks meanwhile that I simply
    forgot about these patches. But given that this is a new driver, it
    can't introduce any regression so I thought it could still be OK.

    This has been in linux-next for months now"

    * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    hwmon: (i5500_temp) Convert to use ATTRIBUTE_GROUPS macro
    hwmon: (i5500_temp) Convert to module_pci_driver
    hwmon: (i5500_temp) Don't bind to disabled sensors
    hwmon: (i5500_temp) Convert to devm_hwmon_device_register_with_groups
    hwmon: (i5500_temp) New driver for the Intel 5500/5520/X58 chipsets

    Linus Torvalds
     
  • Pull media fixes from Mauro Carvalho Chehab:
    - fix some race conditions caused by a regression on videobuf2
    - fix a interrupt release bug on cx23885
    - fix support for Mygica T230 and HVR4400
    - fix compilation breakage when USB is not selected on tlg2300
    - fix capabilities report on ompa3isp, soc-camera, rcar_vin and
    pvrusb2

    * tag 'media/v3.19-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] omap3isp: Correctly set QUERYCAP capabilities
    [media] cx23885: fix free interrupt bug
    [media] pvrusb2: fix missing device_caps in querycap
    [media] vb2: fix vb2_thread_stop race conditions
    [media] rcar_vin: Update device_caps and capabilities in querycap
    [media] soc-camera: fix device capabilities in multiple camera host drivers
    [media] Fix Mygica T230 support
    [media] cx23885: Split Hauppauge WinTV Starburst from HVR4400 card entry
    [media] tlg2300: Fix media dependencies

    Linus Torvalds
     
  • Commit ffcc393641 ("dm: enhance internal suspend and resume interface")
    attempted to handle multiple internal suspends on the same device, but
    it did that incorrectly. When these functions are called in this order
    on the same device the device is no longer suspended, but it should be:
    dm_internal_suspend_noflush
    dm_internal_suspend_noflush
    dm_internal_resume

    Fix this bug by maintaining an 'internal_suspend_count' and resuming
    the device when this count drops to zero.

    Signed-off-by: Mikulas Patocka
    Signed-off-by: Mike Snitzer

    Mikulas Patocka
     

24 Jan, 2015

11 commits

  • Use ATTRIBUTE_GROUPS macro to simplify the code a bit.

    Signed-off-by: Axel Lin
    Signed-off-by: Jean Delvare

    Axel Lin
     
  • Use module_pci_driver to simplify the code a bit.

    Signed-off-by: Axel Lin
    Reviewed-by: Guenter Roeck
    Signed-off-by: Jean Delvare

    Axel Lin
     
  • On many motherboards, for an unknown reason, the thermal sensor seems
    to be disabled and will return a constant temperature value of 36.5
    degrees Celsius. Don't bind to the device in that case, so that we
    don't report this bogus value to userspace.

    Signed-off-by: Jean Delvare
    Cc: Romain Dolbeau
    Reviewed-by: Guenter Roeck

    Jean Delvare
     
  • Use devm_hwmon_device_register_with_groups() to simplify the code a
    bit.

    Signed-off-by: Jean Delvare
    Cc: Romain Dolbeau
    Reviewed-by: Guenter Roeck

    Jean Delvare
     
  • The Intel 5500, 5520 and X58 chipsets embed a digital thermal sensor.
    This new driver supports it.

    Note that on many boards the sensor seems to be disabled and reports
    the minimum value (36.5 degrees Celsius) all the time.

    Signed-off-by: Jean Delvare
    Tested-by: Romain Dolbeau
    Reviewed-by: Guenter Roeck

    Jean Delvare
     
  • …/linux-platform-drivers-x86

    Pull platform driver fix from Darren Hart:
    "Revert keyboard backlight sysfs support and documentation.

    The support for the dell-laptop keyboard backlight was flawed and the
    fix:

    https://lkml.org/lkml/2015/1/14/539

    was more invasive that I felt comfortable sending at RC5.

    This series reverts the support for the dell-laptop keyboard backlight
    as well as the documentation for the newly created sysfs attributes.

    We'll get this implemented correctly for 3.20"

    * tag 'platform-drivers-x86-v3.19-2' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86:
    Revert "platform: x86: dell-laptop: Add support for keyboard backlight"
    Revert "Documentation: Add entry for dell-laptop sysfs interface"

    Linus Torvalds
     
  • Pull PCI fixes from Bjorn Helgaas:
    "These are fixes for:

    - a resource management problem that causes a Radeon "Fatal error
    during GPU init" on machines where the BIOS programmed an invalid
    Root Port window. This was a regression in v3.16.

    - an Atheros AR93xx device that doesn't handle PCI bus resets
    correctly. This was a regression in v3.14.

    - an out-of-date email address"

    * tag 'pci-v3.19-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
    MAINTAINERS: Update Richard Zhu's email address
    sparc/PCI: Clip bridge windows to fit in upstream windows
    powerpc/PCI: Clip bridge windows to fit in upstream windows
    parisc/PCI: Clip bridge windows to fit in upstream windows
    mn10300/PCI: Clip bridge windows to fit in upstream windows
    microblaze/PCI: Clip bridge windows to fit in upstream windows
    ia64/PCI: Clip bridge windows to fit in upstream windows
    frv/PCI: Clip bridge windows to fit in upstream windows
    alpha/PCI: Clip bridge windows to fit in upstream windows
    x86/PCI: Clip bridge windows to fit in upstream windows
    PCI: Add pci_claim_bridge_resource() to clip window if necessary
    PCI: Add pci_bus_clip_resource() to clip to fit upstream window
    PCI: Pass bridge device, not bus, when updating bridge windows
    PCI: Mark Atheros AR93xx to avoid bus reset
    PCI: Add flag for devices where we can't use bus reset

    Linus Torvalds
     
  • Pull devicetree bug fixes and documentation updates from Grant Likely:
    "A few bugfixes for the new DT overlay feature, documentation updates,
    spelling corrections, and changes to MAINTAINERS. Nothing earth
    shattering here"

    * tag 'devicetree-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/glikely/linux:
    of/unittest: Overlays with sub-devices tests
    of/platform: Handle of_populate drivers in notifier
    of/overlay: Do not generate duplicate nodes
    devicetree: document the "qemu" and "virtio" vendor prefixes
    devicetree: document ARM bindings for QEMU's Firmware Config interface
    Documentation: of: fix typo in graph bindings
    dma-mapping: fix debug print to display correct dma_pfn_offset
    of: replace Asahi Kasei Corp vendor prefix
    ARM: dt: GIC: Spelling s/specific/specifier/, s/flaggs/flags/
    dt/bindings: arm-boards: Spelling s/pointong/pointing/
    MAINTAINERS: Update DT website and git repository
    MAINTAINERS: drop DT regex matching on of_get_property and of_match_table

    Linus Torvalds
     
  • Merge "mvebu/fixes #3" from Andrew Lunn:

    mvebu fixes for 3.19. (Part 4)

    bus: mvebu-mbus: fix support of MBus window 13

    * tag 'mvebu-fixes-3.19-4' of git://git.infradead.org/linux-mvebu:
    bus: mvebu-mbus: fix support of MBus window 13
    ARM: mvebu: completely disable hardware I/O coherency

    Signed-off-by: Olof Johansson

    Olof Johansson
     
  • This reverts commit 02b2aaaa57ab41504e8d03a3b2ceeb9440a2c188.

    This interface was determined to be flawed and required too invasive a
    fix for the RC cycle. This will be revisited in 3.20.

    Signed-off-by: Darren Hart

    Darren Hart
     
  • Introduce a new variable to count the number of allocated migration
    structures. The existing variable cache->nr_migrations became
    overloaded. It was used to:

    i) track of the number of migrations in flight for the purposes of
    quiescing during suspend.

    ii) to estimate the amount of background IO occuring.

    Recent discard changes meant that REQ_DISCARD bios are processed with
    a migration. Discards are not background IO so nr_migrations was not
    incremented. However this could cause quiescing to complete early.

    (i) is now handled with a new variable cache->nr_allocated_migrations.
    cache->nr_migrations has been renamed cache->nr_io_migrations.
    cleanup_migration() is now called free_io_migration(), since it
    decrements that variable.

    Also, remove the unused cache->next_migration variable that got replaced
    with with prealloc_structs a while ago.

    Signed-off-by: Joe Thornber
    Signed-off-by: Mike Snitzer
    Cc: stable@vger.kernel.org

    Joe Thornber
     

23 Jan, 2015

3 commits

  • If a DM table is reloaded with an inactive table when the device is not
    suspended (normal procedure for LVM2), then there will be two dm-bufio
    objects that can diverge. This can lead to a situation where the
    inactive table uses bufio to read metadata at the same time the active
    table writes metadata -- resulting in the inactive table having stale
    metadata buffers once it is promoted to the active table slot.

    Fix this by using reference counting and a global list of cache metadata
    objects to ensure there is only one metadata object per metadata device.

    Signed-off-by: Joe Thornber
    Signed-off-by: Mike Snitzer
    Cc: stable@vger.kernel.org

    Joe Thornber
     
  • Introduce selftests for overlays using sub-devices present
    in children nodes.

    Signed-off-by: Pantelis Antoniou
    Signed-off-by: Grant Likely

    Pantelis Antoniou
     
  • cppcheck found the following issue:
    (warning) Logical conjunction always evaluates to false:
    alloc_len < 4 && alloc_len > 65535.

    ..the test should be instead:

    if (alloc_len < 4 || alloc_len > 65536)

    This error was introduced by recent commit 38d5c8336e60bf6e53a1da9
    ("scsi_debug: add Report supported opcodes+tmfs; Compare and write")

    Signed-off-by: Colin Ian King
    Acked-by: Douglas Gilbert
    Signed-off-by: Christoph Hellwig

    Colin Ian King
     

22 Jan, 2015

11 commits

  • When using overlays with drivers calling of_populate the notifier
    will try to create the device twice. Using the populated bit
    before proceeding protects against this.

    Signed-off-by: Pantelis Antoniou
    Signed-off-by: Grant Likely

    Pantelis Antoniou
     
  • During the course of the rewrites a bug sneaked in when dealing
    with children nodes of overlays, which ends up duplicating
    sub nodes.

    Simply remove the duplicate traversal of child nodes to fix.

    Signed-off-by: Pantelis Antoniou
    Signed-off-by: Grant Likely

    Pantelis Antoniou
     
  • device_caps in struct v4l2_capability were inadequately set in
    VIDIOC_QUERYCAP. Fix this. Without this a WARN_ON in the v4l2 core
    is triggered. This WARN_ON was added for kernel 3.19 exactly to
    detect these situations.

    Signed-off-by: Sakari Ailus
    Acked-by: Laurent Pinchart
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     
  • First free the interrupt, then disable the PCI device. The other way
    around will lead to this warning:

    Jan 19 11:42:02 telek kernel: [ 1440.161234] WARNING: CPU: 0 PID: 2191 at kernel/irq/manage.c:1311 __free_irq+0x97/0x1f0()
    Jan 19 11:42:02 telek kernel: [ 1440.161236] Trying to free already-free IRQ 0
    Jan 19 11:42:02 telek kernel: [ 1440.161237] Modules linked in: tda8290 tda10048 cx25840 cx23885(-) altera_ci tda18271 altera_stapl videobuf2_dvb tveeprom cx2341x videobuf2_dma_sg dvb_core rc_core videobuf2_memops videobuf2_core v4l2_common videodev media nouveau x86_pkg_temp_thermal cfbfillrect cfbimgblt cfbcopyarea ttm drm_kms_helper processor button isci
    Jan 19 11:42:02 telek kernel: [ 1440.161266] CPU: 0 PID: 2191 Comm: rmmod Tainted: G W 3.19.0-rc1-telek #345
    Jan 19 11:42:02 telek kernel: [ 1440.161268] Hardware name: ASUSTeK COMPUTER INC. Z9PE-D8 WS/Z9PE-D8 WS, BIOS 5404 02/10/2014
    Jan 19 11:42:02 telek kernel: [ 1440.161270] ffffffff81bf1fce ffff8808958b7cc8 ffffffff8194a97f 0000000000000000
    Jan 19 11:42:02 telek kernel: [ 1440.161274] ffff8808958b7d18 ffff8808958b7d08 ffffffff810c56b0 0000000000000286
    Jan 19 11:42:02 telek kernel: [ 1440.161279] 0000000000000000 0000000000000000 ffff88089f808890 ffff88089f808800
    Jan 19 11:42:02 telek kernel: [ 1440.161284] Call Trace:
    Jan 19 11:42:02 telek kernel: [ 1440.161290] [] dump_stack+0x4f/0x7b
    Jan 19 11:42:02 telek kernel: [ 1440.161295] [] warn_slowpath_common+0x80/0xc0
    Jan 19 11:42:02 telek kernel: [ 1440.161299] [] warn_slowpath_fmt+0x41/0x50
    Jan 19 11:42:02 telek kernel: [ 1440.161303] [] ? _raw_spin_lock_irqsave+0x56/0x70
    Jan 19 11:42:02 telek kernel: [ 1440.161307] [] ? __free_irq+0x49/0x1f0
    Jan 19 11:42:02 telek kernel: [ 1440.161311] [] __free_irq+0x97/0x1f0
    Jan 19 11:42:02 telek kernel: [ 1440.161316] [] free_irq+0x48/0xd0
    Jan 19 11:42:02 telek kernel: [ 1440.161323] [] cx23885_finidev+0x4b/0x90 [cx23885]
    Jan 19 11:42:02 telek kernel: [ 1440.161329] [] pci_device_remove+0x3a/0xc0
    Jan 19 11:42:02 telek kernel: [ 1440.161334] [] __device_release_driver+0x7a/0xf0
    Jan 19 11:42:02 telek kernel: [ 1440.161338] [] driver_detach+0xc8/0xd0
    Jan 19 11:42:02 telek kernel: [ 1440.161341] [] bus_remove_driver+0x4e/0xb0
    Jan 19 11:42:02 telek kernel: [ 1440.161345] [] driver_unregister+0x2b/0x60
    Jan 19 11:42:02 telek kernel: [ 1440.161349] [] pci_unregister_driver+0x25/0x70
    Jan 19 11:42:02 telek kernel: [ 1440.161355] [] cx23885_fini+0x10/0x12 [cx23885]
    Jan 19 11:42:02 telek kernel: [ 1440.161360] [] SyS_delete_module+0x1a8/0x1f0
    Jan 19 11:42:02 telek kernel: [ 1440.161364] [] system_call_fastpath+0x12/0x17
    Jan 19 11:42:02 telek kernel: [ 1440.161367] ---[ end trace a9c07cb5f3357020 ]---

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The VIDIOC_QUERYCAP function should set device_caps, but this was missing.
    In addition, it set the version field as well, but that should be done by
    the core, not by the driver.

    If a driver doesn't set device_caps the v4l2 core will issue a WARN_ON, so
    it's important that this is set correctly.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The locking scheme inside the vb2 thread is unsafe when stopping the
    thread. In particular kthread_stop was called *after* internal data
    structures were cleaned up instead of doing that before. In addition,
    internal vb2 functions were called after threadio->stop was set to
    true and vb2_internal_streamoff was called. This is also not allowed.

    All this led to a variety of race conditions and kernel warnings and/or
    oopses.

    Fixed by moving the kthread_stop call up before the cleanup takes
    place, and by checking threadio->stop before calling internal vb2
    queuing operations.

    Signed-off-by: Hans Verkuil
    Cc: # for v3.16 and up
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The V4L2 API requires both .capabilities and .device_caps fields of
    struct v4l2_capability to be set. Otherwise the compliance checker
    complains and since commit "v4l2-ioctl: WARN_ON if querycap didn't fill
    device_caps" a compile-time warning is issued. Fix this non-compliance
    in the rcar_vin driver.

    Signed-off-by: Nobuhiro Iwamatsu
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Nobuhiro Iwamatsu
     
  • The V4L2 API requires both .capabilities and .device_caps fields of
    struct v4l2_capability to be set. Otherwise the compliance checker
    complains and since commit "v4l2-ioctl: WARN_ON if querycap didn't fill
    device_caps" a compile-time warning is issued. Fix this non-compliance
    in several soc-camera camera host drivers.

    Reported-by: Geert Uytterhoeven
    Signed-off-by: Guennadi Liakhovetski
    Tested-by: Geert Uytterhoeven
    Signed-off-by: Mauro Carvalho Chehab

    Guennadi Liakhovetski
     
  • Commit 2adb177e57417cf8409e86bda2c516e5f99a2099 removed 2 devices
    from the cxusb device table but failed to fix up the T230 properties
    that follow, meaning that this device no longer gets detected properly.
    Adjust the cxusb_table index appropriate so detection works.

    Signed-off-by: Jonathan McDowell
    Reviewed-by: Olli Salonen
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan McDowell
     
  • Unconditionally attaching Si2161/Si2165 demod driver
    breaks Hauppauge WinTV Starburst.
    So create own card entry for this.

    Add card name comments to the subsystem ids.

    This fixes a regression introduced in 3.17 by
    36efec48e2e6016e05364906720a0ec350a5d768 ([media] cx23885: Add si2165 support for HVR-5500)

    Signed-off-by: Matthias Schwarzott
    Tested-by: Antti Palosaari
    Signed-off-by: Hans Verkuil
    CC: stable@vger.kernel.org # for 3.17 and upper
    Signed-off-by: Mauro Carvalho Chehab

    Matthias Schwarzott
     
  • X-Patchwork-Delegate: m.chehab@samsung.com
    Changeset ea2e813e8cc3 moved the driver to staging, but it forgot to
    preserve the existing dependency.

    Fixes: ea2e813e8cc3 ("[media] tlg2300: move to staging in preparation for removal")

    Reported-by: Jim Davis
    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

21 Jan, 2015

2 commits