Re: [PATCH 4/4] [RFC] UIO: generic platform driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hans J. Koch
Date: Friday, April 11, 2008 - 2:24 am

On Fri, Apr 11, 2008 at 08:21:06AM +0200, Uwe Kleine-König wrote:

All right, I won't argue about this one. If you like it, use it.


OK, as this is a generic driver where we don't know what crap people
will pass in, it might be justified. OK.


No. It's more important to see which variables are declared in the
function and which are declared elsewhere. If you have to search the
whole body of a function for possible declarations, this is BAD. And if
it's not clear where a variable is used, the function is too long or has
other style problems. Your function is short and clean, so where's the
problem? Please move the declaration to the top of the function.


I don't like it. It makes things more complicated without any obvious
gain. sizeof(struct uio_info) would return wrong values, you need to
free the extra memory, userspace applications need to be able to deal
with 10000 mappings...

If there's an actual usecase where 5 mappings are not enough, we can
talk about increasing MAX_UIO_MAPS to some other value.


As I said above, feel free to use it.


As I said, it looks OK here. You can keep it if you like it.

I'd like to thank you for your work. After giving it some thought, I
really like the idea of having a generic UIO driver for platform
devices. I think many people (including /me) will use it. So, please send
an updated patch, I think we should push it to mainline.

Thanks,
Hans
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] UIO: fixes, cleanups and a new driver, Uwe Kleine-König, (Thu Apr 10, 5:36 am)
[PATCH 1/4] UIO: hold a reference to the device's owner wh ..., Uwe Kleine-König, (Thu Apr 10, 5:37 am)
[PATCH 2/4] UIO: use menuconfig, Uwe Kleine-König, (Thu Apr 10, 5:37 am)
[PATCH 4/4] [RFC] UIO: generic platform driver, Uwe Kleine-König, (Thu Apr 10, 5:37 am)
Re: [PATCH 2/4] UIO: use menuconfig, Hans J. Koch, (Thu Apr 10, 12:39 pm)
Re: [PATCH 4/4] [RFC] UIO: generic platform driver, Hans J. Koch, (Thu Apr 10, 12:54 pm)
Re: [PATCH 4/4] [RFC] UIO: generic platform driver, Hans J. Koch, (Thu Apr 10, 2:17 pm)
Re: [PATCH 4/4] [RFC] UIO: generic platform driver, Hans J. Koch, (Thu Apr 10, 3:48 pm)
Re: [PATCH 4/4] [RFC] UIO: generic platform driver, Ben Nizette, (Thu Apr 10, 6:34 pm)
Re: [PATCH 4/4] [RFC] UIO: generic platform driver, Hans J. Koch, (Fri Apr 11, 2:24 am)
Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver, Hans J. Koch, (Fri Apr 11, 3:33 am)
Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver, Hans J. Koch, (Fri Apr 11, 4:17 am)
Re: [PATCH 4/4] [RFC] UIO: generic platform driver, Hans J. Koch, (Fri Apr 11, 12:59 pm)
Re: [PATCH 2/4] UIO: use menuconfig, Greg KH, (Fri Apr 11, 2:36 pm)
Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver, Hans J. Koch, (Fri Apr 11, 3:54 pm)
Re: [PATCH 2/4] UIO: use menuconfig, Hans J. Koch, (Fri Apr 11, 3:58 pm)
Re: [PATCH 4/4 v2] [RFC] UIO: generic platform driver, Russell King - ARM Linux, (Sat Apr 12, 6:16 am)
Re: [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform ..., Russell King - ARM Linux, (Mon Apr 14, 2:37 am)
Re: [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform ..., Russell King - ARM Linux, (Mon Apr 14, 3:17 am)
Re: [PATCH] Re: [PATCH 4/4 v2] [RFC] UIO: generic platform ..., Russell King - ARM Linux, (Mon Apr 14, 4:37 am)
[PATCH 1/3] UIO: don't let UIO_CIF and UIO_SMX depend twic ..., Uwe Kleine-König, (Tue Apr 22, 2:52 am)
[PATCH 2/3] provide a dummy implementation of the clk API, Uwe Kleine-König, (Tue Apr 22, 2:52 am)
[PATCH 3/3] UIO: generic platform driver, Uwe Kleine-König, (Tue Apr 22, 2:52 am)
Re: [PATCH 3/3] UIO: generic platform driver, Ben Nizette, (Tue Apr 22, 3:26 am)
Re: [PATCH 3/3] UIO: generic platform driver, Hans J. Koch, (Tue Apr 22, 6:35 am)
Re: [PATCH 0/3] UIO: cleanup and platform driver, Hans J. Koch, (Tue Apr 22, 6:39 am)
Re: [PATCH 3/3] UIO: generic platform driver, Hans J. Koch, (Sun Apr 27, 10:12 am)
[PATCH] UIO: don't let UIO_CIF and UIO_SMX depend twice on UIO, Uwe Kleine-König, (Tue May 20, 2:24 am)
[PATCH] UIO: generic platform driver, Uwe Kleine-König, (Tue May 20, 2:24 am)
Re: [PATCH] UIO: generic platform driver, Hans J. Koch, (Tue May 20, 2:08 pm)
Re: [PATCH] UIO: generic platform driver, Uwe , (Sun May 25, 10:58 pm)
Re: [PATCH] UIO: generic platform driver, Greg KH, (Sun May 25, 11:02 pm)
Re: [PATCH] UIO: generic platform driver, Uwe , (Fri May 30, 2:16 am)
Re: [PATCH] UIO: generic platform driver, Greg KH, (Fri May 30, 9:35 am)
Re: [PATCH] UIO: generic platform driver, Uwe , (Tue Jun 3, 12:21 am)
Re: [PATCH] UIO: generic platform driver, Hans J. Koch, (Tue Jun 3, 2:24 am)