[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1423731078-26681-10-git-send-email-tomeu.vizoso@collabora.com>
Date: Thu, 12 Feb 2015 09:51:03 +0100
From: Tomeu Vizoso <tomeu.vizoso@...labora.com>
To: linux-tegra@...r.kernel.org
Cc: Stephen Warren <swarren@...dotorg.org>,
Javier Martinez Canillas <javier.martinez@...labora.co.uk>,
Simon Glass <sjg@...omium.org>,
Dylan Reid <dgreid@...omium.org>,
Andrew Bresticker <abrestic@...omium.org>,
Tomeu Vizoso <tomeu.vizoso@...labora.com>,
Thierry Reding <thierry.reding@...il.com>,
Terje Bergström <tbergstrom@...dia.com>,
David Airlie <airlied@...ux.ie>,
Alexandre Courbot <gnurou@...il.com>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: [PATCH v5 09/11] drm/tegra: Reset the SOR on probe
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 <tomeu.vizoso@...labora.com>
---
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",
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists