From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Tobias Schandinat Date: Sat, 03 Dec 2011 21:45:38 +0000 Subject: Re: [PATCH v3.1] [resend] Resurrect Intel740 driver: i740fb Message-Id: <4EDA9882.208@gmx.de> List-Id: References: <201111182154.45139.linux@rainbow-software.org> In-Reply-To: <201111182154.45139.linux@rainbow-software.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ondrej Zary Cc: linux-fbdev@vger.kernel.org, Paul Mundt , Kernel development list Hi Ondrej, On 11/18/2011 08:54 PM, Ondrej Zary wrote: > Hello, > this is an v3 attempt to resurrect an old (like 2.4.19) out-of-tree driver for > Intel740 graphics cards and modify it for recent kernels. The old driver is > located at: http://sourceforge.net/projects/i740fbdev/files/ > > It was easier to create a new driver based on skeletonfb, using most of the > low level HW code from the old driver. The DDC code is completely new. > > The driver was tested on two 8MB cards: Protac AG240D and Diamond Stealth II > G460. > > Changes in v3: > - added suspend/resume support > - fixed x panning Could you write this text more like other commit messages you see when you do "git log" rather than an email, please? It's mostly okay, but no greetings, no history of your patch (that might be useful but please write it in a separate section and not spread out trough the commit message). > > Signed-off-by: Ondrej Zary > > --- linux-2.6.39-rc2-orig/drivers/video/Makefile 2011-04-06 03:30:43.000000000 +0200 > +++ linux-2.6.39-rc2/drivers/video/Makefile 2011-07-30 11:34:10.000000000 +0200 > @@ -36,6 +36,7 @@ obj-$(CONFIG_FB_CYBER2000) += cyb > obj-$(CONFIG_FB_PM2) += pm2fb.o > obj-$(CONFIG_FB_PM3) += pm3fb.o > > +obj-$(CONFIG_FB_I740) += i740fb.o > obj-$(CONFIG_FB_MATROX) += matrox/ > obj-$(CONFIG_FB_RIVA) += riva/ > obj-$(CONFIG_FB_NVIDIA) += nvidia/ > --- linux-2.6.39-rc2-orig/drivers/video/Kconfig 2011-04-06 03:30:43.000000000 +0200 > +++ linux-2.6.39-rc2/drivers/video/Kconfig 2011-10-24 23:29:42.000000000 +0200 > @@ -1117,6 +1117,17 @@ config FB_RIVA_BACKLIGHT > help > Say Y here if you want to control the backlight of your display. > > +config FB_I740 > + tristate "Intel740 support (EXPERIMENTAL)" > + depends on EXPERIMENTAL && FB && PCI > + select FB_MODE_HELPERS > + select FB_CFB_FILLRECT > + select FB_CFB_COPYAREA > + select FB_CFB_IMAGEBLIT > + select VGASTATE > + help > + This driver supports graphics cards based on Intel740 chip. > + > config FB_I810 > tristate "Intel 810/815 support (EXPERIMENTAL)" > depends on EXPERIMENTAL && FB && PCI && X86_32 && AGP_INTEL > --- /dev/null 2011-10-28 20:05:27.615214131 +0200 > +++ linux-2.6.39-rc2/drivers/video/i740fb.c 2011-10-28 20:03:34.000000000 +0200 > @@ -0,0 +1,1286 @@ > +/* > + * i740fb - framebuffer driver for Intel740 > + * Copyright (c) 2011 Ondrej Zary > + * > + * Based on old i740fb driver (c) 2001-2002 Andrey Ulanov which was partially based on: > + * VGA 16-color framebuffer driver (c) 1999 Ben Pfaff and Petr Vandrovec > + * i740 driver from XFree86 (c) 1998-1999 Precision Insight, Inc., Cedar Park, Texas. > + * i740fb by Patrick LERDA, v0.9 > + */ Although there are exception where checkpatch errors/warnings can be ignored, you really shouldn't cause unnecessary ones which you would not like to defend. After all there are some people running around and "fixing" those in existing code. And at least I'd consider those "line over 80 characters" due to comments absolutely unnecessary. > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include