drm/ast: Call open_key before enable_mmio in POST code
authorY.C. Chen <yc_chen@aspeedtech.com>
Wed, 22 Feb 2017 04:14:19 +0000 (15:14 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Mar 2017 02:02:48 +0000 (10:02 +0800)
commit5da03582e2120b04a58aabc7caa61109106e6c3d
tree39babacf9b53444b96c27f1b36eff1de1816ceb0
parent54aa80e300d6e64d569962f25c50bc37436ae9de
drm/ast: Call open_key before enable_mmio in POST code

commit 9bb92f51558f2ef5f56c257bdcea0588f31d857e upstream.

open_key enables access the registers used by enable_mmio

Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Tested-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ast/ast_post.c