[PATCH 09/10] drm/crc: Cleanup crtc_crc_open function

2018-06-27 Thread Mahesh Kumar
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. Si

Re: [PATCH 09/10] drm/crc: Cleanup crtc_crc_open function

2018-06-25 Thread Kumar, Mahesh
Cc: Laurent Pinchart On 6/26/2018 11:52 AM, Mahesh Kumar wrote: 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

[PATCH 09/10] drm/crc: Cleanup crtc_crc_open function

2018-06-25 Thread Mahesh Kumar
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 input, values_cnt we already gets as part of verify_crc_source. Sig