Re: reset_resume() for sierra driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2 Feb 2010 15:22:34 +0100
Oliver Neukum <oliver@xxxxxxxxxx> wrote:

> Am Dienstag, 2. Februar 2010 15:19:29 schrieb Alan Cox:
> > > I am implementing reset_resume() in the sierra driver. It seems to me
> > > that the best way to do that would be to simulate a sudden loss of
> > > connection. To do so I need to know what a sierra device does if the
> > > connection simply vanishes. I want to feed emulated error messages
> > > to the tty layer to make NetworkManager deal nicely with this situation.
> > 
> > The tty layer hangs up a port that vanishes so you just need to do
> > 
> >         tty_hangup(tty)
> 
> Is that sensible for these devices? At least the control channels
> should not be affected as reset_resume() would be done.

That is a different question. The serial layer indicates a loss of
connection by hanging up that device/channel. With a normal modem
NetworkMangler will then re-open the device and re-establish whatever
state it wanted.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux