Re: [PATCH v5 16/16] rpmsg: char: return an error if device already open

2021-03-04 Thread Mathieu Poirier
On Fri, Feb 19, 2021 at 12:15:01PM +0100, Arnaud Pouliquen wrote: > The rpmsg_create_ept function is invoked when the device is opened. > As only one endpoint must be created per device. It is not possible to > open the same device twice. But there is nothing to prevent multi open. s/multi/multipl

[PATCH v5 16/16] rpmsg: char: return an error if device already open

2021-02-19 Thread Arnaud Pouliquen
The rpmsg_create_ept function is invoked when the device is opened. As only one endpoint must be created per device. It is not possible to open the same device twice. But there is nothing to prevent multi open. Return -EBUSY when device is already opened to have a generic error instead of relying o