Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: tegra: Comment out gpio-ranges properties
Date: Thu, 15 Oct 2015 17:59:08 +0200	[thread overview]
Message-ID: <5210588.IYgZy3yWn7@wuerfel> (raw)
In-Reply-To: <1444405907-17996-1-git-send-email-thierry.reding@gmail.com>

On Friday 09 October 2015 17:51:47 Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> While the addition of these properties is technically correct it unveils
> a bug with deferred probe. The problem is that the presence of the gpio-
> range property causes the gpio-tegra driver to defer probe (it needs the
> pinctrl driver to be ready). That's technically correct, but it causes a
> couple of issues:
> 
>   - The keyboard on Chromebooks stops working. The reason for that is
>     that the gpio-tegra device has not registered an IRQ domain by the
>     time the EC SPI device is registered, hence the interrupt number
>     resolves to 0. This is technically a bug in the SPI core, since it
>     should really resolve the interrupt at probe time and defer if the
>     IRQ domain isn't available yet. This is similar to what's done for
>     I2C and platform device already.
> 
>   - The gpio-tegra device deferring probe means that it is moved to the
>     end of the dpm_list. This list defines the suspend/resume order for
>     devices. However the core lacks a way to move all users of the
>     gpio-tegra device to the end of the dpm_list at the same time. This
>     in turn results in a subtle bug on Jetson TK1, where the gpio-keys
>     device is used to expose the power key as input. The power key is a
>     convenient way to wake the system from suspend. Interestingly, the
>     gpio-keys device ends up getting probed at a point after gpio-tegra
>     has been probed successfully from having been deferred earlier. As
>     such the driver doesn't need to defer the probe itself, and hence
>     the device isn't moved to the end of the dpm_list. This causes the
>     gpio-tegra device to be suspended before gpio-keys, which in turn
>     leaves gpio-keys unable to wake the system from suspend.
> 
> There are patches in the works to fix both of the above issues, but they
> are too involved to make it into v4.3, so in the meantime let's fix the
> regressions by commenting out the gpio-ranges properties until the fixes
> have landed.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> 

Applied to fixes, thanks!

	Arnd

      reply	other threads:[~2015-10-15 15:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-09 15:51 [PATCH] ARM: tegra: Comment out gpio-ranges properties Thierry Reding
2015-10-15 15:59 ` Arnd Bergmann [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=5210588.IYgZy3yWn7@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox