linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Tom Gundersen <teg@jklm.no>
Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	plagnioj@jcrosoft.com, David Herrmann <dh.herrmann@gmail.com>
Subject: Re: [PATCH v3] simplefb: print some info about the registered fb
Date: Wed, 09 Oct 2013 09:05:58 +0000	[thread overview]
Message-ID: <52551C76.8050600@ti.com> (raw)
In-Reply-To: <1378562915-893-1-git-send-email-teg@jklm.no>

[-- Attachment #1: Type: text/plain, Size: 1287 bytes --]

On 07/09/13 17:08, Tom Gundersen wrote:
> This is similar to the output printed by efifb.
> 
> Signed-off-by: Tom Gundersen <teg@jklm.no>
> Acked-by: Stephen Warren <swarren@wwwdotorg.org>
> Cc: David Herrmann <dh.herrmann@gmail.com>
> ---
> v2: also print smem_len, as requested by David
> v3: don't cast, as requested by Geert
> 
>  drivers/video/simplefb.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c
> index a29f1c4..50cbceb 100644
> --- a/drivers/video/simplefb.c
> +++ b/drivers/video/simplefb.c
> @@ -220,6 +220,14 @@ static int simplefb_probe(struct platform_device *pdev)
>  	}
>  	info->pseudo_palette = (void *)(info + 1);
>  
> +	dev_info(&pdev->dev, "framebuffer at 0x%lx, 0x%x bytes, mapped to 0x%p\n",
> +			     info->fix.smem_start, info->fix.smem_len,
> +			     info->screen_base);
> +	dev_info(&pdev->dev, "format=%s, mode=%dx%dx%d, linelength=%d\n",
> +			     params.format->name,
> +			     info->var.xres, info->var.yres,
> +			     info->var.bits_per_pixel, info->fix.line_length);
> +
>  	ret = register_framebuffer(info);
>  	if (ret < 0) {
>  		dev_err(&pdev->dev, "Unable to register simplefb: %d\n", ret);
> 

Thanks, queued for 3.13.

 Tomi



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

      parent reply	other threads:[~2013-10-09  9:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1378467880-1040-1-git-send-email-teg@jklm.no>
2013-09-06 11:49 ` [PATCH] simplefb: print some info about the registered fb Tom Gundersen
2013-09-06 19:11   ` Stephen Warren
2013-09-07 11:16   ` David Herrmann
2013-09-07 11:43     ` [PATCH v2] " Tom Gundersen
2013-09-07 13:55       ` Geert Uytterhoeven
2013-09-07 14:08         ` [PATCH v3] " Tom Gundersen
2013-10-01 16:45           ` Tom Gundersen
2013-10-09  9:05           ` 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=52551C76.8050600@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=dh.herrmann@gmail.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=plagnioj@jcrosoft.com \
    --cc=teg@jklm.no \
    /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).