Cc: <adaplas@...>, <linux-fbdev-devel@...>, <linux-kernel@...>, Harald Krapfenbauer <harald.krapfenbauer@...>, Michael Hennerich <michael.hennerich@...>
On Mon, May 12, 2008 at 06:49:07PM +0800, Bryan Wu wrote:
25..70 != 52..68, pick one and stick with it. If there's a reason for the
discrepency, then document that, too. ie, "data sheet has no relation to
hardware".
[snip]
The only way to break out of here is dependent on the timer. You have no
timeout in the case of the timer getting stuck.
Presumably this should be done in the probe path, rather than lazily.
Though you don't bother doing any error checking, so I suppose it doesn't
really matter.
This is equally bizarre. If you can never support more than one opener of
this device, then have your open() reflect that, rather than trying to do
these lame hacks in every file op.
Beyond that, the size of the VMA is reflected in info->fix.mmio_len,
which the generic fb_mmap() takes care of for you. Other than the
questionable VMA flags, it's not obvious why you rolled your own mmap.
--