Re: [PATCH V5 2/2] scsi: ufs: Add configfs support for ufs provisioning
From: gregkh@xxxxxxxxxxxxxxxxxxx
Date: Wed Jul 18 2018 - 13:45:37 EST
On Wed, Jul 18, 2018 at 05:30:07PM +0000, Bart Van Assche wrote:
> On Wed, 2018-07-18 at 10:56 +0200, gregkh@xxxxxxxxxxxxxxxxxxx wrote:
> > On Tue, Jul 17, 2018 at 09:06:35PM +0000, Bart Van Assche wrote:
> > > On Tue, 2018-07-17 at 13:23 -0700, Evan Green wrote:
> > > > I'm not dead set on binary, since as above I could do it either way,
> > > > but it seemed worth at least talking through. Let me know what you
> > > > think.
> > >
> > > The configfs documentation (Documentation/filesystems/configfs/configfs.txt)
> > > is clear about this: "Preferably only one value per file should be used." So
> > > I would like to hear the opinion of someone who has more authority than I
> > > with regard to configfs.
> >
> > Don't we have "binary" files for configfs? We have them for sysfs, they
> > are for files that are not touched by the kernel and just "pass-through"
> > to the hardware. Would that work here as well?
>
> If a new version of the UFS spec would be introduced and that new version of the
> spec introduces a new layout for the binary descriptor, will it be possible for
> user space software to figure out which version of the binary descriptor format
> that has to be used?
If a new UFS spec was crazy enough to keep the same field name but
change the layout of the field, well, the UFS spec authors deserve all
of the pain and suffering that would cause to be heaped on them.
Seriously, it's not hard to do this right, go fix the spec before they
do something stupid.
And you are reporting the version of the UFS spec that your device
supports to userspace, right? So is this really a problem even if the
spec authors are that foolish?
thanks,
greg k-h