All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
To: linux-tegra@vger.kernel.org
Cc: "Stephen Warren" <swarren@wwwdotorg.org>,
	"Javier Martinez Canillas" <javier.martinez@collabora.co.uk>,
	"Simon Glass" <sjg@chromium.org>,
	"Dylan Reid" <dgreid@chromium.org>,
	"Andrew Bresticker" <abrestic@chromium.org>,
	"Tomeu Vizoso" <tomeu.vizoso@collabora.com>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Terje Bergström" <tbergstrom@nvidia.com>,
	"David Airlie" <airlied@linux.ie>,
	"Alexandre Courbot" <gnurou@gmail.com>,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: [PATCH v4 11/11] drm/tegra: Reset the SOR on probe
Date: Wed, 11 Feb 2015 16:06:43 +0100	[thread overview]
Message-ID: <1423667220-1062-12-git-send-email-tomeu.vizoso@collabora.com> (raw)
In-Reply-To: <1423667220-1062-1-git-send-email-tomeu.vizoso@collabora.com>

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@collabora.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

      parent reply	other threads:[~2015-02-11 15:06 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-11 15:06 [PATCH v4 00/11] Improvements to Tegra-based Chromebook support Tomeu Vizoso
2015-02-11 15:06 ` Tomeu Vizoso
2015-02-11 15:06 ` Tomeu Vizoso
     [not found] ` <1423667220-1062-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-02-11 15:06   ` [PATCH v4 01/11] ARM: tegra: Change model of sound card in Nyan Big Tomeu Vizoso
2015-02-11 15:06     ` Tomeu Vizoso
2015-02-11 15:06     ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 02/11] ARM: tegra: Move out nyan-generic parts out from the nyan-big DT Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
     [not found]   ` <1423667220-1062-3-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-02-11 17:26     ` Andrew Bresticker
2015-02-11 17:26       ` Andrew Bresticker
2015-02-11 17:26       ` Andrew Bresticker
2015-02-12  6:18       ` Tomeu Vizoso
2015-02-12  6:18         ` Tomeu Vizoso
2015-02-12  6:18         ` Tomeu Vizoso
2015-02-12 16:54         ` Andrew Bresticker
2015-02-12 16:54           ` Andrew Bresticker
2015-02-12 16:54           ` Andrew Bresticker
2015-02-11 15:06 ` [PATCH v4 03/11] drm/panel: add support for Samsung LTN140AT29 panel Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 04/11] ARM: tegra: Add DTS for the nyan-blaze board Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 05/11] ARM: tegra: Add node for trackpad in Nyan boards Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 06/11] ARM: tegra: Use pwrseq-simple for the wifi in Nyan Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 07/11] ARM: tegra: Use the generated pinmux data Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 08/11] ARM: tegra: Set spi-max-frequency property to flash node Tomeu Vizoso
2015-02-11 15:06   ` Tomeu Vizoso
2015-02-11 15:06 ` [PATCH v4 09/11] ARM: tegra: add support for warm reset GPIO Tomeu Vizoso
2015-02-11 17:17   ` Andrew Bresticker
2015-02-11 15:06 ` [PATCH v4 10/11] ARM: tegra: Set nvidia,reset-gpio property on the PMC node Tomeu Vizoso
2015-02-11 15:06   ` [PATCH v4 10/11] ARM: tegra: Set nvidia, reset-gpio " Tomeu Vizoso
2015-02-11 15:06 ` Tomeu Vizoso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1423667220-1062-12-git-send-email-tomeu.vizoso@collabora.com \
    --to=tomeu.vizoso@collabora.com \
    --cc=abrestic@chromium.org \
    --cc=airlied@linux.ie \
    --cc=dgreid@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gnurou@gmail.com \
    --cc=javier.martinez@collabora.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=sjg@chromium.org \
    --cc=swarren@wwwdotorg.org \
    --cc=tbergstrom@nvidia.com \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.