<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/tilcdc/tilcdc_external.c, branch linux-4.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.19.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-07-29T15:10:35Z</updated>
<entry>
<title>tilcdc: tilcdc_external: fix an incorrect NULL check on list iterator</title>
<updated>2022-07-29T15:10:35Z</updated>
<author>
<name>Xiaomeng Tong</name>
</author>
<published>2022-03-27T06:15:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=761785e6071211d216fd33477df2aa0624e2202f'/>
<id>urn:sha1:761785e6071211d216fd33477df2aa0624e2202f</id>
<content type='text'>
[ Upstream commit 8b917cbe38e9b0d002492477a9fc2bfee2412ce4 ]

The bug is here:
	if (!encoder) {

The list iterator value 'encoder' will *always* be set and non-NULL
by list_for_each_entry(), so it is incorrect to assume that the
iterator value will be NULL if the list is empty or no element
is found.

To fix the bug, use a new variable 'iter' as the list iterator,
while use the original variable 'encoder' as a dedicated pointer
to point to the found element.

Cc: stable@vger.kernel.org
Fixes: ec9eab097a500 ("drm/tilcdc: Add drm bridge support for attaching drm bridge drivers")
Signed-off-by: Xiaomeng Tong &lt;xiam0nd.tong@gmail.com&gt;
Reviewed-by: Jyri Sarha &lt;jyri.sarha@iki.fi&gt;
Tested-by: Jyri Sarha &lt;jyri.sarha@iki.fi&gt;
Signed-off-by: Jyri Sarha &lt;jyri.sarha@iki.fi&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220327061516.5076-1-xiam0nd.tong@gmail.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/tilcdc: Remove obsolete crtc_mode_valid() hack</title>
<updated>2022-07-29T15:10:35Z</updated>
<author>
<name>Jyri Sarha</name>
</author>
<published>2019-08-02T12:55:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15642852eae793ff8fe1d47a0c71fe6cda5f0e2d'/>
<id>urn:sha1:15642852eae793ff8fe1d47a0c71fe6cda5f0e2d</id>
<content type='text'>
[ Upstream commit 57d8396504b3a93f284e51b866740a3e7419a3d9 ]

Earlier there were no mode_valid() helper for crtc and tilcdc had a
hack to over come this limitation. But now the mode_valid() helper is
there (has been since v4.13), so it is about time to get rid of that
hack.

Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/ &lt;5c4dcb5b1e7975bd2b7ca86f7addf219cd0f9a06.1564750248.git.jsarha@ti.com
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/tilcdc: Use drm_connector_has_possible_encoder()</title>
<updated>2018-07-05T13:52:08Z</updated>
<author>
<name>Ville Syrjälä</name>
</author>
<published>2018-06-28T13:13:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0b7510d15e14ba628ab9bacd6516e3f6a35ba21f'/>
<id>urn:sha1:0b7510d15e14ba628ab9bacd6516e3f6a35ba21f</id>
<content type='text'>
Use drm_connector_has_possible_encoder() for checking
whether the encoder has an associated connector.

v2: Replace the drm_for_each_connector_encoder_ids() loop
    with a simple drm_connector_has_possible_encoder() call

Cc: Jyri Sarha &lt;jsarha@ti.com&gt;
Cc: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20180628131315.14156-10-ville.syrjala@linux.intel.com
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Acked-by: Jyri Sarha &lt;jsarha@ti.com&gt;
</content>
</entry>
<entry>
<title>drm/tilcdc: Add support for drm panels</title>
<updated>2018-02-28T09:48:16Z</updated>
<author>
<name>Jyri Sarha</name>
</author>
<published>2018-02-18T17:48:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=544f7377d92c9dcd7578e5e376bbc2ec96478b37'/>
<id>urn:sha1:544f7377d92c9dcd7578e5e376bbc2ec96478b37</id>
<content type='text'>
Add support for drm panels to tilcdc. Adding the support on top of the
existing bridge support needs only couple of lines of code when using
using the drm panel bridge helpers.

Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Reviewed-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>drm: convert drivers to use of_graph_get_remote_node</title>
<updated>2017-04-06T21:00:27Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2017-03-22T13:26:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=86418f90a4c1a0073db65d8a1e2bf94421117a60'/>
<id>urn:sha1:86418f90a4c1a0073db65d8a1e2bf94421117a60</id>
<content type='text'>
Convert drivers to use the new of_graph_get_remote_node() helper
instead of parsing the endpoint node and then getting the remote device
node. Now drivers can just specify the device node and which
port/endpoint and get back the connected remote device node. The details
of the graph binding are nicely abstracted into the core OF graph code.

This changes some error messages to debug messages (in the graph core).
Graph connections are often "no connects" depending on the particular
board, so we want to avoid spurious messages. Plus the kernel is not a
DT validator.

Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Acked-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Tested-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
Tested-by: Eric Anholt &lt;eric@anholt.net&gt;
Tested-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Tested by: Archit Taneja &lt;architt@codeaurora.org&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
</content>
</entry>
<entry>
<title>drm: bridge: Link encoder and bridge in core code</title>
<updated>2016-12-18T11:01:45Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2016-11-28T15:59:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3bb80f249525c059572d4bc89ac77ac2e511bcbe'/>
<id>urn:sha1:3bb80f249525c059572d4bc89ac77ac2e511bcbe</id>
<content type='text'>
Instead of linking encoders and bridges in every driver (and getting it
wrong half of the time, as many drivers forget to set the drm_bridge
encoder pointer), do so in core code. The drm_bridge_attach() function
needs the encoder and optional previous bridge to perform that task,
update all the callers.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Acked-by: Stefan Agner &lt;stefan@agner.ch&gt; # For DCU
Acked-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt; # For atmel-hlcdc
Acked-by: Vincent Abriou &lt;vincent.abriou@st.com&gt; # For STI
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt; # For sun4i
Acked-by: Xinliang Liu &lt;z.liuxinliang@hisilicon.com&gt; # For hisilicon
Acked-by: Jyri Sarha &lt;jsarha@ti.com&gt; # For tilcdc
Reviewed-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Archit Taneja &lt;architt@codeaurora.org&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1481709550-29226-4-git-send-email-laurent.pinchart+renesas@ideasonboard.com
</content>
</entry>
<entry>
<title>drm/tilcdc: Add drm bridge support for attaching drm bridge drivers</title>
<updated>2016-11-30T12:17:52Z</updated>
<author>
<name>Jyri Sarha</name>
</author>
<published>2016-10-31T15:34:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ec9eab097a50040c743fe612c4635fd8ea5c5936'/>
<id>urn:sha1:ec9eab097a50040c743fe612c4635fd8ea5c5936</id>
<content type='text'>
Adds drm bride support for attaching drm bridge drivers to tilcdc. The
decision whether a video port leads to an external encoder or bridge
is made simply based on remote device's compatible string. The code
has been tested with BeagleBone-Black with and without BeagleBone
DVI-D Cape Rev A3 using ti-tfp410 driver.

Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Tested-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
</content>
</entry>
<entry>
<title>drm: convert DT component matching to component_match_add_release()</title>
<updated>2016-10-25T15:52:38Z</updated>
<author>
<name>Russell King</name>
</author>
<published>2016-10-19T10:28:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97ac0e47aed5f635893b0e2df634c64b38ca7541'/>
<id>urn:sha1:97ac0e47aed5f635893b0e2df634c64b38ca7541</id>
<content type='text'>
Convert DT component matching to use component_match_add_release().

Acked-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Reviewed-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/E1bwo6l-0005Io-Q1@rmk-PC.armlinux.org.uk
</content>
</entry>
<entry>
<title>drm/tilcdc: Choose console BPP that supports RGB</title>
<updated>2016-09-01T19:32:23Z</updated>
<author>
<name>Jyri Sarha</name>
</author>
<published>2016-08-13T18:08:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c56653855250ca6072d6e0ad7fe537c1a6628c70'/>
<id>urn:sha1:c56653855250ca6072d6e0ad7fe537c1a6628c70</id>
<content type='text'>
Choose console BPP that supports RGB and remove the old fbdev bpp
selection code. LCDC on AM335x has red and blue wires switched between
24 bit and 16 bit colors. If 24 format is wired for RGB colors, the 16
bit format is wired for BGR. drm_fbdev_cma_init() does not currently
like anything else but RGB formats, so we must choose such bytes per
pixel value that supports RGB.

Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
Reviewed-by: Tomi Valkeinen &lt;tomi.valkeinen@ti.com&gt;
</content>
</entry>
<entry>
<title>drm/tilcdc: Fix check for remote port parent</title>
<updated>2016-09-01T19:28:57Z</updated>
<author>
<name>Teresa Remmet</name>
</author>
<published>2016-08-15T08:16:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a3479c4fa0f149d9f3f6f88c173c4f4cd07a1714'/>
<id>urn:sha1:a3479c4fa0f149d9f3f6f88c173c4f4cd07a1714</id>
<content type='text'>
In function tilcdc_get_external_components the check for
the remote port parent is not correct. We need a '||' instead of
an '&amp;&amp;'.

Signed-off-by: Teresa Remmet &lt;t.remmet@phytec.de&gt;
Signed-off-by: Jyri Sarha &lt;jsarha@ti.com&gt;
</content>
</entry>
</feed>
