[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1454203187-688-6-git-send-email-sre@kernel.org>
Date: Sun, 31 Jan 2016 02:19:47 +0100
From: Sebastian Reichel <sre@...nel.org>
To: Sebastian Reichel <sre@...nel.org>,
Tony Lindgren <tony@...mide.com>,
Benoît Cousson <bcousson@...libre.com>,
Aaro Koskinen <aaro.koskinen@....fi>
Cc: Pali Rohár <pali.rohar@...il.com>,
Pavel Machek <pavel@....cz>, linux-omap@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 5/5] HSI: ssi-protocol: clear carrier flag on open
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@...nel.org>
---
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
Powered by blists - more mailing lists