Commit 3ecbb231 authored by Y.C. Chen's avatar Y.C. Chen Committed by Kamal Mostafa

drm/ast: open key before detect chips

commit 8f372e25 upstream.

Some config settings like 3rd TX chips will not get correctly
if the extended reg is protected
Signed-off-by: default avatarY.C. Chen <yc_chen@aspeedtech.com>
Reviewed-by: default avatarEgbert Eich <eich@suse.de>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
parent bc82abaa
......@@ -66,6 +66,7 @@ uint8_t ast_get_index_reg_mask(struct ast_private *ast,
static int ast_detect_chip(struct drm_device *dev)
{
struct ast_private *ast = dev->dev_private;
ast_open_key(ast);
if (dev->pdev->device == PCI_CHIP_AST1180) {
ast->chip = AST1100;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment