<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/davinci, branch linux-5.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-08-26T17:08:50Z</updated>
<entry>
<title>media: use the BIT() macro</title>
<updated>2019-08-26T17:08:50Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2019-08-22T14:06:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cce8ccca80d8388982133192d0a6d9dc2e8ed712'/>
<id>urn:sha1:cce8ccca80d8388982133192d0a6d9dc2e8ed712</id>
<content type='text'>
As warned by cppcheck:

	[drivers/media/dvb-frontends/cx24123.c:434]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
	[drivers/media/pci/bt8xx/bttv-input.c:87]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
	[drivers/media/pci/bt8xx/bttv-input.c:98]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour
			...
	[drivers/media/v4l2-core/v4l2-ioctl.c:1391]: (error) Shifting signed 32-bit value by 31 bits is undefined behaviour

There are lots of places where we're doing 1 &lt;&lt; 31. That's bad,
as, depending on the architecture, this has an undefined behavior.

The BIT() macro is already prepared to handle this, so, let's
just switch all "1 &lt;&lt; number" macros by BIT(number) at the header files
with has 1 &lt;&lt; 31.

Reviewed-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt; # exynos4-is and s3c-camif
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt; # omap3isp, vsp1, xilinx, wl128x and ipu3
Reviewed-by: Benoit Parrot &lt;bparrot@ti.com&gt; # am437x and ti-vpe
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: v4l2-async: Get fwnode reference when putting it to the notifier's list</title>
<updated>2019-07-25T12:01:43Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2019-04-04T23:43:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=016413d967061fc2eb6798a487b3022bef7698a6'/>
<id>urn:sha1:016413d967061fc2eb6798a487b3022bef7698a6</id>
<content type='text'>
The v4l2_async_notifier_add_fwnode_subdev() did not take a reference of
the added fwnode, relying on the caller to handle that instead, in essence
putting the fwnode to be added if there was an error.

As the reference is eventually released during the notifier cleanup, this
is not intuitive nor logical. Improve this by always getting a reference
when the function succeeds, and the caller releasing the reference when it
does not *itself* need it anymore.

Luckily, perhaps, there were just a handful of callers using the function.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Jacopo Mondi &lt;jacopo+renesas@jmondi.org&gt;
Tested-by: Niklas Söderlund &lt;niklas.soderlund+renesas@ragnatech.se&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: davinci-vpif: Don't dereference endpoint after putting it, fix refcounting</title>
<updated>2019-07-25T12:01:10Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2019-04-04T22:41:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6a76404b13ba7101216967dc447b77cf69e56adf'/>
<id>urn:sha1:6a76404b13ba7101216967dc447b77cf69e56adf</id>
<content type='text'>
The davinci-vpif driver dereferences its local endpoints after releasing
the reference to them.

The driver also puts its endpoints explicitly while the
of_graph_get_next_endpoint() does that, too, leading to obtaining a
reference once and releasing it twice.

Both are fixed by this patch.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: davinci/vpfe_capture.c: drop unused format descriptions</title>
<updated>2019-07-25T10:30:00Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2019-07-23T12:58:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee484875af0080a0c8621e58facf06f92c658a4b'/>
<id>urn:sha1:ee484875af0080a0c8621e58facf06f92c658a4b</id>
<content type='text'>
Simplify vpfe_pixel_format to just contain the pixelformat and bpp fields.
All others are unused.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: davinci-vpbe: remove obsolete includes</title>
<updated>2019-07-23T12:50:41Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2019-06-28T10:51:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=31bd0e5e61dce5cf4b95dd9f463d7f88f2df08b4'/>
<id>urn:sha1:31bd0e5e61dce5cf4b95dd9f463d7f88f2df08b4</id>
<content type='text'>
The driver builds fine without these, and they cause build
problems once davinci multiplatform support is enabled.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Acked-by: Sekhar Nori &lt;nsekhar@ti.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: drivers/media: don't set pix-&gt;priv = 0</title>
<updated>2019-07-23T12:48:33Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2019-06-26T09:58:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b61789f53d49db8ca1f6b8fed411b317b4e8f044'/>
<id>urn:sha1:b61789f53d49db8ca1f6b8fed411b317b4e8f044</id>
<content type='text'>
The priv field of struct v4l2_pix_format shouldn't be set by drivers,
it's set by the v4l2 core instead to V4L2_PIX_FMT_PRIV_MAGIC.

Drop this from the few media drivers that still do this.

Note that the gspca patch is slightly more involved since some of the
sub-gspca drivers use the priv field internally.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
[hverkuil-cisco@xs4all.nl: fix clash in gspca between priv arg and priv variable]
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: am437x/davinci: set device_caps in struct video_device</title>
<updated>2019-07-22T18:44:46Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2019-06-26T06:46:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b2778a30c73b25bfd276bc9e7fad7585f2e80dbd'/>
<id>urn:sha1:b2778a30c73b25bfd276bc9e7fad7585f2e80dbd</id>
<content type='text'>
Instead of filling in the struct v4l2_capability device_caps
field, fill in the struct video_device device_caps field.

That way the V4L2 core knows what the capabilities of the
video device are.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: media/platform: don't set description in ENUM_FMT</title>
<updated>2019-07-22T18:43:59Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2019-06-11T14:25:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=59fe916c84f891aab35019adc45377a10f5690b1'/>
<id>urn:sha1:59fe916c84f891aab35019adc45377a10f5690b1</id>
<content type='text'>
The V4L2 core sets the format description and flags for the driver in order
to ensure consistent naming.

So drop the strscpy of the description in drivers. Also remove any
description strings in driver-internal structures since those are
no longer needed.

And in am437x-vpfe.c drop an unnecessary f-&gt;type assignment in
vpfe_enum_fmt().

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Acked-by: Benoit Parrot &lt;bparrot@ti.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
[hverkuil-cisco@xs4all.nl: addressed some small suggestions from Laurent]
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: davinci: vpif_capture: fix memory leak in vpif_probe()</title>
<updated>2019-06-12T14:46:06Z</updated>
<author>
<name>Young Xiao</name>
</author>
<published>2019-06-04T12:26:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64f883cd98c6d43013fb0cea788b63e50ebc068c'/>
<id>urn:sha1:64f883cd98c6d43013fb0cea788b63e50ebc068c</id>
<content type='text'>
If vpif_probe() fails on v4l2_device_register() and vpif_probe_complete(),
then memory allocated at initialize_vpif() for global vpif_obj.dev[i]
become unreleased.

The patch adds deallocation of vpif_obj.dev[i] on the error path.

Signed-off-by: Young Xiao &lt;92siuyang@gmail.com&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'v5.2-rc4' into media/master</title>
<updated>2019-06-11T16:09:28Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2019-06-11T16:09:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5800571960234f9d1f1011bf135799b2014d4268'/>
<id>urn:sha1:5800571960234f9d1f1011bf135799b2014d4268</id>
<content type='text'>
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 &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
</feed>
