[RFC] pxa serial driver, updated modem control line handling

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

i've posted a problem with the pxa serial driver's modem control line handling 
during suspend cycles to the LKML. It's about RTS being reasserted just 
before going to sleep:
> When suspending (e.g. apm --suspend) a machine, the serial_core suspend
> code tries to disable modem control lines (including RTS):
> This is needed to stop the other side of a serial link from sending 
> any data after our serial port has been disabled.
> Now in line 1937 ops->shutdown(port) is called. For 8250 this points to
> serial8250_shutdown, for pxa to serial_pxa_shutdown. Both call
> xxx__set_mctrl(&up->port, up->port.mctrl) which will restore the old
> control line values and reverse the intended effect.

And, as I didn't get any responses i prepared a patch:

Is this patch the way to go? How else could the problem be approached?

Thanks for your comments

List admin:

[Site Home]     [Linux Arm]     [Gcc Help]     [Git]     [DCCP]     [IETF Annouce]     [Security]     [PDAs]     [Linux]     [Linux Book List]     [Linux MIPS]     [Yosemite Campsites]     [Photos]

Powered by Linux