<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/sti, branch linux-5.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-07-14T14:59:19Z</updated>
<entry>
<title>media: st-hva: Fix potential NULL pointer dereferences</title>
<updated>2021-07-14T14:59:19Z</updated>
<author>
<name>Evgeny Novikov</name>
</author>
<published>2021-05-19T12:04:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=41c722bd5a3e3d02e845f1e6926be901db84c79b'/>
<id>urn:sha1:41c722bd5a3e3d02e845f1e6926be901db84c79b</id>
<content type='text'>
[ Upstream commit b7fdd208687ba59ebfb09b2199596471c63b69e3 ]

When ctx_id &gt;= HVA_MAX_INSTANCES in hva_hw_its_irq_thread() it tries to
access fields of ctx that is NULL at that point. The patch gets rid of
these accesses.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Evgeny Novikov &lt;novikov@ispras.ru&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&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: sti: fix obj-$(config) targets</title>
<updated>2021-07-14T14:59:17Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2021-05-18T09:26:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=474d810e0c0d6375286d20b334478805b78ab074'/>
<id>urn:sha1:474d810e0c0d6375286d20b334478805b78ab074</id>
<content type='text'>
[ Upstream commit 56c1f0876293888f686e31278d183d4af2cac3c3 ]

The right thing to do is to add a new object to the building
system when a certain config option is selected, and *not*
override them.

So, fix obj-$(config) logic at sti makefiles, using "+=",
instead of ":=".

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: sti/bdisp: fix pm_runtime_get_sync() usage count</title>
<updated>2021-07-14T14:59:16Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2021-04-23T15:19:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b7696936609c31a51582d6d18a110c8c926a3ae7'/>
<id>urn:sha1:b7696936609c31a51582d6d18a110c8c926a3ae7</id>
<content type='text'>
[ Upstream commit c44eac5b72e23c31eefc0e10a71d9650036b8341 ]

The pm_runtime_get_sync() internally increments the
dev-&gt;power.usage_count without decrementing it, even on errors.

The bdisp_start_streaming() doesn't take it into account, which
would unbalance PM usage counter at bdisp_stop_streaming().

The logic at bdisp_probe() is correct, but the best is to use
the same call along the driver.

So, replace it by the new pm_runtime_resume_and_get(), introduced by:
commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
in order to properly decrement the usage counter, avoiding
a potential PM usage counter leak.

Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.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: platform: sti: Fix runtime PM imbalance in regs_show</title>
<updated>2021-05-12T06:39:49Z</updated>
<author>
<name>Dinghao Liu</name>
</author>
<published>2021-04-07T05:43:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c9c8b61f30dd7816a8a58724efbaaf2196692844'/>
<id>urn:sha1:c9c8b61f30dd7816a8a58724efbaaf2196692844</id>
<content type='text'>
[ Upstream commit 69306a947b3ae21e0d1cbfc9508f00fec86c7297 ]

pm_runtime_get_sync() will increase the runtime PM counter
even it returns an error. Thus a pairing decrement is needed
to prevent refcount leak. Fix this by replacing this API with
pm_runtime_resume_and_get(), which will not change the runtime
PM counter on error.

Signed-off-by: Dinghao Liu &lt;dinghao.liu@zju.edu.cn&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&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: sti/hva: add missing clk_disable_unprepare()</title>
<updated>2021-01-27T07:34:09Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2021-01-20T08:47:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0dfa73608f45918aa1c9a98c6d4c8b86382a4bc2'/>
<id>urn:sha1:0dfa73608f45918aa1c9a98c6d4c8b86382a4bc2</id>
<content type='text'>
Fixes this smatch warning:

drivers/media/platform/sti/hva/hva-hw.c:453 hva_hw_runtime_resume() warn: 'hva-&gt;clk' not released on lines: 450.

Call clk_disable_unprepare() when clk_set_rate() fails.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Cc: Jean-Christophe Trotin &lt;jean-christophe.trotin@st.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: sti/c8sectpfe: set correct return code</title>
<updated>2021-01-27T07:33:50Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2021-01-20T08:45:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d14284fe3634e873560a5dce90b65dfd409a29d'/>
<id>urn:sha1:3d14284fe3634e873560a5dce90b65dfd409a29d</id>
<content type='text'>
Fixes this smatch warning:

drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:829 c8sectpfe_probe() warn: missing error code 'ret'

Set ret to -EINVAL if the reset gpio was not found.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: c8sectpfe: clean up some indenting</title>
<updated>2020-11-27T09:43:34Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2020-01-14T05:10:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dc10472baf6d55eda47d54c2ca8b7aaefbe1e799'/>
<id>urn:sha1:dc10472baf6d55eda47d54c2ca8b7aaefbe1e799</id>
<content type='text'>
The "seg_num," line wasn't indented.  All the arguments can fit nicely
on two lines.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Patrice Chotard &lt;patrice.chotard@st.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: platform: sti: c8sectpfe: core: Add of_node_put() at goto</title>
<updated>2020-11-27T06:53:26Z</updated>
<author>
<name>Nishka Dasgupta</name>
</author>
<published>2019-07-16T05:38:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bf9d46f751e75bf3d9a48bd69675f95d86ff7eb9'/>
<id>urn:sha1:bf9d46f751e75bf3d9a48bd69675f95d86ff7eb9</id>
<content type='text'>
Each iteration of for_each_child_of_node puts the previous node, but in
the case of a goto from the middle of the loop, there is no put, thus
causing a memory leak. Hence add a new label that puts the last used
node, and edit the goto statements in the middle of the loop to first go
to the new label.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta &lt;nishkadg.linux@gmail.com&gt;
Acked-by: Patrice Chotard &lt;patrice.chotard@st.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: st-delta: Fix reference count leak in delta_run_work</title>
<updated>2020-09-27T08:56:07Z</updated>
<author>
<name>Aditya Pakki</name>
</author>
<published>2020-06-14T03:58:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=57cc666d36adc7b45e37ba4cd7bc4e44ec4c43d7'/>
<id>urn:sha1:57cc666d36adc7b45e37ba4cd7bc4e44ec4c43d7</id>
<content type='text'>
delta_run_work() calls delta_get_sync() that increments
the reference counter. In case of failure, decrement the reference
count by calling delta_put_autosuspend().

Signed-off-by: Aditya Pakki &lt;pakki001@umn.edu&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: sti: Fix reference count leaks</title>
<updated>2020-09-27T08:55:50Z</updated>
<author>
<name>Qiushi Wu</name>
</author>
<published>2020-06-14T03:31:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6f4432bae9f2d12fc1815b5e26cc07e69bcad0df'/>
<id>urn:sha1:6f4432bae9f2d12fc1815b5e26cc07e69bcad0df</id>
<content type='text'>
pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code, causing incorrect ref count if
pm_runtime_put_noidle() is not called in error handling paths.
Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails.

Signed-off-by: Qiushi Wu &lt;wu000273@umn.edu&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
</content>
</entry>
</feed>
