MLK-18605-1 drm/bridge: sec-dsim: add cleanup when detach dsi client
authorFancy Fang <chen.fang@nxp.com>
Wed, 13 Jun 2018 09:32:58 +0000 (17:32 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitec41efb42d4af4277481036842d0a3b43afe0027
treef1b16a2c6cdc886fdd46e53ab81d90d2c9c13e0e
parent6652046a6b3e93ee59812a1e4e84113d745818b8
MLK-18605-1 drm/bridge: sec-dsim: add cleanup when detach dsi client

When the dsi device is detached, the dsi parameters saved when
the dsi device is attached should be cleaned to avoid to be
misused. And besides, add some sanity check along with this
cleanup.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit a02c30a0ed8acc4a136d2281431fa4b07d66b933)
(cherry picked from commit 0b78ed9b7c61d2b703c1065850bd5f25ea30482f)
drivers/gpu/drm/bridge/sec-dsim.c