瀏覽代碼

drm/ast: open key before detect chips

Some config settings like 3rd TX chips will not get correctly
if the extended reg is protected

Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
Reviewed-by: Egbert Eich <eich@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Y.C. Chen 11 年之前
父節點
當前提交
8f372e250a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/gpu/drm/ast/ast_main.c

+ 1 - 0
drivers/gpu/drm/ast/ast_main.c

@@ -67,6 +67,7 @@ static int ast_detect_chip(struct drm_device *dev)
 {
 {
 	struct ast_private *ast = dev->dev_private;
 	struct ast_private *ast = dev->dev_private;
 	uint32_t data, jreg;
 	uint32_t data, jreg;
+	ast_open_key(ast);
 
 
 	if (dev->pdev->device == PCI_CHIP_AST1180) {
 	if (dev->pdev->device == PCI_CHIP_AST1180) {
 		ast->chip = AST1100;
 		ast->chip = AST1100;