Fix for break handling in sunsab.c for 2.6
Quoted 9 lines · On Sun, 21 Nov 2004 13:43:05 -0500 (EST) Jurij Smakov <[email protected]> wrote:
Due to some bugs in break handling in the
sunsab.cserial driver, sending a break over serial console (equivalent of Stop-A sent from keyboard) does not dump user to the PROM command line. AFAICT, in the 2.4 -> 2.6 transition the checking for break has been moved fromcheck_status()toreceive_chars(). However, in the current version of the driver the BRK interrupt never reachesreceive_chars(). Even if it would, for the break to take effect a non-zero count of characters must be present in the buffer at the same time, which never happens. The patch below corrects the problem (I have tried to make it as unintrusive as possible).
Patch applied, thanks a lot Jurij.