12 Jun, 2019

1 commit

  • There are some conflicts due to SPDX changes. We also have more
    patches being merged via media tree touching them.

    So, let's merge back from upstream and address those.

    Linux 5.2-rc4

    * tag 'v5.2-rc4': (767 commits)
    Linux 5.2-rc4
    MAINTAINERS: Karthikeyan Ramasubramanian is MIA
    i2c: xiic: Add max_read_len quirk
    lockref: Limit number of cmpxchg loop retries
    uaccess: add noop untagged_addr definition
    x86/insn-eval: Fix use-after-free access to LDT entry
    kbuild: use more portable 'command -v' for cc-cross-prefix
    s390/unwind: correct stack switching during unwind
    block, bfq: add weight symlink to the bfq.weight cgroup parameter
    cgroup: let a symlink too be created with a cftype file
    drm/nouveau/secboot/gp10[2467]: support newer FW to fix SEC2 failures on some boards
    drm/nouveau/secboot: enable loading of versioned LS PMU/SEC2 ACR msgqueue FW
    drm/nouveau/secboot: split out FW version-specific LS function pointers
    drm/nouveau/secboot: pass max supported FW version to LS load funcs
    drm/nouveau/core: support versioned firmware loading
    drm/nouveau/core: pass subdev into nvkm_firmware_get, rather than device
    block: free sched's request pool in blk_cleanup_queue
    pktgen: do not sleep with the thread lock held.
    net: mvpp2: Use strscpy to handle stat strings
    net: rds: fix memory leak in rds_ib_flush_mr_pool
    ...

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details you
    should have received a copy of the gnu general public license along
    with this program if not write to the free software foundation inc
    59 temple place suite 330 boston ma 02111 1307 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1334 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.113240726@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

29 May, 2019

2 commits


22 Apr, 2019

1 commit

  • Add two new API helpers, v4l2_fill_pixfmt and v4l2_fill_pixfmt_mp,
    to be used by drivers to calculate plane sizes and bytes per lines.

    Note that driver-specific padding and alignment are not
    taken into account, and must be done by drivers using this API.

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

    Ezequiel Garcia
     

08 Feb, 2019

1 commit


23 Nov, 2018

1 commit

  • Add macro to compare two v4l2_fract values in v4l2 common internal API.
    The same macro FRACT_CMP() is used by vivid and bcm2835-camera. This just
    renames it to V4L2_FRACT_COMPARE in order to avoid namespace collision.

    Cc: Matt Ranostay
    Acked-by: Sakari Ailus
    Signed-off-by: Akinobu Mita
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Akinobu Mita
     

24 Sep, 2018

1 commit


18 Sep, 2018

1 commit


28 Jun, 2018

1 commit

  • This sparse warning is emitted by using v4l2_find_nearest_size in some
    cases. Fix it in the framework.

    >> drivers/media/i2c/ov5640.c:1394:14: sparse: incorrect type in assignment
    +(different base types) @@ expected struct ov5640_mode_info const *mode @@
    +got ststruct ov5640_mode_info const *mode @@
    drivers/media/i2c/ov5640.c:1394:14: expected struct ov5640_mode_info const
    +*mode
    drivers/media/i2c/ov5640.c:1394:14: got struct ov5640_mode_info const ( *<
    +noident> )[9]

    Signed-off-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     

04 Apr, 2018

1 commit

  • An older version of the driver patches were merged accidentally which
    resulted in missing the array_size parameter that tells the length of the
    array that contains the different supported sizes.

    Bring it back to v4l2_find_nearest size and make the corresponding change
    for the drivers using it as well.

    Signed-off-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     

22 Mar, 2018

1 commit

  • Clearly, changeset 95ce9c28601a ("media: v4l: common: Add a
    function to obtain best size from a list") was never tested, as it
    broke compilation with:

    drivers/media/platform/vivid/vivid-vid-cap.c: In function ‘vivid_try_fmt_vid_cap’:
    drivers/media/platform/vivid/vivid-vid-cap.c:565:34: error: macro "v4l2_find_nearest_size" requer 6 argumentos, mas apenas 5 foram fornecidos
    mp->width, mp->height);
    ^
    drivers/media/platform/vivid/vivid-vid-cap.c:564:4: error: ‘v4l2_find_nearest_size’ undeclared (first use in this function); did you mean ‘__v4l2_find_nearest_size’?
    v4l2_find_nearest_size(webcam_sizes, width, height,
    ^~~~~~~~~~~~~~~~~~~~~~
    __v4l2_find_nearest_size
    drivers/media/platform/vivid/vivid-vid-cap.c:564:4: note: each undeclared identifier is reported only once for each function it appears in
    drivers/media/i2c/ov5670.c: In function ‘ov5670_set_pad_format’:
    drivers/media/i2c/ov5670.c:2233:48: error: macro "v4l2_find_nearest_size" requer 6 argumentos, mas apenas 5 foram fornecidos
    fmt->format.width, fmt->format.height);
    ^
    drivers/media/i2c/ov5670.c:2232:9: error: ‘v4l2_find_nearest_size’ undeclared (first use in this function); did you mean ‘__v4l2_find_nearest_size’?
    mode = v4l2_find_nearest_size(supported_modes, width, height,
    ^~~~~~~~~~~~~~~~~~~~~~
    __v4l2_find_nearest_size
    drivers/media/i2c/ov13858.c: In function ‘ov13858_set_pad_format’:
    drivers/media/i2c/ov13858.c:1379:48: error: macro "v4l2_find_nearest_size" requer 6 argumentos, mas apenas 5 foram fornecidos
    fmt->format.width, fmt->format.height);
    ^
    drivers/media/i2c/ov13858.c:1378:9: error: ‘v4l2_find_nearest_size’ undeclared (first use in this function); did you mean ‘__v4l2_find_nearest_size’?
    mode = v4l2_find_nearest_size(supported_modes, width, height,
    ^~~~~~~~~~~~~~~~~~~~~~
    __v4l2_find_nearest_size
    drivers/media/i2c/ov13858.c:1378:9: note: each undeclared identifier is reported only once for each function it appears in

    Basically, v4l2_find_nearest_size() callers pass 5 arguments,
    while its definition require 6 args.

    Unfortunately, my build process was also broken, as it was reporting me that
    the compilation went fine:

    $ make ARCH=i386 CF=-D__CHECK_ENDIAN__ CONFIG_DEBUG_SECTION_MISMATCH=y C=1 W=1 CHECK='compile_checks' M=drivers/staging/media
    $ make ARCH=i386 CF=-D__CHECK_ENDIAN__ CONFIG_DEBUG_SECTION_MISMATCH=y C=1 W=1 CHECK='compile_checks' M=drivers/media

    *** ERRORS ***

    *** WARNINGS ***
    compilation succeeded

    That was due to a change here to use of linux-log-diff script that
    provides a diffstat between the errors output. Somehow, the logic
    was missing some fatal errors.

    Fixes: 95ce9c28601a ("media: v4l: common: Add a function to obtain best size from a list")

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

21 Mar, 2018

2 commits

  • v4l2_find_nearest_format is not useful for drivers in finding the best
    matching format as it assumes a V4L2 specific struct. Drivers will use
    v4l2_find_nearest_size instead.

    Signed-off-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     
  • Add a function (as well as a helper macro) to obtain the best size in a
    list of device specific sizes. This helps writing drivers as well as
    aligns interface behaviour across drivers.

    The struct in which this information is contained in is typically specific
    to the driver, therefore the existing function v4l2_find_nearest_format()
    does not address the need.

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

    Sakari Ailus
     

23 Feb, 2018

1 commit


05 Jan, 2018

2 commits


18 Dec, 2017

3 commits


18 Nov, 2016

1 commit

  • Currently, there's a mess at the V4L2 printk macros: some drivers
    use their own macros, others use pr_foo() or v4l_foo() macros,
    while more modern drivers use dev_foo() macros.

    The best is to get rid of v4l_foo() macros, as they can be
    replaced by either dev_foo() or pr_foo(). Yet, such change can
    be disruptive, as dev_foo() cannot use KERN_CONT. So, the best
    is to do such change driver by driver.

    There are replacements for most v4l_foo() macros, but it lacks
    a way to enable debug messages per level. So, add such macro,
    in order to make the conversion easier.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

23 Jul, 2016

2 commits


25 Nov, 2014

3 commits


19 Nov, 2013

1 commit

  • Pull i2c changes from Wolfram Sang:
    - new drivers for exynos5, bcm kona, and st micro
    - bigger overhauls for drivers mxs and rcar
    - typical driver bugfixes, cleanups, improvements
    - got rid of the superfluous 'driver' member in i2c_client struct This
    touches a few drivers in other subsystems. All acked.

    * 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (38 commits)
    i2c: bcm-kona: fix error return code in bcm_kona_i2c_probe()
    i2c: i2c-eg20t: do not print error message in syslog if no ACK received
    i2c: bcm-kona: Introduce Broadcom I2C Driver
    i2c: cbus-gpio: Fix device tree binding
    i2c: wmt: add missing clk_disable_unprepare() on error
    i2c: designware: add new ACPI IDs
    i2c: i801: Add Device IDs for Intel Wildcat Point-LP PCH
    i2c: exynos5: Remove incorrect clk_disable_unprepare
    i2c: i2c-st: Add ST I2C controller
    i2c: exynos5: add High Speed I2C controller driver
    i2c: rcar: fixup rcar type naming
    i2c: scmi: remove some bogus NULL checks
    i2c: sh_mobile & rcar: Enable the driver on all ARM platforms
    i2c: sh_mobile: Convert to clk_prepare/unprepare
    i2c: mux: gpio: use reg value for i2c_add_mux_adapter
    i2c: mux: gpio: use gpio_set_value_cansleep()
    i2c: Include linux/of.h header
    i2c: mxs: Fix PIO mode on i.MX23
    i2c: mxs: Rework the PIO mode operation
    i2c: mxs: distinguish i.MX23 and i.MX28 based I2C controller
    ...

    Linus Torvalds
     

17 Oct, 2013

1 commit


04 Oct, 2013

1 commit

  • The 'driver' field of the i2c_client struct is redundant and is going to be
    removed. The results of the expressions 'client->driver.driver->field' and
    'client->dev.driver->field' are identical, so replace all occurrences of the
    former with the later.

    Signed-off-by: Lars-Peter Clausen
    Acked-by: Hans Verkuil
    Signed-off-by: Wolfram Sang

    Lars-Peter Clausen
     

18 Aug, 2013

2 commits

  • changeset d1e9b7c12 added a new ancilliary function to API, but forgot
    to add it to the corresponding header file.

    drivers/media/v4l2-core/v4l2-ctrls.c:568:18: warning: no previous prototype for 'v4l2_ctrl_get_int_menu' [-Wmissing-prototypes]
    const s64 const *v4l2_ctrl_get_int_menu(u32 id, u32 *len)

    Cc: Sylwester Nawrocki
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • v4l2-common.c contained a bunch of dv-timings related functions.
    Move that to the new v4l2-dv-timings.c which is a more appropriate
    place for them.
    There aren't many drivers that do HDTV, so it is a good idea to separate
    common code related to that into a module of its own.

    Signed-off-by: Hans Verkuil
    Acked-by: Lad, Prabhakar
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

21 Jun, 2013

2 commits