net/usb: initiate sync sequence in sierra_net.c driver
authorElina Pasheva <epasheva@sierrawireless.com>
Wed, 28 Apr 2010 13:28:24 +0000 (13:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 May 2010 01:07:46 +0000 (18:07 -0700)
The following patch adds the initiation of the sync sequence to
"sierra_net_bind()". If this step is omitted, the modem will never sync up
with the host and it will not be possible to establish a data connection.

Signed-off-by: Elina Pasheva <epasheva@sierrawireless.com>
Signed-off-by: Rory Filer <rfiler@sierrawireless.com>
Tested-by: Elina Pasheva <epasheva@sierrawireless.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/sierra_net.c

index a44f9e0ea09889abdec4272bff4795a795636caf..f1942d69a0d5659f1eb085ab2727af3ba7e060e9 100644 (file)
@@ -789,6 +789,9 @@ static int sierra_net_bind(struct usbnet *dev, struct usb_interface *intf)
        /* prepare sync message from template */
        memcpy(priv->sync_msg, sync_tmplate, sizeof(priv->sync_msg));
 
+       /* initiate the sync sequence */
+       sierra_net_dosync(dev);
+
        return 0;
 }