Re: [PATCH] drm/rockchip: Skip suspend/resume if no display is attached

2017-08-09 Thread Brian Norris
On Wed, Aug 09, 2017 at 04:07:24PM -0700, Matthias Kaehlcke wrote: > rockchip_drm_sys_suspend/resume() obains a struct drm_device pointer > from drvdata, the pointer is then dereferenced to obtain private data. > drvdata is set when a display is bound, on systems without a > (successfully probed)

[PATCH] drm/rockchip: Skip suspend/resume if no display is attached

2017-08-09 Thread Matthias Kaehlcke
rockchip_drm_sys_suspend/resume() obains a struct drm_device pointer from drvdata, the pointer is then dereferenced to obtain private data. drvdata is set when a display is bound, on systems without a (successfully probed) display drvdata is NULL and the PM functions try to dereference a NULL