* Re: 答复: [PATCH]Siliconmotion initial patch
[not found] <4CE6A5494DEECD498EBCD4C5488B1AFCEAC6F7@CNDC08.cn.smi.ad>
@ 2013-02-05 21:04 ` Daniel Vetter
2013-02-05 21:19 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Vetter @ 2013-02-05 21:04 UTC (permalink / raw)
To: Aaron.Chen 陈俊杰
Cc: Greg KH, Linux Fbdev development list,
caesar.qiu 裘赛海, dri-devel
On Tue, Feb 05, 2013 at 03:51:55PM +0800, Aaron.Chen 陈俊杰 wrote:
> This is an initial patch for Siliconmotion Graphics chips. It add SM750
> chip support with 2d accelerate and hw curser support. It is a complete
> new driver. So the patch is a little bit big. Is it OK for review?
Adding a new fbdev driver while established consensus pretty much boils
down to fbdev being a dead subsystem which should only be used for legacy
applications and drivers: Not good. You should implement this as a drm
modesetting driver, and if required base your 2d acceleration on top of
the drm fb helpers. Or just implement a drm/gem driver to expose this.
Additionally you should include the appropriate mailing lists, which is
linux-fbdev for fbdev drivers.
On a very quick read the patch has serious issues:
- checkpatch.pl:
total: 2 errors, 779 warnings, 7961 lines checked
NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or
scripts/cleanfile
- Remants of hungarian notation (dunno whether checkpatch checks for
those, too much other stuff flying by, but it really stuck out).
- Not using the linux i2c layer in the ddk750_hwi2c.c file.
- Reimplementing i2c bit-banging code in the ddk750_swi2c.c
- Adding a new implementation of a sil 164 dvi driver, we already have at
least two in drivers/gpu/drm/i2c/sil164_drv.c and
drivers/gpu/drm/i915/dvo_sil164.c. This should be unified and probably
use the drm encoder slave framework.
At that point I've given up on further review, since there's clearly a lot
of work left to do. Please review SubmittingPatches from the kernel
documentation carefully. Also cc'ing our dear staging maintainer, he
should be able to point you at further useful resources for getting this
going.
Cheers, Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 答复: [PATCH]Siliconmotion initial patch
2013-02-05 21:04 ` 答复: [PATCH]Siliconmotion initial patch Daniel Vetter
@ 2013-02-05 21:19 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2013-02-05 21:19 UTC (permalink / raw)
To: Daniel Vetter
Cc: Linux Fbdev development list, caesar.qiu 裘赛海,
dri-devel, Aaron.Chen 陈俊杰
On Tue, Feb 05, 2013 at 10:04:27PM +0100, Daniel Vetter wrote:
> On Tue, Feb 05, 2013 at 03:51:55PM +0800, Aaron.Chen 陈俊杰 wrote:
> > This is an initial patch for Siliconmotion Graphics chips. It add SM750
> > chip support with 2d accelerate and hw curser support. It is a complete
> > new driver. So the patch is a little bit big. Is it OK for review?
>
> Adding a new fbdev driver while established consensus pretty much boils
> down to fbdev being a dead subsystem which should only be used for legacy
> applications and drivers: Not good. You should implement this as a drm
> modesetting driver, and if required base your 2d acceleration on top of
> the drm fb helpers. Or just implement a drm/gem driver to expose this.
>
> Additionally you should include the appropriate mailing lists, which is
> linux-fbdev for fbdev drivers.
>
> On a very quick read the patch has serious issues:
>
> - checkpatch.pl:
>
> total: 2 errors, 779 warnings, 7961 lines checked
>
> NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or
> scripts/cleanfile
>
> - Remants of hungarian notation (dunno whether checkpatch checks for
> those, too much other stuff flying by, but it really stuck out).
>
> - Not using the linux i2c layer in the ddk750_hwi2c.c file.
>
> - Reimplementing i2c bit-banging code in the ddk750_swi2c.c
>
> - Adding a new implementation of a sil 164 dvi driver, we already have at
> least two in drivers/gpu/drm/i2c/sil164_drv.c and
> drivers/gpu/drm/i915/dvo_sil164.c. This should be unified and probably
> use the drm encoder slave framework.
>
> At that point I've given up on further review, since there's clearly a lot
> of work left to do. Please review SubmittingPatches from the kernel
> documentation carefully. Also cc'ing our dear staging maintainer, he
> should be able to point you at further useful resources for getting this
> going.
If you wish to put this in the drivers/staging/ directory and do the
cleanup there before it moves to the "real" part of the kernel, I have
no objection to that.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-05 21:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4CE6A5494DEECD498EBCD4C5488B1AFCEAC6F7@CNDC08.cn.smi.ad>
2013-02-05 21:04 ` 答复: [PATCH]Siliconmotion initial patch Daniel Vetter
2013-02-05 21:19 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox