Re: Re-send (What else needs to be done to the sep driver(staging/sep))

From: Greg KH
Date: Mon Apr 25 2011 - 20:45:33 EST


On Wed, Apr 13, 2011 at 02:29:35PM -0700, Mark A. Allyn wrote:
> Sorry, I had an incorrect return address config in alpine. . .
>
> What else needs to be done to the sep driver in order for it to be
> moved to the kernel from staging?

Some things at first glance:
- you have a lot of ioctls, do you really need them all?
- your ioctls use structures with very "generic" names, please
prefix them with "sep_" as you are joining the global
namespace here.
- sep_driver_api.h seems to have a lot of information in it that
doesn't need to be there (i.e. move it to a private .h file.)
- is there documentation for how to use this device through the
ioctls anywhere?
- are you sure your ioctl magic number isn't already reserved by
some other driver?
- the structures you use for the ioctls, shouldn't they use the
correct "__" prefixes on their type? How about 64/32 bit
thunking layer, isn't that needed?
- you have a number of basic checkpatch formatting issues to fix
up, please do so.
- do you really even need all of the .h files you have? Can't
they just go into the .c file?
- sep_wait_sram_write() has no way to abort, if the hardware
hangs, you just locked up your kernel :(

that's good for a first round of review, right?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/