OSDN Git Service

drm: rcar-du: Make sure the VSP is initialized on platforms that need it
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Fri, 3 Mar 2017 12:58:56 +0000 (13:58 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 4 Apr 2017 14:03:50 +0000 (17:03 +0300)
commit3115345577d8e8c912562a1dd555787f11fcaf06
treef109857678bb9bf70ed3e509e0a5db9dc51229f2
parenta8fd12233e2348568893f1d0e251d8a4630a50af
drm: rcar-du: Make sure the VSP is initialized on platforms that need it

On Gen3 platforms planes are managed by the external VSP compositor on
behalf of DRM/KMS. If VSP compositor support is not enabled in the DU
driver, the VSP initialization stub routine is called. Return an error
from that stub to fail explicitly, otherwise the device won't be usable
and the driver will crash.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[Clarified commit message]
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_vsp.h