[lkml]   [2019]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v23 12/24] x86/sgx: Linux Enclave Driver
On Sat, Dec 07, 2019 at 09:09:39AM +0100, Greg KH wrote:
> On Fri, Dec 06, 2019 at 10:38:07PM +0200, Jarkko Sakkinen wrote:
> > > Why a whole cdev?
> > >
> > > Why not use a misc device? YOu only have 2 devices right? Why not 2
> > > misc devices then? That saves the use of a whole major number and makes
> > > your code a _LOT_ simpler.
> >
> > The downside would be that if we ever want to add sysfs attributes, that
> > could not be done synchronously with the device creation.
> That is what the groups member of struct misc_device is for.

OK, cool, then there is no problem changing to misc.

I haven't seen misc drivers (not that I've looked through every single
of them so I suppose there are such) to use it and somehow have been
blind to seeing it that it si there.

Thanks again for the feedback. I'll fix this for the next patch set


 \ /
  Last update: 2019-12-09 20:58    [W:0.084 / U:2.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site