Re: [PATCH v3 7/7] drm/tinydrm: Use drm_dev_enter/exit()

2019-02-27 Thread Gerd Hoffmann
On Mon, Feb 25, 2019 at 03:42:32PM +0100, Noralf Trønnes wrote: > This protects device resources from use after device removal. > > There are 3 ways for driver-device unbinding to happen: > - The driver module is unloaded causing the driver to be unregistered. > This can't happen as long as

[PATCH v3 7/7] drm/tinydrm: Use drm_dev_enter/exit()

2019-02-25 Thread Noralf Trønnes
This protects device resources from use after device removal. There are 3 ways for driver-device unbinding to happen: - The driver module is unloaded causing the driver to be unregistered. This can't happen as long as there are open file handles because a reference is taken on the module. -