Linux wireless drivers development
 help / color / mirror / Atom feed
From: Daniel Mack <daniel@zonque.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Chris Ball <chris@printf.net>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	libertas-dev@lists.infradead.org, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] libertas: fix return codes in if_sdio_suspend()
Date: Wed, 27 Jun 2018 10:31:24 +0200	[thread overview]
Message-ID: <3f91c902-4aef-77cb-6fa1-d90cb1bc4aab@zonque.org> (raw)
In-Reply-To: <CAPDyKFp-KkHbqR4+vOL2XZnAcXPPCJ7snW=2wFoz82UckPFW1w@mail.gmail.com>

On Wednesday, June 27, 2018 09:54 AM, Ulf Hansson wrote:
> On 26 June 2018 at 22:50, Daniel Mack <daniel@zonque.org> wrote:
>> On Tuesday, June 26, 2018 10:48 PM, Daniel Mack wrote:

>>> @@ -1321,7 +1334,7 @@ static int if_sdio_suspend(struct device *dev)
>>>          if (ret)
>>>                  return ret;
>>>    -     ret = lbs_suspend(card->priv);
>>> +       ret = lbs_suspend(priv);
>>>          if (ret)
>>>                  return ret;
>>>    @@ -1336,6 +1349,9 @@ static int if_sdio_resume(struct device *dev)
>>>          dev_info(dev, "%s: resume: we're back\n", sdio_func_id(func));
>>>    +     if (card->priv->power_up_on_resume)
>>> +               if_sdio_power_on(card);
>>> +
> 
> To guarantee firmware is loaded, don't you need the below as well?
> 
> wait_event(card->pwron_waitq, priv->fw_ready);

Hmm, yes. I should probably just be calling into if_sdio_power_restore().

I'll test that and resend the patch.


Thanks,
Daniel

  reply	other threads:[~2018-06-27  8:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-26 20:48 [PATCH] libertas: fix return codes in if_sdio_suspend() Daniel Mack
2018-06-26 20:50 ` Daniel Mack
2018-06-27  7:54   ` Ulf Hansson
2018-06-27  8:31     ` Daniel Mack [this message]
2018-06-27  8:50       ` Ulf Hansson

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=3f91c902-4aef-77cb-6fa1-d90cb1bc4aab@zonque.org \
    --to=daniel@zonque.org \
    --cc=chris@printf.net \
    --cc=libertas-dev@lists.infradead.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=ulf.hansson@linaro.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