dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Agner <stefan@agner.ch>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 2/2] drm: Use new DRM_BUS_FLAG_*_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags
Date: Wed, 05 Dec 2018 13:21:56 +0100	[thread overview]
Message-ID: <8d69478ea8f88340971a29b3dfdcbb58@agner.ch> (raw)
In-Reply-To: <9b0969b8-f0ad-1c95-7eb0-f36044466ada@ti.com>

On 05.12.2018 11:42, Tomi Valkeinen wrote:
> Hi,
> 
> On 05/12/18 10:49, Laurent Pinchart wrote:
>> From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>>
>> The DRM_BUS_FLAG_PIXDATA_(POS|NEG)EDGE and
>> DRM_BUS_FLAG_SYNC_(POS|NEG)EDGE flags are deprecated in favour of the
>> new DRM_BUS_FLAG_PIXDATA_(DRIVE|SAMPLE)_(POS|NEG)EDGE and
>> new DRM_BUS_FLAG_SYNC_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags. Replace them
>> through the code.
>>
>> This effectively changes the value of the .sampling_edge bridge timings
>> field in the dumb-vga-dac driver. This is safe to do as no driver
>> consumes these values yet.
> 
> When to use which?

I guess whatever works best, e.g. if a display controller uses the
sample perspective, to describe its register, I would use the matching
defines.

> 
> Looking at the omap drivers, you use the DRIVE variant. But if the
> encoder/panel is describing what it wants as input, shouldn't it use the
> SAMPLE variant?

If it is fine to use either one in display controllers or displays, I
guess that is fine. I'd rather prefer a mechanical change right now, and
do logical fixes on a per case basis. However, in this patch the
dumb-vga-dac.c case already breaks that rule. Maybe it should be  a
separate patch?

--
Stefan


> 
>  Tomi
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2018-12-05 12:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-05  8:49 [PATCH v2 0/2] Clarify display info PIXDATA bus flags Laurent Pinchart
2018-12-05  8:49 ` [PATCH v2 1/2] drm: Clarify definition of the DRM_BUS_FLAG_(PIXDATA|SYNC)_* macros Laurent Pinchart
2018-12-05  8:49 ` [PATCH v2 2/2] drm: Use new DRM_BUS_FLAG_*_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags Laurent Pinchart
2018-12-05 10:42   ` Tomi Valkeinen
2018-12-05 12:21     ` Stefan Agner [this message]
2018-12-09 23:52       ` Laurent Pinchart
2018-12-09 23:51     ` Laurent Pinchart

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=8d69478ea8f88340971a29b3dfdcbb58@agner.ch \
    --to=stefan@agner.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=maxime.ripard@bootlin.com \
    --cc=thierry.reding@gmail.com \
    --cc=tomi.valkeinen@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox