Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1322536 > unrolled thread

[PATCH 5/5] HSI: ssi-protocol: clear carrier flag on open

Started bySebastian Reichel <sre@kernel.org>
First post2016-01-31 02:30 +0100
Last post2016-01-31 02:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 5/5] HSI: ssi-protocol: clear carrier flag on open Sebastian Reichel <sre@kernel.org> - 2016-01-31 02:30 +0100

#1322536 — [PATCH 5/5] HSI: ssi-protocol: clear carrier flag on open

FromSebastian Reichel <sre@kernel.org>
Date2016-01-31 02:30 +0100
Subject[PATCH 5/5] HSI: ssi-protocol: clear carrier flag on open
Message-ID<qWOZX-44I-1@gated-at.bofh.it>
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@kernel.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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web