[PATCH v2] drm/hisilicon: Add the mode_valid function