From: svenkatr@ti.com (S, Venkatraman)
To: linux-arm-kernel@lists.infradead.org
Subject: Occasional crashes in suspend-resume with MMC transactions
Date: Mon, 26 Mar 2012 12:19:12 +0530 [thread overview]
Message-ID: <CANfBPZ8SD4jimMsrbFNrYemNUQzb5dLbwdMKB=x8EADWCJktvw@mail.gmail.com> (raw)
In-Reply-To: <B5906170F1614E41A8A28DE3B8D12143317FFC59@DBDE01.ent.ti.com>
On Thu, Mar 22, 2012 at 9:43 PM, Bedia, Vaibhav <vaibhav.bedia@ti.com> wrote:
> On Thu, Mar 22, 2012 at 21:36:36, S, Venkatraman wrote:
>> On Thu, Mar 22, 2012 at 8:13 PM, Bedia, Vaibhav <vaibhav.bedia@ti.com> wrote:
>> > On Thu, Mar 22, 2012 at 19:57:16, S, Venkatraman wrote:
>> > [...]
>> >>
>> >> I see (in 3.3) that the host controller driver does a "return ret" and
>> >> that means the errors is propagated.
>> >> Where is the return code lost /overridden ?
>> >>
>> >
>> > The return code gets overridden due to the call to host->pdata->resume()
>> > which always returns 0.
>>
>> Thanks - I see what you mean. But the patch is clunky.
>> A clean fix would be to not capture the return code of resume() in
>> "ret" and let the old
>> value of ret be propagated as is.
>>
>
> I agree. However, right now there's a dev_dbg() which checks for the return code.
> I could change the host->pdata->resume() and host->pdata->suspend() to not return
> anything if that's acceptable.
>
That's a good idea.
> More importantly, is this the right fix or does the driver need some other fix
> to make sure that such suspend failures do not occur at all?
I will look into this - but haven't seen such failures here to know
what's behind the symptom.
next prev parent reply other threads:[~2012-03-26 6:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-22 4:23 Occasional crashes in suspend-resume with MMC transactions Bedia, Vaibhav
2012-03-22 13:20 ` Bedia, Vaibhav
2012-03-22 14:27 ` S, Venkatraman
2012-03-22 14:43 ` Bedia, Vaibhav
2012-03-22 16:06 ` S, Venkatraman
2012-03-22 16:13 ` Bedia, Vaibhav
2012-03-26 6:49 ` S, Venkatraman [this message]
2012-03-22 14:49 ` Hebbar, Gururaja
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='CANfBPZ8SD4jimMsrbFNrYemNUQzb5dLbwdMKB=x8EADWCJktvw@mail.gmail.com' \
--to=svenkatr@ti.com \
--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).