Re: [PATCH 1/2] misc: add CARMA DATA-FPGA Access Driver

From: Dave Jones
Date: Tue Feb 08 2011 - 12:29:26 EST


On Tue, Feb 08, 2011 at 09:20:46AM -0800, Ira W. Snyder wrote:

> > > +static DEVICE_ATTR(enable, S_IWUGO | S_IRUGO, data_en_show, data_en_set);
> >
> > Are all of these really needed or most of them are for debug?
> >
>
> Most are for debugging. They have proved useful a few times in
> production to track down bugs.

File mode should probably not be world writable.
(checkpatch.pl should warn you about this now btw)

Dave

--
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/