Re: [PATCH] cdc_acm: add reset_resume method

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

 



Am Montag, 7. Dezember 2009 17:26:41 schrieb Francesco Lavra:
> Hi,
> this patch adds support for reset_resume in cdc-acm. This function simply
>  calls tty_hangup() if there was any user of the tty at suspend time, and
>  then calls the normal resume function. Tested with a Samsung SGH-U900
>  device. Without reset_resume, every time the system is hibernated during a
>  PPP connection, the device moves from ttyACMx to ttyACM(x+1), an it must
>  be unplugged and replugged in order for its original node ttyACMx to
>  re-appear. Instead, with reset_resume the device retains its node name
>  across hibernation cycles.

Hi,

it would be better if you made calling hangup conditional on the device
having been opened. Could you do that?

	Regards
		Oliver
--
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