[PATCH] drm/hisilicon: add the mode_valid function