Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1322536
| From | Sebastian Reichel <sre@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/5] HSI: ssi-protocol: clear carrier flag on open |
| Date | 2016-01-31 02:30 +0100 |
| Message-ID | <qWOZX-44I-1@gated-at.bofh.it> (permalink) |
| References | <qWOZY-44I-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 5/5] HSI: ssi-protocol: clear carrier flag on open Sebastian Reichel <sre@kernel.org> - 2016-01-31 02:30 +0100
csiph-web