[Freedreno] [PATCH 1/1] drm/msm/dpu: remove struct encoder_kickoff_params

2018-12-21 Thread Bruce Wang
The contents of struct encoder_kickoff_params are never used. Remove the structure and all remnants of it from function calls. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 7 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 7

Re: [Freedreno] [PATCH] drm/msm: dpu: Allocate proper amount for dpu_crtc_state

2018-12-04 Thread Bruce Wang
fc > fc fc > [ 10.660571] ^ > [ 10.665774] ffc0d9f06300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc > fc fc > [ 10.673210] ffc0d9f06380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc > fc fc > [ 10.680639] >

Re: [Freedreno] [PATCH 09/11] drm/msm/dpu: Debugfs related cleanups

2018-10-22 Thread Bruce Wang
ded null checks. > > Signed-off-by: Jordan Crouse Reviewed-by: Bruce Wang > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c | 30 ++- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.h | 9 +--- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 17 --- > driv

Re: [Freedreno] [PATCH 01/11] drm/msm/dpu: Remove dpu_dbg

2018-10-19 Thread Bruce Wang
on't error check these */ > - debugfs_create_file("status", 0600, > - dpu_enc->debugfs_root, dpu_enc, &debugfs_status_fops); > + debugfs_create_file("status", 0600, dpu_enc->debugfs_r

Re: [Freedreno] [PATCH 01/11] drm/msm/dpu: Remove dpu_dbg

2018-10-19 Thread Bruce Wang
On 10/18/2018 03:58 PM, Jordan Crouse wrote: The functions in dpu_dbg.c aren't used. The two main dump functions fail after a lookup from dpu_dbg_base.reg_base_list which turns out to never be populated and once those are removed the rest of the file doesn't make any sense. Signed-off-by: Jord

Re: [Freedreno] [PATCH 11/11] drm/msm/dpu: Clean up dpu_media_info.h static inline functions

2018-10-19 Thread Bruce Wang
On Thu, Oct 18, 2018 at 3:59 PM Jordan Crouse wrote: > > Do some cleanup in the static inline functions defined in > dpu_media_info.h by cleaning up gotos and unneeded local > variables. > > Signed-off-by: Jordan Crouse Reviewed-by: Bruce Wang > --- > .

Re: [Freedreno] [PATCH 08/11] drm/msm/dpu: Remove dpu_irq and unused functions

2018-10-19 Thread Bruce Wang
/msm/disp/dpu1/dpu_kms.c > index 7e3ba128cbaf..2a91881048c8 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c > @@ -706,10 +706,30 @@ static void _dpu_kms_set_encoder_mode(struct msm_kms > *kms, > enco

Re: [Freedreno] [PATCH 07/11] drm/msm: Make irq_postinstall optional

2018-10-19 Thread Bruce Wang
On Thu, Oct 18, 2018 at 3:58 PM Jordan Crouse wrote: > > Allow the KMS operation 'irq_postinstall' to be optional > so that the target display drivers don't need to define > a dummy function if they don't need one. > > Signed-off-by: Jordan Crouse Reviewed

Re: [Freedreno] [PATCH 04/11] drm/msm/dpu: Remove dpu_crtc_is_enabled()

2018-10-18 Thread Bruce Wang
own. > > Signed-off-by: Jordan Crouse Reviewed-by: Bruce Wang > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 17 ++--- > drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 9 - > 2 files changed, 6 insertions(+), 20 deletions(-) > > dif

Re: [Freedreno] [PATCH 03/11] drm/msm/dpu: Remove dpu_crtc_get_mixer_height

2018-10-18 Thread Bruce Wang
On Thu, Oct 18, 2018 at 3:59 PM Jordan Crouse wrote: > > dpu_crtc_get_mixer_height() is only used once and the value it > returns can be easily derived from the calling function. > > Signed-off-by: Jordan Crouse Reviewed-by: Bruce Wang > --- > drivers/gpu/drm/msm/disp

Re: [Freedreno] [PATCH 02/11] drm/msm/dpu: Use DEFINE_SHOW_ATTRIBUTE

2018-10-18 Thread Bruce Wang
On Thu, Oct 18, 2018 at 3:58 PM Jordan Crouse wrote: > > Use the standard DEFINE_SHOW_ATTRIBUTE macro for seq_file based > debugfs files instead of custom macros and hand-coded functions. > > Signed-off-by: Jordan Crouse Sorry! Suppressed CCs by accident Reviewed

[Freedreno] [PATCH v3 1/4] drm/msm/dpu: Remove dpu_kms_pm_suspend/resume

2018-10-05 Thread Bruce Wang
-off-by: Bruce Wang Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 123 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 15 --- 2 files changed, 138 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c

[Freedreno] [PATCH v3 3/4] drm/msm/dpu: Remove suspend state tracking from crtc

2018-10-05 Thread Bruce Wang
moved all calls to dpu_kms_is_suspend_state, we can remove that function and the suspend_state field of dpu_kms as well. v2: added patch to patchset v3: reworded commit body and moved deletion of dpu_kms_is_suspend_state and suspend_state to this patch Signed-off-by: Bruce Wang --- drivers/g

[Freedreno] [PATCH v3 2/4] drm/msm: Cut dpu_kms hooks from msm_pm_suspend/resume

2018-10-05 Thread Bruce Wang
. v2: reorganized patch order v3: made error checks less severe Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/msm_drv.c | 27 --- drivers/gpu/drm/msm/msm_kms.h | 3 --- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gp

[Freedreno] [PATCH v3 4/4] drm/msm/dpu: Replace dpu_crtc_reset by atomic helper

2018-10-05 Thread Bruce Wang
Since we removed all suspend logic from the crtc code (see patch 3/4), dpu_crtc_reset does the same things as drm_atomic_helper_crtc_reset, so let's just replace it with a call to the atomic helper. v3: added patch to patchset Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp

[Freedreno] [PATCH v3 0/4] drm/msm: Use atomic helpers for PM suspend/resume

2018-10-05 Thread Bruce Wang
ordering, added removal of suspend state reliance v3: Condesed suspend state reliance patches into one patch (patch 3), added removal of dpu_crtc_reset Bruce Wang (4): drm/msm/dpu: Remove dpu_kms_pm_suspend/resume drm/msm: Cut dpu_kms hooks from msm_pm_suspend/resume drm/msm/dpu: Remove suspend

[Freedreno] [PATCH 3/4] drm/msm/dpu: Remove suspend state tracking from crtc

2018-10-05 Thread Bruce Wang
state from inside the crtc. This patch removes the suspend logic from the crtc, and removes the relevant tracing from dpu_trace. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 61 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 2 - drivers/gpu/dr

[Freedreno] [PATCH 0/4] drm/msm: Use atomic helpers for PM suspend/resume

2018-10-05 Thread Bruce Wang
Patches 1-2: Changes msm_pm_resume implementation to use atomic helpers and removes the previously used dpu_kms_pm_suspend/resume functions. Patches 3-4: Removes reliance on knowledge about suspend state from crtc Bruce Wang (4): drm/msm/dpu: Remove dpu_kms_pm_suspend/resume drm/msm: Cut

[Freedreno] [PATCH 4/4] drm/msm/dpu: Remove suspend_state from dpu_kms

2018-10-05 Thread Bruce Wang
The suspend_state field is no longer used and can be removed along with dpu_kms_is_suspend_state. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 16 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h b/drivers/gpu/drm

[Freedreno] [PATCH 2/4] drm/msm: Cut dpu_kms hooks from msm_pm_suspend/resume

2018-10-05 Thread Bruce Wang
d-off-by: Bruce Wang --- drivers/gpu/drm/msm/msm_drv.c | 28 ++-- drivers/gpu/drm/msm/msm_kms.h | 3 --- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 4904d0d41409..f987df7f10df 100644

[Freedreno] [PATCH 1/4] drm/msm/dpu: Remove dpu_kms_pm_suspend/resume

2018-10-05 Thread Bruce Wang
PM resume was crashing during dpu_kms_pm_resume. This patch removes dpu_kms_pm_suspend/resume so that msm_pm_suspend/resume uses the atomic helpers instead (see next patch). This patch also removes dpu_kms_is_suspend_blocked since it is never called. Signed-off-by: Bruce Wang --- drivers/gpu

Re: [Freedreno] [PATCH] drm/msm: dpu: Don't reset dpu_enc->cur_master on .disable()

2018-10-02 Thread Bruce Wang
t; > This patch moves the NULL assignment to setup_display where it will be > re-assigned later in the function. > > Signed-off-by: Sean Paul Tested-by: Bruce Wang > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)

[Freedreno] [PATCH 1/2] drm/msm: Use atomic helpers for pm_suspend/resume

2018-10-02 Thread Bruce Wang
poll_disable call is likely not needed as of right now as the DRM_CONNECTOR_POLL_CONNECT flag is never set. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 -- drivers/gpu/drm/msm/msm_drv.c | 28 + drivers/gpu/drm/msm/msm_kms.h | 3

[Freedreno] [PATCH 2/2] drm/msm/dpu: Remove all dpu pm_suspend/resume code

2018-10-02 Thread Bruce Wang
Removes the now uncalled pm_suspend/resume code. Also removes dpu_kms_is_suspend_blocked which is never called, and changes dpu_kms_is_suspend_state to work with the new msm_pm_suspend/resume implementations. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 121

Re: [Freedreno] [PATCH v3 0/7] drm/msm/dpu: Clean up dpu code

2018-09-28 Thread Bruce Wang
On Fri, Sep 28, 2018 at 3:42 AM Sean Paul wrote: > > On Mon, Sep 24, 2018 at 12:22:21PM -0400, Bruce Wang wrote: > > Removes uneeded checks and unused variables. Changes some > > function that do not need return values to void. > > > > Bruce Wang (7): > > dr

[Freedreno] [PATCH v4 4/7] drm/msm/dpu: Remove _dpu_crtc_power_enable

2018-09-26 Thread Bruce Wang
: Removed both _dpu_crtc_power_enable and _dpu_crtc_power_disable and called pm_runtime_get_sync and pm_runtime_put_sync from all call points Signed-off-by: Bruce Wang Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 41 ++-- 1 file changed, 2 insertions

[Freedreno] [PATCH v3 7/7] drm/msm/dpu: Revise _dpu_plane_get_aspace

2018-09-25 Thread Bruce Wang
Remove unneeded checks from _dpu_plane_get_aspace. v3: change _dpu_plane_get_aspace to return a struct *msm_gem_address_space instead passing in a pointer of the same type to edit. Remove uneeded arguments. Signed-off-by: Bruce Wang Reviewed-by: Jordan Crouse --- drivers/gpu/drm/msm/disp/dpu1

Re: [Freedreno] [PATCH v3 7/7] drm/msm/dpu: Make _dpu_plane_get_aspace void

2018-09-25 Thread Bruce Wang
On Mon, Sep 24, 2018 at 2:01 PM Jeykumar Sankaran wrote: > > On 2018-09-24 10:45, Bruce Wang wrote: > > Remove unneeded checks from _dpu_plane_get_aspace. The function > > no longer needs to return anything so it is changed to void. > > > Are the subject and text stil

[Freedreno] [PATCH v3 7/7] drm/msm/dpu: Make _dpu_plane_get_aspace void

2018-09-24 Thread Bruce Wang
Remove unneeded checks from _dpu_plane_get_aspace. The function no longer needs to return anything so it is changed to void. v3: change _dpu_plane_get_aspace to return a struct *msm_gem_address_space instead passing in a pointer of the same type to edit. Signed-off-by: Bruce Wang --- drivers

Re: [Freedreno] [PATCH v3 7/7] drm/msm/dpu: _dpu_plane_get_aspace returns

2018-09-24 Thread Bruce Wang
On Mon, Sep 24, 2018 at 12:47 PM Jordan Crouse wrote: > > On Mon, Sep 24, 2018 at 12:22:28PM -0400, Bruce Wang wrote: > > Remove unneeded checks from _dpu_plane_get_aspace. The function > > no longer needs to return anything so it is changed to void. > > > > v3:

[Freedreno] [PATCH v3 7/7] drm/msm/dpu: _dpu_plane_get_aspace returns

2018-09-24 Thread Bruce Wang
Remove unneeded checks from _dpu_plane_get_aspace. The function no longer needs to return anything so it is changed to void. v3: Made return value of function struct msm_gem_address_space* instead of passing one in to reflect the purpose of the function. Signed-off-by: Bruce Wang --- drivers

[Freedreno] [PATCH v3 6/7] drm/msm/dpu: Make dpu_plane_danger_signal_ctrl void

2018-09-24 Thread Bruce Wang
Removed all impossible checks from the function, which eliminates the need for a return value. This function is also never used outside of dpu_plane.c, so the function is made static. v3: Using helper function _dpu_plane_get_kms() instead of doing it locally. Signed-off-by: Bruce Wang Reviewed

[Freedreno] [PATCH v3 5/7] drm/msm/dpu: Change _dpu_crtc_vblank_enable_no_lock to void

2018-09-24 Thread Bruce Wang
Removes redundant tests for _dpu_crtc_vblank_enable_no_lock. Function return type is now void and all function calls have been changed accordingly. Signed-off-by: Bruce Wang Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 42 1 file changed, 7

[Freedreno] [PATCH v3 1/7] drm/msm/dpu: Remove unneeded checks in dpu_plane.c

2018-09-24 Thread Bruce Wang
. Signed-off-by: Bruce Wang Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 204 ++ 1 file changed, 16 insertions(+), 188 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index 1ce76460d710

[Freedreno] [PATCH v3 3/7] drm/msm/dpu: Remove unneeded checks in dpu_crtc.c

2018-09-24 Thread Bruce Wang
Removes impossible checks in dpu_crtc.c. Variable assignments are moved up to be initializations where possible. Some variables are no longer used, these are removed. v3: reverted back to original patch Signed-off-by: Bruce Wang Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v3 0/7] drm/msm/dpu: Clean up dpu code

2018-09-24 Thread Bruce Wang
Removes uneeded checks and unused variables. Changes some function that do not need return values to void. Bruce Wang (7): drm/msm/dpu: Remove unneeded checks in dpu_plane.c drm/msm/dpu: Clean up plane atomic disable/update drm/msm/dpu: Remove unneeded checks in dpu_crtc.c drm/msm/dpu

[Freedreno] [PATCH v3 4/7] drm/msm/dpu: Change _dpu_crtc_power_enable to void

2018-09-24 Thread Bruce Wang
arity. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 44 ++-- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index e31e70f5dbac..cb71e2a2e02e 100644

[Freedreno] [PATCH v3 2/7] drm/msm/dpu: Clean up plane atomic disable/update

2018-09-24 Thread Bruce Wang
Removes unnecessary checks from dpu_plane_atomic_disable, old_state argument for both dpu_plane_atomic_disable and dpu_plane_sspp_atomic_update is removed as it is no longer used. Signed-off-by: Bruce Wang Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 31

Re: [Freedreno] [PATCH v2 4/7] drm/msm/dpu: Change _dpu_crtc_power_enable to void

2018-09-24 Thread Bruce Wang
On Fri, Sep 21, 2018 at 11:51 AM, Sean Paul wrote: > > On Thu, Sep 20, 2018 at 11:36:34AM -0600, Jordan Crouse wrote: > > On Thu, Sep 20, 2018 at 12:49:21PM -0400, Bruce Wang wrote: > > > All checks for _dpu_crtc_power_enable are not true, so the function > > > can n

[Freedreno] [PATCH v2 6/7] drm/msm/dpu: Make dpu_plane_danger_signal_ctrl void

2018-09-20 Thread Bruce Wang
Removed all impossible checks from the function, which eliminates the need for a return value. This function is also never used outside of dpu_plane.c, so the function is made static. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 27 +-- 1 file

[Freedreno] [PATCH v2 7/7] drm/msm/dpu: Make _dpu_plane_get_aspace void

2018-09-20 Thread Bruce Wang
Remove unneeded checks from _dpu_plane_get_aspace. The function no longer needs to return anything so it is changed to void. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 25 --- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a

[Freedreno] [PATCH v2 5/7] drm/msm/dpu: Change _dpu_crtc_vblank_enable_no_lock to void

2018-09-20 Thread Bruce Wang
Removes redundant tests for _dpu_crtc_vblank_enable_no_lock. Function return type is now void and all function calls have been changed accordingly. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 42 1 file changed, 7 insertions(+), 35 deletions

[Freedreno] [PATCH v2 3/7] drm/msm/dpu: Remove unneeded checks in dpu_crtc.c

2018-09-20 Thread Bruce Wang
Removes impossible checks in dpu_crtc.c. Variable assignments are moved up to be initializations where possible. Some variables are no longer used, these are removed. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 170 +++ 1 file changed, 23

[Freedreno] [PATCH v2 4/7] drm/msm/dpu: Change _dpu_crtc_power_enable to void

2018-09-20 Thread Bruce Wang
All checks for _dpu_crtc_power_enable are not true, so the function can never return an error code. All calls of the function have also been changed so that they don't expect a return value. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 35 --

[Freedreno] [PATCH v2 2/7] drm/msm/dpu: Clean up plane atomic disable/update

2018-09-20 Thread Bruce Wang
Removes unnecessary checks from dpu_plane_atomic_disable, old_state argument for both dpu_plane_atomic_disable and dpu_plane_sspp_atomic_update is removed as it is no longer used. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 31 +-- 1 file

[Freedreno] [PATCH v2 1/7] drm/msm/dpu: Remove unneeded checks in dpu_plane.c

2018-09-20 Thread Bruce Wang
Removes some checks from dpu_plane.c that will never result in an error. Subsequent variable assignments become part of the initialization wherever possible. Unused variables are removed. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 190 ++ 1

[Freedreno] [PATCH v2 0/7] drm/msm/dpu: Clean up dpu code

2018-09-20 Thread Bruce Wang
Removes uneeded checks and unused variables. Changes some function that do not need return values to void. Bruce Wang (7): drm/msm/dpu: Remove unneeded checks in dpu_plane.c drm/msm/dpu: Clean up plane atomic disable/update drm/msm/dpu: Remove unneeded checks in dpu_crtc.c drm/msm/dpu

[Freedreno] [PATCH 1/5] drm/msm/dpu: Remove unneeded checks from dpu_plane

2018-09-19 Thread Bruce Wang
Removes some checks from dpu_plane.c that will never result in an error. Subsequent variable assignments become part of the initialization wherever possible. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 53 +++ 1 file changed, 6 insertions(+), 47

[Freedreno] [PATCH 2/5] drm/msm/dpu: Clean up plane atomic disable/update

2018-09-19 Thread Bruce Wang
Removes unnecessary checks from dpu_plane_atomic_disable, old_state argument for both dpu_plane_atomic_disable and dpu_plane_sspp_atomic_update is removed as it is no longer used. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 31 +-- 1 file

[Freedreno] [PATCH 4/5] drm/msm/dpu: Change _dpu_crtc_power_enable to void

2018-09-19 Thread Bruce Wang
All checks for _dpu_crtc_power_enable are not true, so the function can never return an error code. All calls of the function have also been changed so that they don't expect a return value. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 35 --

[Freedreno] [PATCH 0/5] drm/msm/dpu: Clean up dpu code

2018-09-19 Thread Bruce Wang
Removes unneeded checks and unused variables. Changes some functions that do not need return values to void. Bruce Wang (5): [patch 1/5] drm/msm/dpu: Remove unneeded checks from dpu_plane [patch 2/5] drm/msm/dpu: Clean up plane atomic disable/update [patch 3/5] drm/msm/dpu: Remove

[Freedreno] [PATCH 5/5] drm/msm/dpu: Change _dpu_crtc_vblank_enable_no_lock to void

2018-09-19 Thread Bruce Wang
Removes redundant tests for _dpu_crtc_vblank_enable_no_lock. Function return type is now void and all function calls have been changed accordingly. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 42 1 file changed, 7 insertions(+), 35 deletions

[Freedreno] [PATCH 3/5] drm/msm/dpu: Remove impossible checks

2018-09-19 Thread Bruce Wang
Removes additional impossible checks in dpu_plane.c and dpu_crtc.c. Variable assignments are moved up to be initializations where possible. Some variables are no longer used, these are removed. Signed-off-by: Bruce Wang --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 121