11 Jan, 2016

15 commits


18 Dec, 2015

2 commits

  • During the Seoul media workshop we decided to relax the VIDIOC_CREATE_BUFS
    specification so it would no longer require drivers to validate the format
    field since almost no driver did that anyway.

    Instead drivers use the buffer size(s) based on the format type and the
    corresponding format fields and will ignore any other fields. If the size
    cannot be used an error is returned, otherwise the size is used as-is.

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

    Hans Verkuil
     
  • The queue_setup callback has a void pointer that is just for V4L2
    and is the pointer to the v4l2_format struct that was passed to
    VIDIOC_CREATE_BUFS. The idea was that drivers would use the information
    from that struct to buffers suitable for the requested format.

    After the vb2 split series this pointer is now a void pointer,
    which is ugly, and the reality is that all existing drivers will
    effectively just look at the sizeimage field of v4l2_format.

    To make this more generic the queue_setup callback is changed:
    the void pointer is dropped, instead if the *num_planes argument
    is 0, then use the current format size, if it is non-zero, then
    it contains the number of requested planes and the sizes array
    contains the requested sizes. If either is unsupported, then return
    -EINVAL, otherwise use the requested size(s).

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

    Hans Verkuil
     

04 Dec, 2015

1 commit


03 Dec, 2015

1 commit


24 Nov, 2015

1 commit

  • Linux 4.4-rc2

    Several PCI media drivers got broken on Kernel 4.4-rc1, due to
    pci_set_dma_mask() regressions. So, we need to add those fixes back
    for the media drivers to work again.

    * tag 'v4.4-rc2': (335 commits)
    Linux 4.4-rc2
    slab/slub: adjust kmem_cache_alloc_bulk API
    slub: add missing kmem cgroup support to kmem_cache_free_bulk
    slub: fix kmem cgroup bug in kmem_cache_alloc_bulk
    slub: optimize bulk slowpath free by detached freelist
    slub: support for bulk free with SLUB freelists
    parisc: Map kernel text and data on huge pages
    parisc: Add Huge Page and HUGETLBFS support
    parisc: Use long branch to do_syscall_trace_exit
    parisc: Increase initial kernel mapping to 32MB on 64bit kernel
    parisc: Initialize the fault vector earlier in the boot process.
    parisc: Add defines for Huge page support
    parisc: Drop unused MADV_xxxK_PAGES flags from asm/mman.h
    serial: export fsl8250_handle_irq
    serial: 8250_mid: Add missing dependency
    tty: audit: Fix audit source
    serial: etraxfs-uart: Fix crash
    serial: fsl_lpuart: Fix earlycon support
    bcm63xx_uart: Use the device name when registering an interrupt
    tty: Fix direct use of tty buffer work
    ...

    Mauro Carvalho Chehab
     

21 Nov, 2015

2 commits

  • Pull i2c fixes from Wolfram Sang:
    "A few bugfixes and one PCI ID addition from I2C"

    * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
    i2c: i801: add Intel Lewisburg device IDs
    i2c: fix wakeup irq parsing
    i2c: xiic: Prevent concurrent running of the IRQ handler and __xiic_start_xfer()
    i2c: Revert "i2c: xiic: Do not reset controller before every transfer"
    i2c: imx: fix a compiling error

    Linus Torvalds
     
  • Pull more power management and ACPI updates from Rafael Wysocki:
    "These are mostly fixes and cleanups (ACPI core, PM core, cpufreq, ACPI
    EC driver, device properties) including three reverts of recent
    intel_pstate driver commits due to a regression introduced by one of
    them plus support for Atom Airmont cores in intel_pstate (which really
    boils down to adding new frequency tables for Airmont) and additional
    turbostat updates.

    Specifics:

    - Revert three recent intel_pstate driver commits one of which
    introduced a regression and the remaining two depend on the
    problematic one (Rafael Wysocki).

    - Fix breakage related to the recently introduced ACPI _CCA object
    support in the PCI DMA setup code (Suravee Suthikulpanit).

    - Fix up the recently introduced ACPI CPPC support to only use the
    hardware-reduced version of the PCCT structure as the only
    architecture to support it (ARM64) will only use hardware-reduced
    ACPI anyway (Ashwin Chaugule).

    - Fix a cpufreq mediatek driver build problem (Arnd Bergmann).

    - Fix the SMBus transaction handling implementation in the ACPI core
    to avoid re-entrant calls to wait_event_timeout() which makes
    intermittent boot stalls related to the Smart Battery Subsystem
    initialization go away and revert a workaround of another problem
    with the same underlying root cause (Chris Bainbridge).

    - Fix the generic wakeup interrupts framework to avoid using invalid
    IRQ numbers (Dmitry Torokhov).

    - Remove a redundant check from the ACPI EC driver (Markus Elfring).

    - Modify the intel_pstate driver so it can support more Atom flavors
    than just one (Baytrail) and add support for Atom Airmont cores
    (which require new freqnency tables) to it (Philippe Longepe).

    - Clean up MSR-related symbols in turbostat (Len Brown)"

    * tag 'pm+acpi-4.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    PCI: Fix OF logic in pci_dma_configure()
    Revert "Documentation: kernel_parameters for Intel P state driver"
    cpufreq: mediatek: fix build error
    cpufreq: intel_pstate: Add separate support for Airmont cores
    cpufreq: intel_pstate: Replace BYT with ATOM
    Revert "cpufreq: intel_pstate: Use ACPI perf configuration"
    Revert "cpufreq: intel_pstate: Avoid calculation for max/min"
    ACPI-EC: Drop unnecessary check made before calling acpi_ec_delete_query()
    Revert "ACPI / SBS: Add 5 us delay to fix SBS hangs on MacBook"
    ACPI / SMBus: Fix boot stalls / high CPU caused by reentrant code
    PM / wakeirq: check that wake IRQ is valid before accepting it
    ACPI / CPPC: Use h/w reduced version of the PCCT structure
    x86: remove unused definition of MSR_NHM_PLATFORM_INFO
    tools/power turbostat: use new name for MSR_PLATFORM_INFO

    Linus Torvalds
     

20 Nov, 2015

2 commits

  • Adding Intel codename Lewisburg platform device IDs for SMBus.

    Signed-off-by: Alexandra Yates
    Reviewed-by: Jean Delvare
    Signed-off-by: Wolfram Sang

    Alexandra Yates
     
  • * pm-cpufreq:
    Revert "Documentation: kernel_parameters for Intel P state driver"
    cpufreq: mediatek: fix build error
    cpufreq: intel_pstate: Add separate support for Airmont cores
    cpufreq: intel_pstate: Replace BYT with ATOM
    Revert "cpufreq: intel_pstate: Use ACPI perf configuration"
    Revert "cpufreq: intel_pstate: Avoid calculation for max/min"

    * acpi-cppc:
    ACPI / CPPC: Use h/w reduced version of the PCCT structure

    Rafael J. Wysocki
     

19 Nov, 2015

3 commits

  • The Terratec Cinergy T XS is a DVB-T receiver with no analog TV tuner.
    This patch adds support for the cards carrying the mt2060 tuner; it's
    unclear whether there are cards sold under the same name which use a
    different tuner.
    As long as there are no reports of such cards, and indeed as long as
    there are no working drivers for them, we assume that the USB device
    [0ccd:0043] is carrying the mt2060 tuner.

    Signed-off-by: Alberto Mardegan
    Signed-off-by: Mauro Carvalho Chehab

    Alberto Mardegan
     
  • It is possible to use:
    make DOCBOOKS=device-drivers.xml htmldocs

    To produce just a few docbooks. In such case, the media docs
    won't be built, causing the makefile target to return an error.

    While this is ok for human eyes, if the above is used on an script,
    it would cause troubles.

    Fix it by only creating/filling the media_api directory if the
    media_api.xml is found at DOCBOOKS.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Revert commit 053f56def57b (Documentation: kernel_parameters for Intel P
    state driver) as the code documented by it has been reverted already.

    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     

18 Nov, 2015

5 commits


17 Nov, 2015

3 commits

  • Let's not mix platform_data headers with the core headers. Instead, let's
    create a subdir at linux/platform_data and move the headers to that
    common place, adding it to MAINTAINERS.

    The headers were moved with:
    mkdir include/linux/platform_data/media/; git mv include/media/gpio-ir-recv.h include/media/ir-rx51.h include/media/mmp-camera.h include/media/omap1_camera.h include/media/omap4iss.h include/media/s5p_hdmi.h include/media/si4713.h include/media/sii9234.h include/media/smiapp.h include/media/soc_camera.h include/media/soc_camera_platform.h include/media/timb_radio.h include/media/timb_video.h include/linux/platform_data/media/

    And the references fixed with this script:
    MAIN_DIR="linux/platform_data/"
    PREV_DIR="media/"
    DIRS="media/"

    echo "Checking affected files" >&2
    for i in $DIRS; do
    for j in $(find include/$MAIN_DIR/$i -type f -name '*.h'); do
    n=`basename $j`
    git grep -l $n
    done
    done|sort|uniq >files && (
    echo "Handling files..." >&2;
    echo "for i in \$(cat files|grep -v Documentation); do cat \$i | \\";
    (
    cd include/$MAIN_DIR;
    for j in $DIRS; do
    for i in $(ls $j); do
    echo "perl -ne 's,(include [\\\"\\&2;
    echo "for i in MAINTAINERS \$(cat files); do cat \$i | \\";
    (
    cd include/$MAIN_DIR;
    for j in $DIRS; do
    for i in $(ls $j); do
    echo " perl -ne 's,include/$PREV_DIR($i)\b,include/$MAIN_DIR$j\1,; print \$_' |\\";
    done;
    done;
    echo "cat > a && mv a \$i; done"
    );
    ) >script && . ./script

    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Arnd Bergmann
    Acked-by: Lee Jones
    Acked-by: Krzysztof Kozlowski

    Mauro Carvalho Chehab
     
  • Commit 5240f4e68d42 ("[media] DocBook/media/Makefile: Avoid make htmldocs
    to fail") introduced a mkdir which is always called through
    install_media_images from the Documentation/DocBook/Makefile htmldocs rule.
    If you run 'make htmldocs' more than once you get:

    mkdir: cannot create directory ‘./Documentation/DocBook//media_api’:
    File exists

    Add -p to the mkdir to continue no matter if the dir already exists.

    Signed-off-by: Graham Whaley
    Signed-off-by: Mauro Carvalho Chehab

    Graham Whaley
     
  • This header file provides the kABI functions used by the
    Digital TV Frontend core support. Add a description for
    this kABI, to add at the device_drivers Kernel DocBook.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

16 Nov, 2015

4 commits

  • In order to allow panic actions to be processed, the ipmi watchdog
    driver sets a new timeout value on panic. The 255s timeout
    was designed to allow kdump and others actions on panic, as in
    http://lkml.iu.edu/hypermail/linux/kernel/0711.3/0258.html

    This is counter-intuitive for a end-user who sets watchdog timeout
    value to something like 30s and who expects BMC to reset the system
    within 30s of a panic.

    This commit allows user to configure the timeout on panic.

    Signed-off-by: Jean-Yves Faye
    Signed-off-by: Corey Minyard

    Jean-Yves Faye
     
  • Classify the functions at the DVB core per API. That makes easier
    to understand how they're related to the userspace API.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • It is better to keep the documentation overview at the header file,
    as this makes easier for developers to remember to fix when needed.

    Suggested-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Pull MIPS updates from Ralf Baechle:
    "These are the highlists of the main MIPS pull request for 4.4:

    - Add latencytop support
    - Support appended DTBs
    - VDSO support and initially use it for gettimeofday.
    - Drop the .MIPS.abiflags and ELF NOTE sections from vmlinux
    - Support for the 5KE, an internal test core.
    - Switch all MIPS platfroms to libata drivers.
    - Improved support, cleanups for ralink and Lantiq platforms.
    - Support for the new xilfpga platform.
    - A number of DTB improvments for BMIPS.
    - Improved support for CM and CPS.
    - Minor JZ4740 and BCM47xx enhancements"

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (120 commits)
    MIPS: idle: add case for CPU_5KE
    MIPS: Octeon: Support APPENDED_DTB
    MIPS: vmlinux: create a section for appended DTB
    MIPS: Clean up compat_siginfo_t
    MIPS: Fix PAGE_MASK definition
    MIPS: BMIPS: Enable GZIP ramdisk and timed printks
    MIPS: Add xilfpga defconfig
    MIPS: xilfpga: Add mipsfpga platform code
    MIPS: xilfpga: Add xilfpga device tree files.
    dt-bindings: MIPS: Document xilfpga bindings and boot style
    MIPS: Make MIPS_CMDLINE_DTB default
    MIPS: Make the kernel arguments from dtb available
    MIPS: Use USE_OF as the guard for appended dtb
    MIPS: BCM63XX: Use pr_* instead of printk
    MIPS: Loongson: Cleanup CONFIG_LOONGSON_SUSPEND.
    MIPS: lantiq: Disable xbar fpi burst mode
    MIPS: lantiq: Force the crossbar to big endian
    MIPS: lantiq: Initialize the USB core on boot
    MIPS: lantiq: Return correct value for fpi clock on ar9
    MIPS: ralink: Add missing clock on rt305x
    ...

    Linus Torvalds
     

14 Nov, 2015

1 commit

  • Pull more input updates from Dmitry Torokhov:
    "An update to the tsc2005 driver that allows it to also support tsc2004
    (basically the same controller, but uses i2c instead of spi bus), and
    a couple of bug fixes"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: parkbd - drop bogus __init from parkbd_allocate_serio()
    Input: elantech - add Fujitsu Lifebook U745 to force crc_enabled
    Input: tsc2004 - add support for tsc2004
    Input: tsc200x-core - rename functions and variables
    Input: tsc2005 - separate SPI and core functions

    Linus Torvalds