Skip to contentSkip to conversation

drm/ast: open key before detect chips

PATCH In review Y.C. Chen 3 participants 4 messages Sep 10, 2014

Subsystems (3)
lore
Share & tools
lore

Y.C. Chen

author
#0 lore raw

PATCH 1/2 drm/ast: open key before detect chips

From: "Y.C. Chen" <[email protected]>

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

---
 drivers/gpu/drm/ast/ast_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/ast/ast_main.c +1 -0
index a2cc6be..b027e33 100644
@@ -67,6 +67,7 @@ static int ast_detect_chip(struct drm_device *dev)
 {
 	struct ast_private *ast = dev->dev_private;
 	uint32_t data, jreg;
+	ast_open_key(ast);
 
 	if (dev->pdev->device == PCI_CHIP_AST1180) {
 		ast->chip = AST1100;
Signature · 1 line
1.8.3.1
author
#1 lore raw

PATCH 2/2 drm/ast: AST2000 cannot be detected correctly

From: "Y.C. Chen" <[email protected]>

Type error and cause AST2000 cannot be detected correctly

---
 drivers/gpu/drm/ast/ast_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ast/ast_main.c +1 -1
index b027e33..b792194 100644
@@ -105,7 +105,7 @@ static int ast_detect_chip(struct drm_device *dev)
 			}
 			ast->vga2_clone = false;
 		} else {
-			ast->chip = 2000;
+			ast->chip = AST2000;
 			DRM_INFO("AST 2000 detected\n");
 		}
 	}
Signature · 1 line
1.8.3.1
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] drm/ast: AST2000 cannot be detected correctly

Quoted 25 lines · Y.C. Chen

From: "Y.C. Chen" <[email protected]>

Type error and cause AST2000 cannot be detected correctly

---
 drivers/gpu/drm/ast/ast_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ast/ast_main.c +1 -1
index b027e33..b792194 100644
@@ -105,7 +105,7 @@ static int ast_detect_chip(struct drm_device *dev)
 			}
 			ast->vga2_clone = false;
 		} else {
-			ast->chip = 2000;
+			ast->chip = AST2000;
 			DRM_INFO("AST 2000 detected\n");
 		}
 	}
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/2
#3 lore raw
In reply to Y.C. Chen
Quoted 25 lines · Y.C. Chen

From: "Y.C. Chen" <[email protected]>

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

---
 drivers/gpu/drm/ast/ast_main.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/ast/ast_main.c +1 -0
index a2cc6be..b027e33 100644
@@ -67,6 +67,7 @@ static int ast_detect_chip(struct drm_device *dev)
 {
 	struct ast_private *ast = dev->dev_private;
 	uint32_t data, jreg;
+	ast_open_key(ast);
 
 	if (dev->pdev->device == PCI_CHIP_AST1180) {
 		ast->chip = AST1100;
Signature · 1 line
1.8.3.1