diff options
author | Rob Clark <robdclark@gmail.com> | 2017-07-06 16:33:44 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-08-22 13:20:37 -0400 |
commit | ba4dd71828bce7dfa46a5e6e33e2605f65d16534 (patch) | |
tree | fd9d9d0bd971cd73b6eeff1e86d67de2028ed517 | |
parent | a7d3bb0045365ff84be35e3a4715af5d0216b7bd (diff) |
drm/msm: add modeset module param
At least for debugging it is nice to have an easy way to force the
driver not to load.
Signed-off-by: Rob Clark <robdclark@gmail.com>
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index a19c393f7e45..dda55b6103e2 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -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: */ @@ -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(); |