Re: [PATCH] drm/kms/crtc: Improving the func drm_mode_setcrtc

2018-08-24 Thread Daniel Stone
Hi Satendra, On Fri, 27 Jul 2018 at 11:13, Satendra Singh Thakur wrote: > Following changes are done to this func: I would certainly agree with Sean, Martin, and Jani's comments. This patch was difficult to follow as it made so many changes at once. Being a crucial function which has many

Re: [PATCH] drm/kms/crtc: Improving the func drm_mode_setcrtc

2018-08-24 Thread Jani Nikula
On Fri, 27 Jul 2018, Satendra Singh Thakur wrote: > Following changes are done to this func: Just a drive-by observation, if your commit message lists a number of changes, with "also", it's usually an indication they should be separate patches. BR, Jani. > 1. Currently there are many

[PATCH] drm/kms/crtc: Improving the func drm_mode_setcrtc

2018-07-27 Thread Satendra Singh Thakur
Following changes are done to this func: 1. Currently there are many redundant error checks for count_connectors, mode, fb and mode_valid. if (crtc_req->mode_valid) if (crtc_req->count_connectors == 0 && mode) if (crtc_req->count_connectors > 0 && (!mode || !fb)) if (crtc_req->count_connectors >

Re: [PATCH] drm/kms/crtc: Improving the func drm_mode_setcrtc

2018-07-27 Thread Maarten Lankhorst
Hey, Op 27-07-18 om 12:12 schreef Satendra Singh Thakur: > Following changes are done to this func: > 1. Currently there are many redundant error checks for > count_connectors, mode, fb and mode_valid. > if (crtc_req->mode_valid) > if (crtc_req->count_connectors == 0 && mode) > if