aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2021-08-25 18:47:52 +0300
committerJani Nikula <jani.nikula@intel.com>2021-08-27 11:43:57 +0300
commit9716846039eff1264de8868e9ed3f74a34b5b724 (patch)
treecf078048155346ea3922fb45e83b753be04f6d92 /drivers/gpu/drm
parentdrm/i915/fdi: move fdi mphy reset and programming to intel_fdi.c (diff)
downloadlinux-dev-9716846039eff1264de8868e9ed3f74a34b5b724.tar.xz
linux-dev-9716846039eff1264de8868e9ed3f74a34b5b724.zip
drm/i915/fdi: convert BUG()'s to MISSING_CASE()
These shouldn't happen, but in the off chance they do, we'll want a warning rather than panic. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/b86132ac63f43f79e51eb63f948beccba85bf449.1629906431.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/display/intel_fdi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fdi.c b/drivers/gpu/drm/i915/display/intel_fdi.c
index cc83a6532a71..fc09b781f15f 100644
--- a/drivers/gpu/drm/i915/display/intel_fdi.c
+++ b/drivers/gpu/drm/i915/display/intel_fdi.c
@@ -93,7 +93,8 @@ static int ilk_check_fdi_lanes(struct drm_device *dev, enum pipe pipe,
}
return 0;
default:
- BUG();
+ MISSING_CASE(pipe);
+ return 0;
}
}
@@ -217,7 +218,7 @@ static void ivb_update_fdi_bc_bifurcation(const struct intel_crtc_state *crtc_st
break;
default:
- BUG();
+ MISSING_CASE(crtc->pipe);
}
}