drm/ast: Fixed system hanged if disable P2A
authorY.C. Chen <yc_chen@aspeedtech.com>
Thu, 26 Jan 2017 01:45:40 +0000 (09:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:54 +0000 (06:41 +0200)
commit47c362f147aaee88c7da3fdce6e99212376bbe44
tree0d34e1fdd01c98617ada51a5788e9af245ab9fae
parentbfa4d2e461dab77476f4570bf9ac0213b6cbe484
drm/ast: Fixed system hanged if disable P2A

[ Upstream commit 6c971c09f38704513c426ba6515f22fb3d6c87d5 ]

The original ast driver will access some BMC configuration through P2A bridge
that can be disabled since AST2300 and after.
It will cause system hanged if P2A bridge is disabled.
Here is the update to fix it.

Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_post.c