19 Jul, 2020

1 commit

  • TI DAVINCI SERIES MEDIA DRIVER: Replace HTTP links with HTTPS ones

    Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Deterministic algorithm:
    For each file:
    If not .svg:
    For each line:
    If doesn't contain `\bxmlns\b`:
    If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
    If both the HTTP and HTTPS versions
    return 200 OK and serve the same content:
    Replace HTTP with HTTPS.

    Signed-off-by: Alexander A. Klimov
    Reviewed-by: Kieran Bingham
    Reviewed-by: Lad Prabhakar
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Alexander A. Klimov
     

25 Jul, 2019

1 commit


05 Jun, 2019

2 commits

  • 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 version 2 this program is distributed
    without any warranty of any kind whether express or implied without
    even the implied warranty of merchantability or fitness for a
    particular purpose see the gnu general public license for more
    details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Armijn Hemel
    Reviewed-by: Kate Stewart
    Reviewed-by: Alexios Zavras
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190530000434.889824453@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     
  • 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 version 2 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

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

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

    Thomas Gleixner
     

31 May, 2019

1 commit

  • Based on 3 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

    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 [author] [kishon] [vijay] [abraham]
    [i] [kishon]@[ti] [com] 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

    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 [author] [graeme] [gregory]
    [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i]
    [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema]
    [hk] [hemahk]@[ti] [com] 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

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

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

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

    Thomas Gleixner
     

09 May, 2019

1 commit

  • In vpbe_enum_outputs() we check if (temp_index >= cfg->num_outputs) but
    the problem is that "temp_index" can be negative. This patch changes
    the types to unsigned to address this array underflow bug.

    Fixes: 66715cdc3224 ("[media] davinci vpbe: VPBE display driver")

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

    Dan Carpenter
     

01 Mar, 2019

1 commit


21 Nov, 2018

1 commit


26 Jul, 2017

1 commit

  • drop VPFE_CMD_S_CCDC_RAW_PARAMS ioctl from dm355/dm644x following reasons:

    - This ioctl was never in public api and was only defined in kernel header.
    - The function set_params constantly mixes up pointers and phys_addr_t
    numbers.
    - This is part of a 'VPFE_CMD_S_CCDC_RAW_PARAMS' ioctl command that is
    described as an 'experimental ioctl that will change in future kernels'.
    - The code to allocate the table never gets called after we copy_from_user
    the user input over the kernel settings, and then compare them
    for inequality.
    - We then go on to use an address provided by user space as both the
    __user pointer for input and pass it through phys_to_virt to come up
    with a kernel pointer to copy the data to. This looks like a trivially
    exploitable root hole.

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

    Prabhakar Lad
     

07 Jun, 2017

1 commit


22 Mar, 2017

1 commit


31 Jan, 2017

1 commit


27 Jan, 2017

1 commit

  • Drop the FSF's postal address from the source code files that typically
    contain mostly the license text. Of the 628 removed instances, 578 are
    outdated.

    The patch has been created with the following command without manual edits:

    git grep -l "675 Mass Ave\|59 Temple Place\|51 Franklin St" -- \
    drivers/media/ include/media|while read i; do i=$i perl -e '
    open(F,"< $ENV{i}");
    $a=join("", );
    $a =~ s/[ \t]*\*\n.*You should.*\n.*along with.*\n.*(\n.*USA.*$)?\n//m
    && $a =~ s/(^.*)Or, (point your browser to) /$1To obtain the license, $2\n$1/m;
    close(F);
    open(F, "> $ENV{i}");
    print F $a;
    close(F);'; done

    Signed-off-by: Sakari Ailus

    Sakari Ailus
     

09 Jul, 2016

1 commit


01 Oct, 2015

1 commit

  • Remove v4l2 stuff - v4l2_buf, v4l2_plane - from struct vb2_buffer.

    Add new member variables - bytesused, length, offset, userptr, fd,
    data_offset - to struct vb2_plane in order to cover all information
    of v4l2_plane.
    struct vb2_plane {

    unsigned int bytesused;
    unsigned int length;
    union {
    unsigned int offset;
    unsigned long userptr;
    int fd;
    } m;
    unsigned int data_offset;
    }

    Replace v4l2_buf with new member variables - index, type, memory - which
    are common fields for buffer management.
    struct vb2_buffer {

    unsigned int index;
    unsigned int type;
    unsigned int memory;
    unsigned int num_planes;
    struct vb2_plane planes[VIDEO_MAX_PLANES];

    };

    v4l2 specific fields - flags, field, timestamp, timecode,
    sequence - are moved to vb2_v4l2_buffer in videobuf2-v4l2.c
    struct vb2_v4l2_buffer {
    struct vb2_buffer vb2_buf;

    __u32 flags;
    __u32 field;
    struct timeval timestamp;
    struct v4l2_timecode timecode;
    __u32 sequence;
    };

    Signed-off-by: Junghak Sung
    Signed-off-by: Geunyoung Kim
    Acked-by: Seung-Woo Kim
    Acked-by: Inki Dae
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Junghak Sung
     

03 Apr, 2015

1 commit


15 Nov, 2014

1 commit

  • In order to have subsytem agnostic media bus format definitions we've
    moved media bus definition to include/uapi/linux/media-bus-format.h and
    prefixed values with MEDIA_BUS_FMT instead of V4L2_MBUS_FMT.

    Reference new definitions in all platform drivers.

    Signed-off-by: Boris Brezillon
    Acked-by: Hans Verkuil
    Acked-by: Sakari Ailus
    Acked-by: Sekhar Nori
    Acked-by: Lad, Prabhakar
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Boris BREZILLON
     

11 Nov, 2014

1 commit


29 Oct, 2014

3 commits


27 Aug, 2014

1 commit


17 Apr, 2014

2 commits


27 Jul, 2013

2 commits

  • Add support for asynchronous subdevice probing, using the v4l2-async API.
    The legacy synchronous mode is still supported too, which allows to
    gradually update drivers and platforms.

    Signed-off-by: Lad, Prabhakar
    Cc: Guennadi Liakhovetski
    Cc: Hans Verkuil
    Cc: Laurent Pinchart
    Cc: Sakari Ailus
    Cc: Mauro Carvalho Chehab
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Lad, Prabhakar
     
  • Add support for asynchronous subdevice probing, using the v4l2-async API.
    The legacy synchronous mode is still supported too, which allows to
    gradually update drivers and platforms.

    Signed-off-by: Prabhakar Lad
    Cc: Guennadi Liakhovetski
    Cc: Hans Verkuil
    Cc: Laurent Pinchart
    Cc: Sakari Ailus
    Cc: Mauro Carvalho Chehab
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Lad, Prabhakar
     

21 May, 2013

1 commit


24 Mar, 2013

1 commit

  • This ioctl is defined as IOW, so pass the argument by value instead of by
    reference. I could have chosen to add const instead, but this is 1) easier
    to handle in drivers and 2) consistent with the s_std subdev operation.

    Signed-off-by: Hans Verkuil
    Acked-by: Laurent Pinchart
    Acked-by: Jonathan Corbet
    Acked-by: Guennadi Liakhovetski
    Acked-by: Lad, Prabhakar
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     

20 Mar, 2013

3 commits

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

    Hans Verkuil
     
  • drivers/media/platform/davinci/dm644x_ccdc.c: In function ‘validate_ccdc_param’:
    drivers/media/platform/davinci/dm644x_ccdc.c:233:32: warning: comparison between ‘enum ccdc_gama_width’ and ‘enum ccdc_data_size’ [-Wenum-compare]
    It took a bit of work, see this thread of an earlier attempt to fix this:
    https://patchwork.kernel.org/patch/1923091/
    I've chosen not to follow the suggestions in that thread since gamma_width is
    really a different property from data_size. What you really want is to know if
    gamma_width fits inside data_size and for that you need to translate each
    enum into a maximum bit number so you can safely compare the two.
    So I put in two static inline translation functions instead, keeping the rest
    of the code the same (except for fixing the 'gama' typo).

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

    Hans Verkuil
     
  • Remove VPBE_ENC_DV_PRESET (the DV_PRESET API is no longer supported) and
    VPBE_ENC_CUSTOM_TIMINGS is renamed to VPBE_ENC_DV_TIMINGS since the old
    "CUSTOM_TIMINGS" name is deprecated in favor of "DV_TIMINGS".

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

    Hans Verkuil
     

22 Dec, 2012

2 commits

  • The vpbe driver can handle different platforms DM644X, DM36X and
    DM355. To differentiate between this platforms venc_type/vpbe_type
    was passed as part of platform data which was incorrect. The correct
    way to differentiate to handle this case is by passing different
    platform names.
    This patch creates platform_device_id[] array supporting different
    platforms and assigns id_table to the platform driver, and finally
    in the probe gets the actual device by using platform_get_device_id()
    and gets the appropriate driver data for that platform.
    Taking this approach will also make the DT transition easier.

    Signed-off-by: Lad, Prabhakar
    Signed-off-by: Manjunath Hadli
    Acked-by: Sekhar Nori
    Signed-off-by: Mauro Carvalho Chehab

    Lad, Prabhakar
     
  • Add vpss helper functions to be used in the main driver for setting
    hardware parameters.

    Add interface functions to set sync polarity, interrupt completion and
    pageframe size in vpss to be used by the main driver.

    Signed-off-by: Manjunath Hadli
    Signed-off-by: Lad, Prabhakar
    Signed-off-by: Mauro Carvalho Chehab

    Manjunath Hadli
     

21 Nov, 2012

2 commits

  • This patch migrates VPBE display driver to videobuf2 framework.

    Signed-off-by: Lad, Prabhakar
    Signed-off-by: Manjunath Hadli
    Signed-off-by: Mauro Carvalho Chehab

    Lad, Prabhakar
     
  • Warnings were generated because of the following commit changed data type for
    address pointer
    195bbca ARM: 7500/1: io: avoid writeback addressing modes for __raw_ accessors
    add __iomem annotation to fix following warnings
    drivers/media/platform/davinci/vpbe_osd.c: In function ‘osd_read’:
    drivers/media/platform/davinci/vpbe_osd.c:49:2: warning: passing
    argument 1 of ‘__raw_readl’ makes pointer from integer without a cast [enabled by default]
    arch/arm/include/asm/io.h:104:19: note: expected ‘const volatile
    void *’ but argument is of type ‘long unsigned int’
    This patch stores the ioremap_nocache() returned address in a
    void __iomem * instead of a unsigned long and passes the same to
    readl/writel functions which fixes the above warnings.

    Signed-off-by: Lad, Prabhakar
    Signed-off-by: Manjunath Hadli
    Acked-by: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Lad, Prabhakar
     

06 Oct, 2012

5 commits