From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Y.C. Chen" Subject: [PATCH 1/2] drm/ast: open key before detect chips Date: Wed, 10 Sep 2014 12:07:53 +0800 Message-ID: <1410322074-4427-1-git-send-email-yc_chen@aspeedtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from msr15.hinet.net (msr15.hinet.net [168.95.4.115]) by gabe.freedesktop.org (Postfix) with ESMTP id B89C06E3D2 for ; Tue, 9 Sep 2014 21:08:14 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org Cc: eich@suse.com, yc_chen@aspeedtech.com, airlied@redhat.com List-Id: dri-devel@lists.freedesktop.org From: "Y.C. Chen" Some config settings like 3rd TX chips will not get correctly if the extended reg is protected Signed-off-by: Y.C. Chen --- drivers/gpu/drm/ast/ast_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index a2cc6be..b027e33 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/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; uint32_t data, jreg; + ast_open_key(ast); if (dev->pdev->device == PCI_CHIP_AST1180) { ast->chip = AST1100; -- 1.8.3.1