[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM6PR04MB6407537BDB702B3D8C2BC73A8FFA9@AM6PR04MB6407.eurprd04.prod.outlook.com>
Date: Wed, 27 Apr 2022 06:24:14 +0000
From: Manjunatha Venkatesh <manjunatha.venkatesh@....com>
To: Greg KH <gregkh@...uxfoundation.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"will@...nel.org" <will@...nel.org>,
"axboe@...nel.dk" <axboe@...nel.dk>,
"mb@...htnvm.io" <mb@...htnvm.io>,
"ckeepax@...nsource.cirrus.com" <ckeepax@...nsource.cirrus.com>,
"arnd@...db.d" <arnd@...db.d>, "mst@...hat.com" <mst@...hat.com>,
"javier@...igon.com" <javier@...igon.com>,
"mikelley@...rosoft.com" <mikelley@...rosoft.com>,
"jasowang@...hat.com" <jasowang@...hat.com>,
"sunilmut@...rosoft.com" <sunilmut@...rosoft.com>,
"bjorn.andersson@...aro.org" <bjorn.andersson@...aro.org>,
"rvmanjumce@...il.com" <rvmanjumce@...il.com>,
Ashish Deshpande <ashish.deshpande@....com>
Subject: RE: [EXT] Re: [PATCH] Uwb: Nxp: sr1xx: Uwb driver support for sr1xx
series chip
Hello Greg,
Thanks for sharing your comments with us and apologies for our delayed
response.
We have done a thorough review internally and would like to put forward a
proposal for your consideration.
1) In our next submission we will define the kernel/user API clearly with
kernel pre-defined IOCTL macros in the uapi header file and follow the
standard IOCTL rules.
2) We agree that this is a simple driver which may not need a dedicated
directory under Linux/drivers so we will move the driver to "misc" folder.
3) We can also share some applications which show the usage of these driver
API's from the user space.
We would like to get your preview on this thought process to progress with
our next driver submission.
Regards,
Manju
> -----Original Message-----
> From: Greg KH <gregkh@...uxfoundation.org>
> Sent: Tuesday, March 15, 2022 6:02 PM
> To: Manjunatha Venkatesh <manjunatha.venkatesh@....com>
> Cc: linux-kernel@...r.kernel.org; will@...nel.org; axboe@...nel.dk;
> mb@...htnvm.io; ckeepax@...nsource.cirrus.com; arnd@...db.d;
> mst@...hat.com; javier@...igon.com; mikelley@...rosoft.com;
> jasowang@...hat.com; sunilmut@...rosoft.com;
> bjorn.andersson@...aro.org; rvmanjumce@...il.com
> Subject: Re: [EXT] Re: [PATCH] Uwb: Nxp: sr1xx: Uwb driver support for
sr1xx
> series chip
>
> Caution: EXT Email
>
> On Tue, Mar 15, 2022 at 10:43:47AM +0000, Manjunatha Venkatesh wrote:
> > >> + sr1xx_dev = filp->private_data;
> > >> + switch (cmd) {
> > >> + case SR1XX_SET_PWR:
> > > You have custom ioctls on a device node, that's not very "subsystem"
> > > like at all.
> > >
> > > You need to define a standard user/kernel api for this subsystem, do
> > > not make it "whatever the device wants" like this currently is.
> > >
> > > And where is the userspace code that talks this brand new api? We
> > > need to see that so we can properly determine if this is all working
> > > properly.
> > Currently these ioctl calls used for handling proprietary operation
> > with respect to SR1xx chip.
> > corresponding user space UWB code is proprietary and might be shortly
> > will be available as part of AOSP release, till that time not sure can
> > share user space code outside or not.
> > Still if you think need the user space code required to evaluate
> > driver part will check internally and come back on this.
>
> For obvious reasons, we can not take kernel drivers that add a custom
> user/kernel api without any userspace code that we can see to use it.
> You wouldn't want us to take such code anyway.
>
> So please, fix that, otherwise this is not going to go very far at all.
>
> thanks,
>
> greg k-h
Download attachment "smime.p7s" of type "application/pkcs7-signature" (9591 bytes)
Powered by blists - more mailing lists