linux/drivers/gpu/drm/rcar-du
Mahesh Kumar c0811a7d5b drm/crc: Cleanup crtc_crc_open function
This patch make changes to allocate crc-entries buffer before
enabling CRC generation.
It moves all the failure check early in the function before setting
the source or memory allocation.
Now set_crc_source takes only two variable inputs, values_cnt we
already gets as part of verify_crc_source.

Changes since V1:
 - refactor code to use single spin lock
Changes since V2:
 - rebase
Changes since V3:
 - rebase on top of VKMS driver

Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Leo Li <sunpeng.li@amd.com> (V2)
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> (V3)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180821083858.26275-3-mahesh1.kumar@intel.com
2018-08-22 09:47:58 -07:00
..
Kconfig drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
Makefile drm: rcar-du: disable dtc graph-endpoint warnings on DT overlays 2018-05-15 08:23:46 -05:00
rcar_du_crtc.c drm/crc: Cleanup crtc_crc_open function 2018-08-22 09:47:58 -07:00
rcar_du_crtc.h drm/rcar-du/crc: Implement get_crc_sources callback 2018-08-13 14:03:38 +02:00
rcar_du_drv.c drm: rcar-du: Add R8A77965 support 2018-05-05 17:11:20 +03:00
rcar_du_drv.h Merge branch 'drm/du/next' of git://linuxtv.org/pinchartl/media into drm-next 2018-05-15 15:23:48 +10:00
rcar_du_encoder.c drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_encoder.h drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_group.c drm: rcar-du: Allow DU groups to work with hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_group.h drm: rcar-du: Allow DU groups to work with hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_kms.c Merge branch 'drm/du/next' of git://linuxtv.org/pinchartl/media into drm-next 2018-05-15 15:23:48 +10:00
rcar_du_kms.h drm/rcar-du: Update copyright notice 2014-09-15 11:34:06 +03:00
rcar_du_of_lvds_r8a7790.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7791.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7793.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7795.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7796.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of.c drm: rcar-du: of: Include header to define prototypes 2018-05-05 17:11:15 +03:00
rcar_du_of.h drm: rcar-du: Fix rcar_du_of_init() stub 2018-05-17 15:03:32 +10:00
rcar_du_plane.c drm: rcar-du: Use __drm_atomic_helper_plane_reset instead of copying the logic 2018-08-06 13:11:52 +01:00
rcar_du_plane.h drm/rcar-du: Convert to the new generic alpha property 2018-04-16 21:20:59 +02:00
rcar_du_regs.h drm: rcar-du: Use the correct naming for ODPM fields in DEFR6 2018-05-05 17:11:18 +03:00
rcar_du_vsp.c drm: rcar-du: Use __drm_atomic_helper_plane_reset instead of copying the logic 2018-08-06 13:11:52 +01:00
rcar_du_vsp.h drm/rcar-du: Convert to the new generic alpha property 2018-04-16 21:20:59 +02:00
rcar_dw_hdmi.c drm/rcar-du: dw-hdmi: Fix compilation 2018-02-16 19:04:54 +01:00
rcar_lvds_regs.h drm: rcar-du: lvds: Fix LVDCR1 for R-Car gen3 2018-02-14 18:17:02 +02:00
rcar_lvds.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00