drm/amd/display: Add hardware reset interface for DMUB service
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 9 Jan 2020 19:41:22 +0000 (14:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:55:28 +0000 (16:55 -0500)
commit0167da498d57dddf31eb30516d1fae0f31ddecb6
tree624e243ab0fe907832f2e5336039b6c3ee0e3189
parent7527791e1fbd595a294cf6e6f41999d8acf6c43f
drm/amd/display: Add hardware reset interface for DMUB service

[Why]
We'll need this to perform a clean shutdown before unloading the driver.

[How]
It will call reset internally and set hw_init to false. It won't do
anything if the hardware isn't initialized.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/inc/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c