2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00
linux-next/drivers/gpu/drm/udl
Daniel Vetter b1a981bd55 drm/udl: drop drm_driver.release hook
There's only two functions called from that:
drm_kms_helper_poll_fini() and udl_free_urb_list(). Both of these are
also called from the ubs_driver->disconnect hook, so entirely
pointless to do the same again in the ->release hook.

Furthermore by the time we clean up the drm_driver we really shouldn't
be touching hardware anymore, so stopping the poll worker and freeing
the urb allocations in ->disconnect is the right thing to do.

Now disconnect still cleans things up before unregistering the driver,
but that's a different issue.

v2: Use _fini, not _disable in unplug, motivated by discussions with
Thomas. _disable/_enable are for suspend/resume.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Sean Paul <sean@poorly.run>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: "Noralf Trønnes" <noralf@tronnes.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200323144950.3018436-51-daniel.vetter@ffwll.ch
2020-03-26 16:09:40 +01:00
..
Kconfig drm/udl: Make udl driver depend on CONFIG_USB 2020-01-09 15:02:48 +01:00
Makefile drm/udl: Remove udl_fb.c 2019-12-11 17:02:17 +01:00
udl_connector.c drm/udl: Clear struct drm_connector_funcs.dpms 2020-02-10 09:24:09 +01:00
udl_connector.h drm/udl: drop use of drmP.h 2019-07-17 12:52:55 +02:00
udl_drv.c drm/udl: drop drm_driver.release hook 2020-03-26 16:09:40 +01:00
udl_drv.h drm/udl: drop drm_driver.release hook 2020-03-26 16:09:40 +01:00
udl_gem.c drm/udl: Remove udl implementation of GEM's free_object() 2019-11-26 12:34:39 +01:00
udl_main.c drm/udl: drop drm_driver.release hook 2020-03-26 16:09:40 +01:00
udl_modeset.c drm/udl: Drop explicit drm_mode_config_cleanup call 2020-03-26 16:09:25 +01:00
udl_transfer.c drm/udl: Remove field lost_pixels from struct udl_device 2019-12-06 13:52:33 +01:00