18 Aug, 2013

2 commits


31 Jul, 2013

5 commits

  • By integrating the v4l2-async API internals a bit more with
    the core overall the v4l2-async code becomes a bit simpler
    and easier to follow.
    Acked-and-tested-by: Lad, Prabhakar

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Acked-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Acked-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Sylwester Nawrocki
     
  • This is a purely cosmetic change. Since the 'subdev' member
    points to an array of subdevs make it more explicit by
    renaming to the plural form.
    Acked-and-tested-by: Lad, Prabhakar

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Acked-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Acked-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Sylwester Nawrocki
     
  • Add support for matching by device_node pointer. This allows
    the notifier user to simply pass a list of device_node pointers
    corresponding to sub-devices.

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Acked-by: Lad, Prabhakar
    Acked-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Acked-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Sylwester Nawrocki
     
  • enum v4l2_async_bus_type also selects a method subdevs are matched
    in the notification handlers, rename it to v4l2_async_match_type
    so V4L2_ASYNC_MATCH_OF entry can be further added for matching by
    device tree node pointer.
    Acked-and-tested-by: Lad, Prabhakar

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Acked-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Acked-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Sylwester Nawrocki
     
  • These match_* functions are internal callbacks and are always
    invoked only after checking asd->bus_type. So drop redundant
    checks in match_i2c() and match_platform() functions.
    Acked-and-tested-by: Lad, Prabhakar

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Acked-by: Laurent Pinchart
    Acked-by: Hans Verkuil
    Acked-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Sylwester Nawrocki
     

29 Jun, 2013

1 commit


22 Jun, 2013

1 commit

  • Currently bridge device drivers register devices for all subdevices
    synchronously, typically, during their probing. E.g. if an I2C CMOS sensor
    is attached to a video bridge device, the bridge driver will create an I2C
    device and wait for the respective I2C driver to probe. This makes linking
    of devices straight forward, but this approach cannot be used with
    intrinsically asynchronous and unordered device registration systems like
    the Flattened Device Tree. To support such systems this patch adds an
    asynchronous subdevice registration framework to V4L2. To use it respective
    (e.g. I2C) subdevice drivers must register themselves with the framework.
    A bridge driver on the other hand must register notification callbacks,
    that will be called upon various related events.

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

    Guennadi Liakhovetski