From patchwork Thu Feb 12 08:51:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 5822701 Return-Path: X-Original-To: patchwork-dri-devel@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 143989F336 for ; Fri, 13 Feb 2015 00:41:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4044C20254 for ; Fri, 13 Feb 2015 00:41:56 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EBC762021A for ; Fri, 13 Feb 2015 00:41:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EC6B96E378; Thu, 12 Feb 2015 16:41:52 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 191646E6FE for ; Thu, 12 Feb 2015 00:52:37 -0800 (PST) Received: by mail-wi0-f169.google.com with SMTP id em10so3282366wid.0 for ; Thu, 12 Feb 2015 00:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=rL10ckGfNd1BKmbILLogOg9dPas5vXLKU+6ZOd4IMc0=; b=D29EYq14ACRygnT1KCllliFFFUAnsss6iWJKvXyA6kszr55V++8bwDzwc7X8VDN2CP vDGMj73uRKyoGOCd9SDoNW9DvEBJbCYtNXTzxa3thkA4fP/u0iAc305xSJpCaa5Wsqgi CiVfjntoP2lnD6O0uTiLfeKwHKn8NBElxSzytg8/rVdsDg9Im/gwS++dIbrSUsknsGDe a8sKJWmSmtHoMahn/NAy0iYe1gqRjWh5CGbJMr1eLFfoTZCBNyEhie4ZL7j4JjIT8cnH 7HFQEOfDHnYmtZ3bmkSAesD3QQRIn4LUhruApA2/y5u3y3eDJI0EkuWffGN3go+5yjeW Bs4Q== X-Received: by 10.181.13.4 with SMTP id eu4mr3967397wid.41.1423731156404; Thu, 12 Feb 2015 00:52:36 -0800 (PST) Received: from cizrna.lan (37-48-47-45.tmcz.cz. [37.48.47.45]) by mx.google.com with ESMTPSA id w16sm1571919wia.15.2015.02.12.00.52.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 00:52:35 -0800 (PST) From: Tomeu Vizoso To: linux-tegra@vger.kernel.org Subject: [PATCH v5 09/11] drm/tegra: Reset the SOR on probe Date: Thu, 12 Feb 2015 09:51:03 +0100 Message-Id: <1423731078-26681-10-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1423731078-26681-1-git-send-email-tomeu.vizoso@collabora.com> References: <1423731078-26681-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailman-Approved-At: Thu, 12 Feb 2015 16:41:51 -0800 Cc: Alexandre Courbot , =?UTF-8?q?Terje=20Bergstr=C3=B6m?= , Tomeu Vizoso , Stephen Warren , Andrew Bresticker , Simon Glass , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Dylan Reid , Javier Martinez Canillas X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 As there isn't a way for the firmware on the Nyan chromebooks to hand over the display to the kernel. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/tegra/sor.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 2afe478..e6caacc 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -1458,6 +1458,20 @@ static int tegra_sor_probe(struct platform_device *pdev) mutex_init(&sor->lock); + err = reset_control_assert(sor->rst); + if (err < 0) { + dev_err(&pdev->dev, "failed to assert SOR reset: %d\n", err); + return err; + } + + msleep(20); + + err = reset_control_deassert(sor->rst); + if (err < 0) { + dev_err(&pdev->dev, "failed to deassert SOR reset: %d\n", err); + return err; + } + err = host1x_client_register(&sor->client); if (err < 0) { dev_err(&pdev->dev, "failed to register host1x client: %d\n",