Linux bluetooth development
 help / color / mirror / Atom feed
From: Gustavo Padovan <gustavo@padovan.org>
To: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Cc: marcel@holtmann.org, johan.hedberg@gmail.com,
	linux-bluetooth@vger.kernel.org, andrei.emeltchenko@intel.com,
	akarwar@marvell.com, bzhao@marvell.com
Subject: Re: [PATCH 2/2] Bluetooth: btmrvl: report error if verify_fw_download times out.
Date: Thu, 18 Apr 2013 19:31:32 -0300	[thread overview]
Message-ID: <20130418223132.GC15279@joana> (raw)
In-Reply-To: <1366301890-14100-3-git-send-email-andreas.fenkart@streamunlimited.com>

Hi Andreas,

* Andreas Fenkart <andreas.fenkart@streamunlimited.com> [2013-04-18 18:18:09 +0200]:

> Fw does the synchronization of the different modules during init.
> It will report different modules, that it is ready at different times.
> The download 'winner' will be reported 'fw ready' first. Without this
> patch, btmrvl is continuing before the fw tells it to. Probably on behalf
> of the 'winner' which then never sees the fw as ready and times out.
> 
> Signed-off-by: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
> ---
>  drivers/bluetooth/btmrvl_sdio.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
> index 6b6abb2..2ec0841 100644
> --- a/drivers/bluetooth/btmrvl_sdio.c
> +++ b/drivers/bluetooth/btmrvl_sdio.c
> @@ -245,6 +245,7 @@ static int btmrvl_sdio_verify_fw_download(struct btmrvl_sdio_card *card,
>  			break;
>  		} else {
>  			msleep(10);
> +			ret = -1;

Can we have a proper error code here?

	Gustavo

  reply	other threads:[~2013-04-18 22:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 16:18 [PATCH 0/2] Bluetooth: btmrvl: Fix concurrent FW download Andreas Fenkart
2013-04-18 16:18 ` [PATCH 1/2] Bluetooth: btmrvl: release lock while waiting for fw download complete Andreas Fenkart
2013-04-18 22:29   ` Gustavo Padovan
2013-04-18 16:18 ` [PATCH 2/2] Bluetooth: btmrvl: report error if verify_fw_download times out Andreas Fenkart
2013-04-18 22:31   ` Gustavo Padovan [this message]
2013-04-19  8:07 ` [PATCH 0/2] Bluetooth: btmrvl: Fix concurrent FW download Andreas Fenkart
2013-04-19  8:07   ` [PATCH v2 " Andreas Fenkart
2013-04-19  8:07   ` [PATCH v2 1/2] Bluetooth: btmrv: release lock while waiting for fw download complete Andreas Fenkart
2013-04-19  8:07   ` [PATCH v2 2/2] Bluetooth: btmrvl: report error if verify_fw_download times out Andreas Fenkart

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=20130418223132.GC15279@joana \
    --to=gustavo@padovan.org \
    --cc=akarwar@marvell.com \
    --cc=andreas.fenkart@streamunlimited.com \
    --cc=andrei.emeltchenko@intel.com \
    --cc=bzhao@marvell.com \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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