Skip to content

Commit

Permalink
drm/msm: add modeset module param
Browse files Browse the repository at this point in the history
At least for debugging it is nice to have an easy way to force the
driver not to load.

Signed-off-by: Rob Clark <[email protected]>
  • Loading branch information
robclark committed Aug 22, 2017
1 parent a7d3bb0 commit ba4dd71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/msm/msm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ bool dumpstate = false;
MODULE_PARM_DESC(dumpstate, "Dump KMS state on errors");
module_param(dumpstate, bool, 0600);

static bool modeset = true;
MODULE_PARM_DESC(modeset, "Use kernel modesetting [KMS] (1=on (default), 0=disable)");
module_param(modeset, bool, 0600);

/*
* Util/helpers:
*/
Expand Down Expand Up @@ -1133,6 +1137,9 @@ static struct platform_driver msm_platform_driver = {

static int __init msm_drm_register(void)
{
if (!modeset)
return -EINVAL;

DBG("init");
msm_mdp_register();
msm_dsi_register();
Expand Down

0 comments on commit ba4dd71

Please sign in to comment.