linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: wens@csie.org (Chen-Yu Tsai)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] [PATCH 2/4] drivers: soc: sunxi: fix error processing on base address when claiming
Date: Wed, 9 Aug 2017 17:16:29 +0800	[thread overview]
Message-ID: <CAGb2v658CSUwSMdv5yCLtPSfDrsmMZDSBjZQsmi=2Y+EfJPmhg@mail.gmail.com> (raw)
In-Reply-To: <20170809085627.32687-3-icenowy@aosc.io>

On Wed, Aug 9, 2017 at 4:56 PM, Icenowy Zheng <icenowy@aosc.io> wrote:
> When claiming SRAM, if the base is set to an error, it means that the
> SRAM controller has been probed, but failed to remap the controller
> memory zone. If the base is zero, thus the SRAM controller should be not
> probed at all, and it should return -EPROBE_DEFER. However, currently we
> returned -EPROBE_DEFER in the former situation, and ignored the latter
> situation (which will lead to the kernel to panic).
>
> Fix the behavior on abnormal base address processing when claiming.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.io>

Fixes: 4af34b572a85 ("drivers: soc: sunxi: Introduce SoC driver to map SRAMs") ?

I can add the tag when applying.

ChenYu

  reply	other threads:[~2017-08-09  9:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09  8:56 [PATCH 0/4] Allwinner A64 SRAM C (DE2 SRAM) support Icenowy Zheng
2017-08-09  8:56 ` [PATCH 1/4] dt-bindings: add binding for Allwinner A64 SRAM controller and SRAM C Icenowy Zheng
2017-08-14  9:37   ` [linux-sunxi] " Chen-Yu Tsai
2017-08-17 15:10   ` Rob Herring
2017-08-09  8:56 ` [PATCH 2/4] drivers: soc: sunxi: fix error processing on base address when claiming Icenowy Zheng
2017-08-09  9:16   ` Chen-Yu Tsai [this message]
2017-08-18  6:21   ` [linux-sunxi] " Chen-Yu Tsai
2017-08-18  6:23     ` Icenowy Zheng
2017-08-18  6:29       ` Chen-Yu Tsai
2017-08-09  8:56 ` [PATCH 3/4] drivers: soc: sunxi: add support for remapping func value to reg value Icenowy Zheng
2017-08-14  9:46   ` [linux-sunxi] " Chen-Yu Tsai
2017-08-09  8:56 ` [PATCH 4/4] drivers: soc: sunxi: add support for A64 and its SRAM C Icenowy Zheng
2017-08-14  9:48   ` [linux-sunxi] " Chen-Yu Tsai
2017-08-18  6:19     ` Chen-Yu Tsai

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='CAGb2v658CSUwSMdv5yCLtPSfDrsmMZDSBjZQsmi=2Y+EfJPmhg@mail.gmail.com' \
    --to=wens@csie.org \
    --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;
as well as URLs for NNTP newsgroup(s).