Skip to contentSkip to conversation

Fix for break handling in sunsab.c for 2.6

DISCUSSION David S. Miller 1 participant 1 message Dec 9, 2004

lore
Share & tools
lore
#0 lore raw
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.c serial 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 from check_status() to receive_chars(). However, in the current version of the driver the BRK interrupt never reaches receive_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.