Re: [Intel-gfx] [PATCH v2 3/9] drm/dp: Split drm_dp_mst_allocate_vcpi

2017-01-25 Thread Pandiyan, Dhinakaran
On Wed, 2017-01-25 at 10:31 +1000, Dave Airlie wrote: > On 25 January 2017 at 09:49, Dhinakaran Pandiyan > wrote: > > drm_dp_mst_allocate_vcpi() apart from setting up the vcpi structure, > > also finds if there are enough slots available. This check is a duplicate > > of that implemented in drm_dp

[PATCH v2 3/9] drm/dp: Split drm_dp_mst_allocate_vcpi

2017-01-24 Thread Dhinakaran Pandiyan
drm_dp_mst_allocate_vcpi() apart from setting up the vcpi structure, also finds if there are enough slots available. This check is a duplicate of that implemented in drm_dp_mst_find_vcpi_slots(). Let's move this check out and reuse the existing drm_dp_mst_find_vcpi_slots() function to check if ther

Re: [Intel-gfx] [PATCH v2 3/9] drm/dp: Split drm_dp_mst_allocate_vcpi

2017-01-24 Thread Dave Airlie
On 25 January 2017 at 09:49, Dhinakaran Pandiyan wrote: > drm_dp_mst_allocate_vcpi() apart from setting up the vcpi structure, > also finds if there are enough slots available. This check is a duplicate > of that implemented in drm_dp_mst_find_vcpi_slots(). Let's move this check > out and reuse th