Re: [PATCH 2/2] Bluetooth: btmrvl: report error if verify_fw_download times out.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andreas,

* Andreas Fenkart <andreas.fenkart@xxxxxxxxxxxxxxxxxxx> [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@xxxxxxxxxxxxxxxxxxx>
> ---
>  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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux