Re: [PATCH v5 04/12] drm: bridge: analogix: Destroy connector & encoder when unbinding

2017-04-07 Thread Andrzej Hajda
On 06.04.2017 14:31, Jeffy Chen wrote: > Normally we do this in drm_mode_config_cleanup. But: > 1/ analogix dp's connector is allocated in bind, and freed after unbind. > So we need to destroy it in unbind to avoid further access. > 2/ the drm bridge is attached in bind, and detached in encoder

Re: [PATCH v5 04/12] drm: bridge: analogix: Destroy connector & encoder when unbinding

2017-04-07 Thread Andrzej Hajda
On 06.04.2017 14:31, Jeffy Chen wrote: > Normally we do this in drm_mode_config_cleanup. But: > 1/ analogix dp's connector is allocated in bind, and freed after unbind. > So we need to destroy it in unbind to avoid further access. > 2/ the drm bridge is attached in bind, and detached in encoder

[PATCH v5 04/12] drm: bridge: analogix: Destroy connector & encoder when unbinding

2017-04-06 Thread Jeffy Chen
Normally we do this in drm_mode_config_cleanup. But: 1/ analogix dp's connector is allocated in bind, and freed after unbind. So we need to destroy it in unbind to avoid further access. 2/ the drm bridge is attached in bind, and detached in encoder cleanup. So we need to destroy encoder in unbind.

[PATCH v5 04/12] drm: bridge: analogix: Destroy connector & encoder when unbinding

2017-04-06 Thread Jeffy Chen
Normally we do this in drm_mode_config_cleanup. But: 1/ analogix dp's connector is allocated in bind, and freed after unbind. So we need to destroy it in unbind to avoid further access. 2/ the drm bridge is attached in bind, and detached in encoder cleanup. So we need to destroy encoder in unbind.