From patchwork Tue Nov 17 01:38:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 7631801 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 31BA49F1C2 for ; Tue, 17 Nov 2015 01:38:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58FCE2049E for ; Tue, 17 Nov 2015 01:38:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DE0020489 for ; Tue, 17 Nov 2015 01:38:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751600AbbKQBij (ORCPT ); Mon, 16 Nov 2015 20:38:39 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:33255 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752958AbbKQBih (ORCPT ); Mon, 16 Nov 2015 20:38:37 -0500 Received: by lbbkw15 with SMTP id kw15so99429350lbb.0 for ; Mon, 16 Nov 2015 17:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=/xDxmIcSFTiEIIzIpjPmPmaqFHLiYIgOFJq6hycdXvI=; b=sqS5jyzUaRpAh7gzURnY1/x/C33ZP33iL9GcMmsadO7sXAldhQg4W3/Ci9YBTBnm97 i6vwhGuVbo1KpvUihyh4KnzX5wNAZqs3iAW/3bH7igN3MCnn1cJHwY1SuvN7cJiYFT4Y FEYUote9Y6dzes38CmjRuHhM2H/aeta5whVEcmHKiX+RKcoaNOHjTfVSjUyKaAc4ZliK hpdiS8Jm3Ug0XtwIWq1eTsqaQ3+c9lo9sOO9AcPr7A7YOXTo7CmxbbG2n7HzDB5flQAs Zsue4we+CNwV0bfjV3VGK9cwKo/m8r0X4OfbwXfykkxqcsVh5yooiIRm4L5wanqCyPn9 SogA== X-Received: by 10.112.200.229 with SMTP id jv5mr18760014lbc.23.1447724314170; Mon, 16 Nov 2015 17:38:34 -0800 (PST) Received: from anuminas.lumag.spb.ru (ppp89-110-18-204.pppoe.avangarddsl.ru. [89.110.18.204]) by smtp.gmail.com with ESMTPSA id j83sm6011457lfi.47.2015.11.16.17.38.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Nov 2015 17:38:33 -0800 (PST) From: Dmitry Eremin-Solenikov To: Antonino Daplas , Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: linux-fbdev@vger.kernel.org Subject: [PATCH] video: fbdev: rivafb: unlock chip before probiding EDID Date: Tue, 17 Nov 2015 04:38:15 +0300 Message-Id: <1447724295-1954-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.6.2 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP At least NV3 requires for chip to be unlocked before it is possible to access I2C registers. Without it, it is not possible to read EDID. Signed-off-by: Dmitry Eremin-Solenikov --- drivers/video/fbdev/riva/fbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/fbdev/riva/fbdev.c b/drivers/video/fbdev/riva/fbdev.c index f1ad274..2ef26ad 100644 --- a/drivers/video/fbdev/riva/fbdev.c +++ b/drivers/video/fbdev/riva/fbdev.c @@ -1765,6 +1765,7 @@ static int riva_get_EDID_i2c(struct fb_info *info) int i; NVTRACE_ENTER(); + par->riva.LockUnlock(&par->riva, 0); riva_create_i2c_busses(par); for (i = 0; i < 3; i++) { if (!par->chan[i].par)