[PATCH 5/5] HSI: ssi-protocol: clear carrier flag on open
From: Sebastian Reichel
Date: Sat Jan 30 2016 - 20:20:44 EST
If the interface is just being enabled, the modem is not
yet ready to be used, so clear the carrier flag (which is
e.g. set by ifconfig and ofono).
Signed-off-by: Sebastian Reichel <sre@xxxxxxxxxx>
---
drivers/hsi/clients/ssi_protocol.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c
index 3fb5b98b2c63..264f81cfa095 100644
--- a/drivers/hsi/clients/ssi_protocol.c
+++ b/drivers/hsi/clients/ssi_protocol.c
@@ -916,6 +916,8 @@ static int ssip_pn_open(struct net_device *dev)
struct ssi_protocol *ssi = hsi_client_drvdata(cl);
int err;
+ netif_carrier_off(ssi->netdev);
+
err = hsi_claim_port(cl, 1);
if (err < 0) {
dev_err(&cl->device, "SSI port already claimed\n");
--
2.7.0.rc3