diff mbox

HSO driver patch again [2/2]

Message ID CAHMF36GL_6RZyhtUikM8EpS5rWp4Q+=P8g8i6huijG5vtnnwAQ@mail.gmail.com
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Matej Kupljen Oct. 7, 2016, 2:45 p.m. UTC
Hi,

second patch:
0002-Stop-also-serial-queue-when-device-is-unplugged.patch
Serial device was not stopped when the device got unplugged so
there are continues error messages that the URB cannot be submitted.

Thanks,
Matej

From: Matej Kupljen <matej.kupljen@norik.si>
Date: Wed, 5 Oct 2016 13:08:31 +0200
Subject: [PATCH] Stop also serial queue when device is unplugged

We need to also stop serial port when the device is unplugged,
the network part is already stopped.

Signed-off-by: Matej Kupljen <matej.kupljen@norik.si>
---
 drivers/net/usb/hso.c | 1 +
 1 file changed, 1 insertion(+)

  hso_serial_tty_unregister(serial);

Comments

David Miller Oct. 12, 2016, 5:58 a.m. UTC | #1
"HSO driver patch again ..." is not an appropriate Subject line when
submitting patches.

Please read Documentation/SubmittingPatches for how to do things
properly, and in a way that will actually lead to your patches
being applied.

Thanks.
diff mbox

Patch

diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index 16aef06..efd1fef 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -3157,6 +3157,7 @@  static void hso_free_interface(struct
usb_interface *interface)
  mutex_lock(&serial->parent->mutex);
  serial->parent->usb_gone = 1;
  mutex_unlock(&serial->parent->mutex);
+ hso_stop_serial_device(serial->parent);
  cancel_work_sync(&serial_table[i]->async_put_intf);
  cancel_work_sync(&serial_table[i]->async_get_intf);