<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/omap3isp/isp.c, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-10-29T08:03:02Z</updated>
<entry>
<title>media: omap3isp: Fix memleak in isp_probe</title>
<updated>2020-10-29T08:03:02Z</updated>
<author>
<name>Dinghao Liu</name>
</author>
<published>2020-08-24T06:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=52f39ca0467cbf62bf19b65148d180e9c5aadaf6'/>
<id>urn:sha1:52f39ca0467cbf62bf19b65148d180e9c5aadaf6</id>
<content type='text'>
[ Upstream commit d8fc21c17099635e8ebd986d042be65a6c6b5bd0 ]

When devm_ioremap_resource() fails, isp should be
freed just like other error paths in isp_probe.

Fixes: 8644cdf972dd6 ("[media] omap3isp: Replace many MMIO regions by two")
Signed-off-by: Dinghao Liu &lt;dinghao.liu@zju.edu.cn&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: omap3isp: Don't set streaming state on random subdevs</title>
<updated>2019-10-05T10:27:48Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2019-08-07T14:21:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f39c1742f807389f1932ea2a74d70757b72ffd91'/>
<id>urn:sha1:f39c1742f807389f1932ea2a74d70757b72ffd91</id>
<content type='text'>
[ Upstream commit 7ef57be07ac146e70535747797ef4aee0f06e9f9 ]

The streaming state should be set to the first upstream sub-device only,
not everywhere, for a sub-device driver itself knows how to best control
the streaming state of its own upstream sub-devices.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: omap3isp: zero-initialize the isp cam_xclk{a,b} initial data</title>
<updated>2018-10-10T06:52:06Z</updated>
<author>
<name>Javier Martinez Canillas</name>
</author>
<published>2018-06-09T12:22:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7333c519adb86cce26f74516ff7149d1c5a6ceca'/>
<id>urn:sha1:7333c519adb86cce26f74516ff7149d1c5a6ceca</id>
<content type='text'>
[ Upstream commit 2ec7debd44b49927a6e2861521994cc075a389ed ]

The struct clk_init_data init variable is declared in the isp_xclk_init()
function so is an automatic variable allocated in the stack. But it's not
explicitly zero-initialized, so some init fields are left uninitialized.

This causes the data structure to have undefined values that may confuse
the common clock framework when the clock is registered.

For example, the uninitialized .flags field could have the CLK_IS_CRITICAL
bit set, causing the framework to wrongly prepare the clk on registration.
This leads to the isp_xclk_prepare() callback being called, which in turn
calls to the omap3isp_get() function that increments the isp dev refcount.

Since this omap3isp_get() call is unexpected, this leads to an unbalanced
omap3isp_get() call that prevents the requested IRQ to be later enabled,
due the refcount not being 0 when the correct omap3isp_get() call happens.

Fixes: 9b28ee3c9122 ("[media] omap3isp: Use the common clock framework")

Signed-off-by: Javier Martinez Canillas &lt;javierm@redhat.com&gt;
Reviewed-by: Sebastian Reichel &lt;sebastian.reichel@collabora.co.uk&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>media: omap3isp: fix unbalanced dma_iommu_mapping</title>
<updated>2018-08-06T14:24:39Z</updated>
<author>
<name>Suman Anna</name>
</author>
<published>2018-03-14T15:41:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ced0f4f3a5815ea2ed6de6ec1783871a44cd6295'/>
<id>urn:sha1:ced0f4f3a5815ea2ed6de6ec1783871a44cd6295</id>
<content type='text'>
[ Upstream commit b7e1e6859fbf60519fd82d7120cee106a6019512 ]

The OMAP3 ISP driver manages its MMU mappings through the IOMMU-aware
ARM DMA backend. The current code creates a dma_iommu_mapping and
attaches this to the ISP device, but never detaches the mapping in
either the probe failure paths or the driver remove path resulting
in an unbalanced mapping refcount and a memory leak. Fix this properly.

Reported-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Signed-off-by: Suman Anna &lt;s-anna@ti.com&gt;
Tested-by: Pavel Machek &lt;pavel@ucw.cz&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>[media] v4l: omap3isp: Drop platform data support</title>
<updated>2015-08-16T16:18:06Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2015-05-20T07:08:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=78c66fbcec717b22fd9db4ddc95e543cfcf544af'/>
<id>urn:sha1:78c66fbcec717b22fd9db4ddc95e543cfcf544af</id>
<content type='text'>
Platforms using the OMAP3 ISP have all switched to DT, drop platform
data support.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l: omap3isp: Fix sub-device power management code</title>
<updated>2015-07-06T11:25:51Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2015-06-12T23:06:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9d39f05490115bf145e5ea03c0b7ec9d3d015b01'/>
<id>urn:sha1:9d39f05490115bf145e5ea03c0b7ec9d3d015b01</id>
<content type='text'>
Commit 813f5c0ac5cc ("media: Change media device link_notify behaviour")
modified the media controller link setup notification API and updated the
OMAP3 ISP driver accordingly. As a side effect it introduced a bug by
turning power on after setting the link instead of before. This results in
sub-devices not being powered down in some cases when they should be. Fix
it.

Fixes: 813f5c0ac5cc [media] media: Change media device link_notify behaviour

Signed-off-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Cc: stable@vger.kernel.org # since v3.10
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l: omap3isp: Fix async notifier registration order</title>
<updated>2015-07-06T11:25:50Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2015-05-19T23:08:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d479386983c5f1bb1aff4f88a027b6143f88a39'/>
<id>urn:sha1:5d479386983c5f1bb1aff4f88a027b6143f88a39</id>
<content type='text'>
The async notifier was registered before the v4l2_device was registered and
before the notifier callbacks were set. This could lead to missing the
bound() and complete() callbacks and to attempting to spin_lock() and
uninitialised spin lock.

Also fix unregistering the async notifier in the case of an error --- the
function may not fail anymore after the notifier is registered.

Fixes: da7f3843d2c7 ("[media] omap3isp: Add support for the Device Tree")

Signed-off-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Reviewed-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: omap3isp: remove unused clkdev</title>
<updated>2015-04-10T13:25:30Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2015-04-03T17:12:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=befd25a2bd61f1706508280f705e18be8b283e3e'/>
<id>urn:sha1:befd25a2bd61f1706508280f705e18be8b283e3e</id>
<content type='text'>
No merged platform supplies xclks via platform data.  As we want to
slightly change the clkdev interface, rather than fixing this unused
code, remove it instead.

Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] omap3isp: Deprecate platform data support</title>
<updated>2015-04-02T19:48:07Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2015-03-25T22:57:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f95c16ea70cac9987f5cdc28b937ba83ce8f0f98'/>
<id>urn:sha1:f95c16ea70cac9987f5cdc28b937ba83ce8f0f98</id>
<content type='text'>
Print a warning when the driver is used with platform data. Existing
platform data users should move to DT now.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] omap3isp: Add support for the Device Tree</title>
<updated>2015-04-02T19:47:48Z</updated>
<author>
<name>Sakari Ailus</name>
</author>
<published>2015-03-25T22:57:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=da7f3843d2c797419af6befcc0fdd54f6e13b6f4'/>
<id>urn:sha1:da7f3843d2c797419af6befcc0fdd54f6e13b6f4</id>
<content type='text'>
Add the ISP device to omap3 DT include file and add support to the driver to
use it.

Also obtain information on the external entities and the ISP configuration
related to them through the Device Tree in addition to the platform data.

Signed-off-by: Sakari Ailus &lt;sakari.ailus@iki.fi&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
</feed>
