linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bernhard Fischer <yght@users.sourceforge.net>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: "Antonino A. Daplas" <adaplas@gmail.com>
Subject: Re: [PATCH]: frame buffer driver for 2700G LCD controller
Date: Tue, 11 Jul 2006 15:24:02 +0200	[thread overview]
Message-ID: <20060711132402.GB1533@aon.at> (raw)
In-Reply-To: <44B3954D.4040302@compulab.co.il>

Could some kind soul do a recursive s/timming/timing/g in
drivers/video, please? TIA.

A few cosmetic remarks regarding the mbx driver below..

On Tue, Jul 11, 2006 at 02:10:53PM +0200, Mike Rapoport wrote:
>--- a/drivers/video/Kconfig
>+++ b/drivers/video/Kconfig
>@@ -1518,6 +1518,16 @@ config FB_PXA_PARAMETERS
> 
> 	  <file:Documentation/fb/pxafb.txt> describes the available parameters.
> 
>+config FB_MBX
>+	tristate "2700G LCD framebuffer support"
>+	depends on FB && ARCH_PXA
>+	select FB_CFB_FILLRECT
>+	select FB_CFB_COPYAREA
>+	select FB_CFB_IMAGEBLIT
>+	---help---
>+

A tad more description would be nice:
	  Intel 2700G (Marathon) Graphics Accelerator Frame Buffer
	  Driver

>+	  If unsure, say N.
>+
> config FB_W100
> 	tristate "W100 frame buffer support"
> 	depends on FB && PXA_SHARPSL

>diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
>new file mode 100644
>index 0000000..c41a678
>--- /dev/null
>+++ b/drivers/video/mbx/mbxfb.c

>+#define MAX_PALETTES	16
>+
>+/* FIXME: take care of different chip reivsions with different sizes

s/reivsions/revisions/

>+#ifdef CONFIG_PM
>+/*
>+ * Power management hooks.  Note that we won't be called from IRQ context,
>+ * unlike the blank functions above, so we may sleep.
>+ */
>+static int mbxfb_suspend(struct platform_device *dev, pm_message_t state)
>+{
>+	/* make frame buffer memory enter self-refresh mode */
>+	writel(LMPWR_MC_PWR_SRM, LMPWR);
>+	while (LMPWRSTAT != LMPWRSTAT_MC_PWR_SRM)
>+		; /* empty statement */
>+
>+	/* reset the device, since it's initial state is 'mostly sleeping' */
>+	writel(SYSRST_RST, SYSRST);
>+	return 0;
>+}
>+
>+static int mbxfb_resume(struct platform_device *dev)
>+{
>+	struct fb_info *fbi = (struct fb_info *)platform_get_drvdata(dev);
>+
>+	enable_clocks(fbi);
>+/* 	setup_graphics(fbi); */
>+/* 	setup_display(fbi); */
>+
>+	writel((readl(DSCTRL) | DSCTRL_SYNCGEN_EN), DSCTRL);
>+	return 0;
>+}

IIRC it was already stated that it is better to only set the .suspend
and .resume ops depending on CONFIG_PM (see below instead of the #if
#else #endif stanza here).
>+#else
>+#define mbxfb_suspend	NULL
>+#define mbxfb_resume	NULL
>+#endif

>+static struct platform_driver mbxfb_driver = {
>+	.probe = mbxfb_probe,
>+	.remove = mbxfb_remove,

#ifdef CONFIG_PM

>+	.suspend = mbxfb_suspend,
>+	.resume = mbxfb_resume,

#endif /* CONFIG_PM */

>+	.driver = {
>+		.name = "mbx-fb",
>+	},
>+};

cheers,


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  parent reply	other threads:[~2006-07-11 13:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06 15:25 [PATCH]: frame buffer driver for 2700G LCD controller Mike Rapoport
2006-07-07  2:19 ` Antonino A. Daplas
2006-07-09 14:40   ` Mike Rapoport
2006-07-09 19:38     ` Geert Uytterhoeven
2006-07-09 23:21     ` Antonino A. Daplas
2006-07-11 10:08       ` Mike Rapoport
2006-07-11  9:33         ` Antonino A. Daplas
2006-07-11 12:10       ` Mike Rapoport
2006-07-11 12:53         ` Antonino A. Daplas
2006-07-11 14:14           ` Mike Rapoport
2006-07-11 13:24         ` Bernhard Fischer [this message]
2006-07-11 13:46           ` Antonino A. Daplas

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=20060711132402.GB1533@aon.at \
    --to=yght@users.sourceforge.net \
    --cc=adaplas@gmail.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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).