From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH resend] ocfb: fix tgdel and tvdel timing parameters
Date: Fri, 29 Jan 2016 11:35:02 +0000 [thread overview]
Message-ID: <56AB4E66.4020901@ti.com> (raw)
In-Reply-To: <1453819684-32742-1-git-send-email-andrea.merello@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]
On 26/01/16 16:48, Andrea Merello wrote:
> According to the ocfb documentation:
> Fix tgdel HW param should be left margin, not right.
> Fix tvdel HW param should upper margin, not lower.
>
> This seems to fix lock issues on certain monitors (tested on a
> slightly customized IP, but the FPGA guy said that it should
> be the same wrt this changes).
>
> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
>
> diff --git a/drivers/video/fbdev/ocfb.c b/drivers/video/fbdev/ocfb.c
> index c9293ae..a970edc2 100644
> --- a/drivers/video/fbdev/ocfb.c
> +++ b/drivers/video/fbdev/ocfb.c
> @@ -123,11 +123,11 @@ static int ocfb_setupfb(struct ocfb_dev *fbdev)
>
> /* Horizontal timings */
> ocfb_writereg(fbdev, OCFB_HTIM, (var->hsync_len - 1) << 24 |
> - (var->right_margin - 1) << 16 | (var->xres - 1));
> + (var->left_margin - 1) << 16 | (var->xres - 1));
>
> /* Vertical timings */
> ocfb_writereg(fbdev, OCFB_VTIM, (var->vsync_len - 1) << 24 |
> - (var->lower_margin - 1) << 16 | (var->yres - 1));
> + (var->upper_margin - 1) << 16 | (var->yres - 1));
>
> /* Total length of frame */
> hlen = var->left_margin + var->right_margin + var->hsync_len +
> --
> 1.9.1
>
Thanks, queued for 4.5 fixes.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2016-01-29 11:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-26 14:48 [PATCH resend] ocfb: fix tgdel and tvdel timing parameters Andrea Merello
2016-01-26 20:36 ` Stefan Kristiansson
2016-01-29 11:35 ` Tomi Valkeinen [this message]
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=56AB4E66.4020901@ti.com \
--to=tomi.valkeinen@ti.com \
--cc=linux-fbdev@vger.kernel.org \
/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.