From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Jyri Sarha <jsarha@ti.com>, dri-devel@lists.freedesktop.org
Cc: laurent.pinchart@ideasonboard.com
Subject: Re: [PATCH v2 21/21] drm/tilcdc: Initialize crtc->port
Date: Mon, 22 Feb 2016 14:50:01 +0200 [thread overview]
Message-ID: <56CB03F9.5090705@ti.com> (raw)
In-Reply-To: <4acbb8ee93fba0b0bd29a347169134dc65cda617.1455632042.git.jsarha@ti.com>
[-- Attachment #1.1: Type: text/plain, Size: 1676 bytes --]
On 16/02/16 16:18, Jyri Sarha wrote:
> Initialize port device node pointer in the tilcdc crtc. Fixes "Falling
> back to first CRTC" warning from tda998x driver.
The description is rather short, and doesn't really explain what was
wrong and why this fixes it.
> Signed-off-by: Jyri Sarha <jsarha@ti.com>
> ---
> drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
> index e886277..cfd3fd1 100644
> --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
> +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
> @@ -124,6 +124,7 @@ static void tilcdc_crtc_destroy(struct drm_crtc *crtc)
>
> tilcdc_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);
>
> + of_node_put(crtc->port);
> drm_crtc_cleanup(crtc);
> drm_flip_work_cleanup(&tilcdc_crtc->unref_work);
>
> @@ -768,6 +769,7 @@ void tilcdc_crtc_cancel_page_flip(struct drm_crtc *crtc, struct drm_file *file)
>
> struct drm_crtc *tilcdc_crtc_create(struct drm_device *dev)
> {
> + struct tilcdc_drm_private *priv = dev->dev_private;
> struct tilcdc_crtc *tilcdc_crtc;
> struct drm_crtc *crtc;
> int ret;
> @@ -794,6 +796,15 @@ struct drm_crtc *tilcdc_crtc_create(struct drm_device *dev)
>
> drm_crtc_helper_add(crtc, &tilcdc_crtc_helper_funcs);
>
> + if (priv->is_componentized) {
> + crtc->port =
> + of_get_child_by_name(dev->dev->of_node, "port");
> + if (!crtc->port) {
> + dev_warn(dev->dev, "no port node found in %s\n",
> + dev->dev->of_node->full_name);
Isn't this an error? Can the driver proceed if there's no port node?
Tomi
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-02-22 12:50 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 14:18 [PATCH v2 00/21] drm/ticdc: Accumulated fixes over the past couple of years Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 01/21] drm/tilcdc: rewrite pixel clock calculation Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 02/21] drm/tilcdc: verify fb pitch Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 03/21] drm/tilcdc: adopt pinctrl support Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 04/21] drm/tilcdc: fix kernel panic on suspend when no hdmi monitor connected Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 05/21] drm/tilcdc: make frame_done interrupt active at all times Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 06/21] drm/tilcdc: disable the lcd controller/dma engine when suspend invoked Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 07/21] drm/tilcdc: Implement dma-buf support for tilcdc Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 08/21] drm/tilcdc: fix build error when !CONFIG_CPU_FREQ Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 09/21] drm/tilcdc: Allocate register storage based on the actual number registers Jyri Sarha
2016-02-22 12:51 ` Tomi Valkeinen
2016-02-16 14:18 ` [PATCH v2 10/21] drm/tilcdc: cleanup runtime PM handling Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 11/21] drm/tilcdc: disable crtc on unload Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 12/21] drm/tilcdc: split reset to a separate function Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 13/21] drm/tilcdc: remove broken error handling Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 14/21] drm/tilcdc: cleanup irq handling Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 15/21] drm/tilcdc: Get rid of complex ping-pong mechanism Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 16/21] drm/tilcdc: Do not update the next frame buffer close to vertical blank Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 17/21] drm/tilcdc: Fix interrupt enable/disable code for version 2 tilcdc Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 18/21] drm/tilcdc: Remove the duplicate LCDC_INT_ENABLE_SET_REG in registers[] Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 19/21] drm/tilcdc: Add prints on sync lost and FIFO underrun interrupts Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 20/21] drm/tilcdc: Disable sync lost interrupt if it fires on every frame Jyri Sarha
2016-02-16 14:18 ` [PATCH v2 21/21] drm/tilcdc: Initialize crtc->port Jyri Sarha
2016-02-22 12:50 ` Tomi Valkeinen [this message]
2016-02-22 12:59 ` [PATCH v2 00/21] drm/ticdc: Accumulated fixes over the past couple of years Tomi Valkeinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56CB03F9.5090705@ti.com \
--to=tomi.valkeinen@ti.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jsarha@ti.com \
--cc=laurent.pinchart@ideasonboard.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.