From: Daniel Mack <daniel@zonque.org>
To: Chris Packham <Chris.Packham@alliedtelesis.co.nz>,
"miquel.raynal@bootlin.com" <miquel.raynal@bootlin.com>,
"boris.brezillon@bootlin.com" <boris.brezillon@bootlin.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH] mtd: rawnand: marvell: check for RDY bits after enabling the IRQ
Date: Thu, 27 Sep 2018 09:13:28 +0200 [thread overview]
Message-ID: <a3846a05-ba03-87ac-12ab-3986723fc0e0@zonque.org> (raw)
In-Reply-To: <9b6db42cceb5424b9e0eca2704e0f2f2@svr-chch-ex1.atlnz.lc>
Hi,
On 27/9/2018 1:42 AM, Chris Packham wrote:
> On 27/09/18 11:33, Chris Packham wrote:
>> On 27/09/18 09:24, Daniel Mack wrote:
>>> diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c
>>> index 666f34b58dec..e96ec7b9a152 100644
>>> --- a/drivers/mtd/nand/raw/marvell_nand.c
>>> +++ b/drivers/mtd/nand/raw/marvell_nand.c
>>> @@ -613,7 +613,8 @@ static int marvell_nfc_wait_cmdd(struct nand_chip *chip)
>>> static int marvell_nfc_wait_op(struct nand_chip *chip, unsigned int timeout_ms)
>>> {
>>> struct marvell_nfc *nfc = to_marvell_nfc(chip->controller);
>>> - int ret;
>>> + int ret = -EALREADY;
>>
>> Won't this cause us to hit the if (!ret) below if we don't end up
>> calling wait_for_completion_timeout()?
>
> Nope boolean logic fail.
Yup :)
>> In fact I did just hit something
>> like this on my Armada-385 based board
>>
>> marvell-nfc f10d0000.nand-controller: Timeout waiting for RB signal
>> ubi0 warning: do_sync_erase: error -5 while erasing PEB 755, retry
>>
>
> But this still might be something else, it doesn't happen regularly. For
> what it's worth
>
> Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Thanks. Did you see the issue that I described without that patch?
Cheers,
Daniel
next prev parent reply other threads:[~2018-09-27 7:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-26 21:23 [PATCH] mtd: rawnand: marvell: check for RDY bits after enabling the IRQ Daniel Mack
2018-09-26 23:33 ` Chris Packham
2018-09-26 23:42 ` Chris Packham
2018-09-27 7:13 ` Daniel Mack [this message]
2018-09-27 20:36 ` Chris Packham
2018-09-27 21:50 ` Chris Packham
2018-09-27 6:20 ` Boris Brezillon
2018-09-27 7:14 ` Daniel Mack
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=a3846a05-ba03-87ac-12ab-3986723fc0e0@zonque.org \
--to=daniel@zonque.org \
--cc=Chris.Packham@alliedtelesis.co.nz \
--cc=boris.brezillon@bootlin.com \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=stable@vger.kernel.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