From: Andrzej Hajda <a.hajda@samsung.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>,
dri-devel@lists.freedesktop.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Neil Armstrong <narmstrong@baylibre.com>
Subject: Re: [PATCH v2] drm/bridge: tfp410: add pclk limits
Date: Mon, 10 Feb 2020 09:49:41 +0100 [thread overview]
Message-ID: <58e2b0d6-0e18-d2e0-d139-835d22b3a364@samsung.com> (raw)
In-Reply-To: <123befc8-8c57-4718-c23d-1bec9cf55ef4@ti.com>
On 10.02.2020 09:21, Tomi Valkeinen wrote:
> Hi Andrzej,
>
> On 21/01/2020 11:46, Tomi Valkeinen wrote:
>> Add pixel clock limits to the driver as per TFP410 datasheet: min 25MHz,
>> max 165MHz.
>>
>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
>> Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
>> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>> ---
>> drivers/gpu/drm/bridge/ti-tfp410.c | 13 +++++++++++++
>> 1 file changed, 13 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c
>> index 6f6d6d1e60ae..108e8cd7ab68 100644
>> --- a/drivers/gpu/drm/bridge/ti-tfp410.c
>> +++ b/drivers/gpu/drm/bridge/ti-tfp410.c
>> @@ -167,10 +167,23 @@ static void tfp410_disable(struct drm_bridge *bridge)
>> gpiod_set_value_cansleep(dvi->powerdown, 1);
>> }
>>
>> +static enum drm_mode_status tfp410_mode_valid(struct drm_bridge *bridge,
>> + const struct drm_display_mode *mode)
>> +{
>> + if (mode->clock < 25000)
>> + return MODE_CLOCK_LOW;
>> +
>> + if (mode->clock > 165000)
>> + return MODE_CLOCK_HIGH;
>> +
>> + return MODE_OK;
>> +}
>> +
>> static const struct drm_bridge_funcs tfp410_bridge_funcs = {
>> .attach = tfp410_attach,
>> .enable = tfp410_enable,
>> .disable = tfp410_disable,
>> + .mode_valid = tfp410_mode_valid,
>> };
>>
>> static void tfp410_hpd_work_func(struct work_struct *work)
>>
> Is this ok to merge?
Yes, If I remember you have merge rights. If not, let me know.
Andrzej
>
> Tomi
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-02-10 8:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20200113134541eucas1p2c48474f8c113c25aa0fe18d280bdb118@eucas1p2.samsung.com>
2020-01-13 13:45 ` [PATCH] drm/bridge: tfp410: add pclk limits Tomi Valkeinen
2020-01-17 10:05 ` Andrzej Hajda
2020-01-17 12:53 ` Laurent Pinchart
2020-01-21 9:44 ` Tomi Valkeinen
2020-01-21 9:46 ` [PATCH v2] " Tomi Valkeinen
2020-02-10 8:21 ` Tomi Valkeinen
2020-02-10 8:49 ` Andrzej Hajda [this message]
2020-02-10 9:05 ` Tomi Valkeinen
2020-02-10 9:07 ` Neil Armstrong
2020-02-10 9:33 ` Andrzej Hajda
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=58e2b0d6-0e18-d2e0-d139-835d22b3a364@samsung.com \
--to=a.hajda@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=narmstrong@baylibre.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;
as well as URLs for NNTP newsgroup(s).