alistair23-linux/drivers/gpu/drm/i915
Daniel Vetter b0e898ac55 drm: remove FASYNC support
So I've stumbled over drm_fasync and wondered what it does. Digging
that up is quite a story.

First I've had to read up on what this does and ended up being rather
bewildered why peopled loved signals so much back in the days that
they've created SIGIO just for that ...

Then I wondered how this ever works, and what that strange "No-op."
comment right above it should mean. After all calling the core fasync
helper is pretty obviously not a noop. After reading through the
kernels FASYNC implementation I've noticed that signals are only sent
out to the processes attached with FASYNC by calling kill_fasync.

No merged drm driver has ever done that.

After more digging I've found out that the only driver that ever used
this is the so called GAMMA driver. I've frankly never heard of such a
gpu brand ever before. Now FASYNC seems to not have been the only bad
thing with that driver, since Dave Airlie removed it from the drm
driver with prejudice:

commit 1430163b4bbf7b00367ea1066c1c5fe85dbeefed
Author: Dave Airlie <airlied@linux.ie>
Date:   Sun Aug 29 12:04:35 2004 +0000

    Drop GAMMA DRM from a great height ...

Long story short, the drm fasync support seems to be doing absolutely
nothing. And the only user of it was never merged into the upstream
kernel. And we don't need any fops->fasync callback since the fcntl
implementation in the kernel already implements the noop case
correctly.

So stop this particular cargo-cult and rip it all out.

v2: Kill drm_fasync assignments in rcar (newly added) and imx drivers
(somehow I've missed that one in staging). Also drop the reference in
the drm DocBook. ARM compile-fail reported by Rob Clark.

v3: Move the removal of dev->buf_asnyc assignment in drm_setup to this
patch here.

v4: Actually git add ... tsk.

Cc: Dave Airlie <airlied@linux.ie>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Rob Clark <robdclark@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-08-19 10:05:17 +10:00
..
dvo.h
dvo_ch7xxx.c drm/i915: dvo_ch7xxx: fix vsync polarity setting 2013-07-25 16:10:22 +02:00
dvo_ch7017.c
dvo_ivch.c
dvo_ns2501.c
dvo_sil164.c
dvo_tfp410.c
i915_debugfs.c drm/i915: Convert the register access tracepoint to be conditional 2013-07-25 15:22:07 +02:00
i915_dma.c Merge remote-tracking branch 'pfdo/drm-rcar-for-v3.12' into drm-next 2013-08-19 09:24:13 +10:00
i915_drv.c drm: remove FASYNC support 2013-08-19 10:05:17 +10:00
i915_drv.h Merge tag 'drm-intel-next-2013-07-26-fixed' of git://people.freedesktop.org/~danvet/drm-intel into drm-next 2013-08-07 18:11:35 +10:00
i915_gem.c Merge tag 'drm-intel-next-2013-07-26-fixed' of git://people.freedesktop.org/~danvet/drm-intel into drm-next 2013-08-07 18:11:35 +10:00
i915_gem_context.c drm/i915: Fix retrieval of hangcheck stats 2013-07-16 10:40:25 +02:00
i915_gem_debug.c drm/i915: Move active/inactive lists to new mm 2013-07-17 22:24:32 +02:00
i915_gem_dmabuf.c drm/gem: simplify object initialization 2013-07-23 19:37:53 +10:00
i915_gem_evict.c drm/i915: Create VMAs 2013-07-18 08:46:13 +02:00
i915_gem_execbuffer.c drm/i915: Replace open-coded offset_in_page() 2013-07-26 19:45:11 +02:00
i915_gem_gtt.c drm/i915: Create VMAs 2013-07-18 08:46:13 +02:00
i915_gem_stolen.c Merge tag 'drm-intel-next-2013-07-26-fixed' of git://people.freedesktop.org/~danvet/drm-intel into drm-next 2013-08-07 18:11:35 +10:00
i915_gem_tiling.c drm/i915: Getter/setter for object attributes 2013-07-08 22:04:34 +02:00
i915_gpu_error.c drm/i915: Move active/inactive lists to new mm 2013-07-17 22:24:32 +02:00
i915_ioc32.c
i915_irq.c drm/i915: Add messages useful for HPD storm detection debugging (v2) 2013-07-26 19:43:48 +02:00
i915_reg.h drm/i915: fix pnv display core clock readout out 2013-07-26 19:54:46 +02:00
i915_suspend.c Linux 3.10 2013-07-18 12:03:29 +02:00
i915_sysfs.c drm/i915: add error_state sysfs entry 2013-07-01 19:39:31 +02:00
i915_trace.h drm/i915: Convert the register access tracepoint to be conditional 2013-07-25 15:22:07 +02:00
i915_trace_points.c
i915_ums.c drm/i915: scrap register address storage 2013-06-10 19:54:14 +02:00
intel_acpi.c
intel_bios.c drm/i915: Organize VBT stuff inside drm_i915_private 2013-05-10 21:56:46 +02:00
intel_bios.h drm/i915: set CPT FDI RX polarity bits based on VBT 2013-04-18 09:43:31 +02:00
intel_crt.c drm/i915: Add some debug breadcrumbs to connector detection 2013-07-24 10:37:07 +02:00
intel_ddi.c Merge commit 'Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux' 2013-07-25 15:18:41 +02:00
intel_display.c drm/i915: fix pnv display core clock readout out 2013-07-26 19:54:46 +02:00
intel_dp.c drm/i915: Do not dereference NULL crtc or fb until after checking 2013-08-04 21:13:43 +02:00
intel_drv.h drm/i915: Colocate all GT access routines in the same file 2013-07-25 15:21:50 +02:00
intel_dvo.c drm/i915: Add some debug breadcrumbs to connector detection 2013-07-24 10:37:07 +02:00
intel_fb.c drm/i915: Getter/setter for object attributes 2013-07-08 22:04:34 +02:00
intel_hdmi.c Merge remote-tracking branch 'pfdo/drm-rcar-for-v3.12' into drm-next 2013-08-19 09:24:13 +10:00
intel_i2c.c drm/i915: avoid premature DP AUX timeouts 2013-05-22 13:51:26 +02:00
intel_lvds.c Merge commit 'Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux' 2013-07-25 15:18:41 +02:00
intel_modes.c drm/i915: Add "Automatic" mode for the "Broadcast RGB" property 2013-01-20 13:09:44 +01:00
intel_opregion.c drm/i915: tune down DIDL warning about too many outputs 2013-07-01 11:14:42 +02:00
intel_overlay.c drm/i915: disable stolen mem for OVERLAY_NEEDS_PHYSICAL 2013-07-24 10:37:11 +02:00
intel_panel.c drm/i915: quirk no PCH_PWM_ENABLE for Dell XPS13 backlight 2013-07-20 10:52:53 +02:00
intel_pm.c drm/i915: initialize gt_lock early with other spin locks 2013-07-25 15:39:15 +02:00
intel_ringbuffer.c Merge commit 'Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux' 2013-07-25 15:18:41 +02:00
intel_ringbuffer.h drm/i915: unify ring irq refcounts (again) 2013-07-11 14:36:49 +02:00
intel_sdvo.c drm/i915: Add some debug breadcrumbs to connector detection 2013-07-24 10:37:07 +02:00
intel_sdvo_regs.h
intel_sideband.c drm/i915: change VLV IOSF sideband accessors to not return error code 2013-05-23 23:25:42 +02:00
intel_sprite.c drm/i915: Getter/setter for object attributes 2013-07-08 22:04:34 +02:00
intel_tv.c drm/i915: Add some debug breadcrumbs to connector detection 2013-07-24 10:37:07 +02:00
intel_uncore.c drm/i915: Convert the register access tracepoint to be conditional 2013-07-25 15:22:07 +02:00
Makefile drm/i915: Colocate all GT access routines in the same file 2013-07-25 15:21:50 +02:00