Re: [PATCH] media: v4l2-core: expose the device after it was registered.

2019-01-23 Thread Sakari Ailus
On Thu, Jan 24, 2019 at 03:11:53PM +0800, xinwu wrote: > Hi Sakari, > > Thanks for your response. > > > On 2019年01月22日 18:03, Sakari Ailus wrote: > > Hi Xinwu, > > > > On Tue, Jan 22, 2019 at 04:34:44PM +0800, Liu, Xinwu wrote: > > > device_register exposes the device to userspace. > > > > > >

Re: [PATCH] media: v4l2-core: expose the device after it was registered.

2019-01-23 Thread xinwu
Hi Sakari, Thanks for your response. On 2019年01月22日 18:03, Sakari Ailus wrote: Hi Xinwu, On Tue, Jan 22, 2019 at 04:34:44PM +0800, Liu, Xinwu wrote: device_register exposes the device to userspace. Therefore, while the register process is ongoing, the userspace program will fail to open the

Re: [PATCH] media: v4l2-core: expose the device after it was registered.

2019-01-22 Thread Sakari Ailus
Hi Xinwu, On Tue, Jan 22, 2019 at 04:34:44PM +0800, Liu, Xinwu wrote: > device_register exposes the device to userspace. > > Therefore, while the register process is ongoing, the userspace program > will fail to open the device (ENODEV will be set to errno currently). > The program in userspace m

[PATCH] media: v4l2-core: expose the device after it was registered.

2019-01-22 Thread Liu, Xinwu
device_register exposes the device to userspace. Therefore, while the register process is ongoing, the userspace program will fail to open the device (ENODEV will be set to errno currently). The program in userspace must re-open the device to cover this case. It is more reasonable to expose the d