]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: fix: disconnect devices when omapdrm module is removed
authorArchit Taneja <archit@ti.com>
Thu, 2 Jan 2014 09:19:52 +0000 (14:49 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 9 Jan 2014 13:17:25 +0000 (15:17 +0200)
commita64da630c361358492672643c2d3b9c85fb1a679
tree80b9227aacc592b5f1c540488099c90056ffc48a
parentb94e2296da27fe9982e9f876386f42478def2736
drm/omap: fix: disconnect devices when omapdrm module is removed

At omapdrm probe, we install manager ops and connect omapdss devices. This
needs to be undone when omapdrm module is removed so that omapdss is in a
clean state. This ensures that we can re-insert omapdrm module, or some other
module which uses omapdss(like omapfb/omap_vout).

Currently, omapdrm's remove neither uninstalls manager ops, or disconnects
omapdss devices. We make sure that this is done in pdev_remove.

omapdrm establishes connections for omap_dss_device devices when probed. It
should also be responsible to disconnect the devices. Keeping the devices
connected can prevent the panel driver modules from unloading, it also causes
issues when we try to remove or re-insert omapdrm module.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_drv.c