[PATCH] port-mbim: increase timeout of device open operation

Aleksander Morgado aleksander at aleksander.es
Tue Mar 4 10:28:00 PST 2014


On 03/04/14 09:17, Ben Chan wrote:
> A MBIM device typically delays its response to an 'Open' command when it
> has not completed the initialization process. This patch increases the
> timeout of the MBIM device open operation from 10s to 30s to handle
> situations where the device takes much longer to initialize.
> ---

Pushed, thanks.

>  src/mm-port-mbim.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mm-port-mbim.c b/src/mm-port-mbim.c
> index 28b1afc..4b85ac3 100644
> --- a/src/mm-port-mbim.c
> +++ b/src/mm-port-mbim.c
> @@ -111,7 +111,7 @@ mbim_device_new_ready (GObject *unused,
>  
>      /* Now open the MBIM device */
>      mbim_device_open (ctx->self->priv->mbim_device,
> -                      10,
> +                      30,
>                        ctx->cancellable,
>                        (GAsyncReadyCallback)mbim_device_open_ready,
>                        ctx);
> 


-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list