diff options
| author | Sean Paul <seanpaul@chromium.org> | 2016-08-12 13:00:54 -0400 |
|---|---|---|
| committer | Sean Paul <seanpaul@chromium.org> | 2016-08-18 12:37:10 -0400 |
| commit | ee4d7899f62724d4bda28aa05bf795ef93aacd47 (patch) | |
| tree | ec245c60dc9a170a838fbc7226c4976c4dbbec28 /drivers/gpu/drm/rockchip | |
| parent | c4e68a5832021cf8c2f9a2f3419452470ca60bd8 (diff) | |
drm/rockchip: Use DRM_DEV_ERROR in vop
Since we can have multiple vops, use DRM_DEV_ERROR to
make logs easier to process.
Acked-by: Mark Yao <mark.yao@rockchip.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1471021254-2563-3-git-send-email-seanpaul@chromium.org
Diffstat (limited to 'drivers/gpu/drm/rockchip')
| -rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 31744fe99b38..ec8ad005835c 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c | |||
| @@ -238,7 +238,7 @@ static enum vop_data_format vop_convert_format(uint32_t format) | |||
| 238 | case DRM_FORMAT_NV24: | 238 | case DRM_FORMAT_NV24: |
| 239 | return VOP_FMT_YUV444SP; | 239 | return VOP_FMT_YUV444SP; |
| 240 | default: | 240 | default: |
| 241 | DRM_ERROR("unsupport format[%08x]\n", format); | 241 | DRM_ERROR("unsupported format[%08x]\n", format); |
| 242 | return -EINVAL; | 242 | return -EINVAL; |
| 243 | } | 243 | } |
| 244 | } | 244 | } |
| @@ -315,7 +315,7 @@ static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win, | |||
| 315 | int vskiplines = 0; | 315 | int vskiplines = 0; |
| 316 | 316 | ||
| 317 | if (dst_w > 3840) { | 317 | if (dst_w > 3840) { |
| 318 | DRM_ERROR("Maximum destination width (3840) exceeded\n"); | 318 | DRM_DEV_ERROR(vop->dev, "Maximum dst width (3840) exceeded\n"); |
| 319 | return; | 319 | return; |
| 320 | } | 320 | } |
| 321 | 321 | ||
| @@ -353,11 +353,11 @@ static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win, | |||
| 353 | VOP_SCL_SET_EXT(vop, win, lb_mode, lb_mode); | 353 | VOP_SCL_SET_EXT(vop, win, lb_mode, lb_mode); |
| 354 | if (lb_mode == LB_RGB_3840X2) { | 354 | if (lb_mode == LB_RGB_3840X2) { |
| 355 | if (yrgb_ver_scl_mode != SCALE_NONE) { | 355 | if (yrgb_ver_scl_mode != SCALE_NONE) { |
| 356 | DRM_ERROR("ERROR : not allow yrgb ver scale\n"); | 356 | DRM_DEV_ERROR(vop->dev, "not allow yrgb ver scale\n"); |
| 357 | return; | 357 | return; |
| 358 | } | 358 | } |
| 359 | if (cbcr_ver_scl_mode != SCALE_NONE) { | 359 | if (cbcr_ver_scl_mode != SCALE_NONE) { |
| 360 | DRM_ERROR("ERROR : not allow cbcr ver scale\n"); | 360 | DRM_DEV_ERROR(vop->dev, "not allow cbcr ver scale\n"); |
| 361 | return; | 361 | return; |
| 362 | } | 362 | } |
| 363 | vsu_mode = SCALE_UP_BIL; | 363 | vsu_mode = SCALE_UP_BIL; |
| @@ -970,7 +970,8 @@ static void vop_crtc_enable(struct drm_crtc *crtc) | |||
| 970 | VOP_CTRL_SET(vop, mipi_en, 1); | 970 | VOP_CTRL_SET(vop, mipi_en, 1); |
| 971 | break; | 971 | break; |
| 972 | default: | 972 | default: |
| 973 | DRM_ERROR("unsupport connector_type[%d]\n", s->output_type); | 973 | DRM_DEV_ERROR(vop->dev, "unsupported connector_type [%d]\n", |
| 974 | s->output_type); | ||
| 974 | } | 975 | } |
| 975 | VOP_CTRL_SET(vop, out_mode, s->output_mode); | 976 | VOP_CTRL_SET(vop, out_mode, s->output_mode); |
| 976 | 977 | ||
| @@ -1154,7 +1155,8 @@ static irqreturn_t vop_isr(int irq, void *data) | |||
| 1154 | 1155 | ||
| 1155 | /* Unhandled irqs are spurious. */ | 1156 | /* Unhandled irqs are spurious. */ |
| 1156 | if (active_irqs) | 1157 | if (active_irqs) |
| 1157 | DRM_ERROR("Unknown VOP IRQs: %#02x\n", active_irqs); | 1158 | DRM_DEV_ERROR(vop->dev, "Unknown VOP IRQs: %#02x\n", |
| 1159 | active_irqs); | ||
| 1158 | 1160 | ||
| 1159 | return ret; | 1161 | return ret; |
| 1160 | } | 1162 | } |
| @@ -1189,7 +1191,8 @@ static int vop_create_crtc(struct vop *vop) | |||
| 1189 | win_data->phy->nformats, | 1191 | win_data->phy->nformats, |
| 1190 | win_data->type, NULL); | 1192 | win_data->type, NULL); |
| 1191 | if (ret) { | 1193 | if (ret) { |
| 1192 | DRM_ERROR("failed to initialize plane\n"); | 1194 | DRM_DEV_ERROR(vop->dev, "failed to init plane %d\n", |
| 1195 | ret); | ||
| 1193 | goto err_cleanup_planes; | 1196 | goto err_cleanup_planes; |
| 1194 | } | 1197 | } |
| 1195 | 1198 | ||
| @@ -1227,7 +1230,8 @@ static int vop_create_crtc(struct vop *vop) | |||
| 1227 | win_data->phy->nformats, | 1230 | win_data->phy->nformats, |
| 1228 | win_data->type, NULL); | 1231 | win_data->type, NULL); |
| 1229 | if (ret) { | 1232 | if (ret) { |
| 1230 | DRM_ERROR("failed to initialize overlay plane\n"); | 1233 | DRM_DEV_ERROR(vop->dev, "failed to init overlay %d\n", |
| 1234 | ret); | ||
| 1231 | goto err_cleanup_crtc; | 1235 | goto err_cleanup_crtc; |
| 1232 | } | 1236 | } |
| 1233 | drm_plane_helper_add(&vop_win->base, &plane_helper_funcs); | 1237 | drm_plane_helper_add(&vop_win->base, &plane_helper_funcs); |
| @@ -1235,8 +1239,8 @@ static int vop_create_crtc(struct vop *vop) | |||
| 1235 | 1239 | ||
| 1236 | port = of_get_child_by_name(dev->of_node, "port"); | 1240 | port = of_get_child_by_name(dev->of_node, "port"); |
| 1237 | if (!port) { | 1241 | if (!port) { |
| 1238 | DRM_ERROR("no port node found in %s\n", | 1242 | DRM_DEV_ERROR(vop->dev, "no port node found in %s\n", |
| 1239 | dev->of_node->full_name); | 1243 | dev->of_node->full_name); |
| 1240 | ret = -ENOENT; | 1244 | ret = -ENOENT; |
| 1241 | goto err_cleanup_crtc; | 1245 | goto err_cleanup_crtc; |
| 1242 | } | 1246 | } |
