From: Thomas Zimmermann <tzimmermann@suse.de>
To: Alejandro Concepcion-Rodriguez <asconcepcion@acoro.eu>,
airlied@linux.ie, daniel@ffwll.ch, maxime@cerno.tech,
dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm: simpledrm: fix wrong unit with pixel clock
Date: Mon, 13 Dec 2021 11:30:03 +0100 [thread overview]
Message-ID: <b4bf80bb-8b89-ae6e-9234-b19e334005f6@suse.de> (raw)
In-Reply-To: <6f8554ef-1305-0dda-821c-f7d2e5644a48@acoro.eu>
[-- Attachment #1.1: Type: text/plain, Size: 1191 bytes --]
Hi
Am 12.12.21 um 17:06 schrieb Alejandro Concepcion-Rodriguez:
> Pixel clock has to be set in kHz.
>
> Fixes: 11e8f5fd223b ("drm: Add simpledrm driver")
>
> Signed-off-by: Alejandro Concepcion-Rodriguez <asconcepcion@acoro.eu>
Applied to drm-misc-fixes. Thanks.
Best regards
Thomas
> ---
> drivers/gpu/drm/tiny/simpledrm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tiny/simpledrm.c b/drivers/gpu/drm/tiny/simpledrm.c
> index 2f999915b9aa..562bf09f9140 100644
> --- a/drivers/gpu/drm/tiny/simpledrm.c
> +++ b/drivers/gpu/drm/tiny/simpledrm.c
> @@ -459,7 +459,7 @@ static struct drm_display_mode simpledrm_mode(unsigned int width,
> {
> struct drm_display_mode mode = { SIMPLEDRM_MODE(width, height) };
>
> - mode.clock = 60 /* Hz */ * mode.hdisplay * mode.vdisplay;
> + mode.clock = mode.hdisplay * mode.vdisplay * 60 / 1000 /* kHz */;
> drm_mode_set_name(&mode);
>
> return mode;
> --
> 2.25.1
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
next prev parent reply other threads:[~2021-12-13 10:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-12 16:06 Alejandro Concepcion-Rodriguez
2021-12-13 10:30 ` Thomas Zimmermann [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-12-12 12:05 Alejandro Concepcion-Rodriguez
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=b4bf80bb-8b89-ae6e-9234-b19e334005f6@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@linux.ie \
--cc=asconcepcion@acoro.eu \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime@cerno.tech \
/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
all inboxes | Powered by JetHome®