drm/msm/mdp5: Bring back pipe_lock to mdp5_plane struct
authorArchit Taneja <architt@codeaurora.org>
Thu, 23 Mar 2017 10:27:54 +0000 (15:57 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 8 Apr 2017 10:59:33 +0000 (06:59 -0400)
commit01f8a9696419133ff4305024f3211f095025d130
treeee11f9844cf10f2e20207b8edcfece77ffcb44fc
parent1225bb2b45f1c03dfdf29ab3b4cf065ab6da246f
drm/msm/mdp5: Bring back pipe_lock to mdp5_plane struct

We'd previously moved the pipe_lock spinlock to the hwpipe struct. Bring
it back to mdp5_plane. We will need this because an mdp5_plane in the
future could comprise of 2 hw pipes. It makes more sense to have a single
lock to protect the registers for the hw pipes used by a plane, rather
than trying to take individual locks per hwpipe when committing a
configuration.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.h
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c