04 Jan, 2009
1 commit
-
those two functions only used in that C file
Signed-off-by: Yinghai Lu
Signed-off-by: Linus Torvalds
03 Jan, 2009
39 commits
-
* i8k-updates:
i8k: Add Dell Vostro systems
i8k: Enable i8k on Dell Precision Systems -
This trivial patch adds support for i8k on the new Dell Vostro models.
I tested it on my Vostro 1400, and it works. It does print a warning
when loading the module:i8k: unable to get SMM BIOS version
But I couldn't figure out how to fix that. The module seems to work fine,
anyway...Signed-off-by: Federico Heinz
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Patch to enable i8k on Dell Precisions.
Signed-off-by: Andy Spencer
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
We forgot to release resources in one case.
Addresses http://bugzilla.kernel.org/show_bug.cgi?id=12137
Reported-by: Florian Lohoff
Signed-off-by: Andrew Morton
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Use the tty port operations, add refcounting, and refactor a bit to make the
refcounting work cleanly.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Now we have our ducks in order we can begin switching to the port
operationsSigned-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
We will need this kref fitted to make full use of the port operations.
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
We need to this ready for using the standard helpers
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Bring this driver into the port locking model
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Now the locking is straight and the port kref usage is straight we can
replace lots of chunks of code with the standard port helpersSigned-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Bring epca into line with the port locking.
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Update the nozomi driver to use krefs
Signed-off-by: Linus Torvalds
-
disc_data and driver_data are void *
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
The write wakeup is done anyway for the poll while DO_WRITE_WAKUP is
cleared, set and managed by the ldisc layer and is no business of the pty
code.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
The N_TTY ldisc layer does not send SIGIO POLL_OUTs correctly when output is
possible due to flawed handling of the TTY_DO_WRITE_WAKEUP bit. It will
either send no SIGIOs at all or on every tty wakeup.The fix is to set the bit when the tty driver write would block and test
and clear it on write wakeup.[Merged with existing N_TTY patches and a small buglet fixed -- Alan]
Signed-off-by: Thomas Pfaff
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Again this is a lot of common code we can unify
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
If we have no speed set at some point then we should not raise DTR/RTS at
that point when opening as the tty is not readySigned-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Mark it broken
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Start sucking more commonality out of the drivers into a single piece of
core code.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Normalise them so we can use the common helpers later on
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Switch generic_serial to do port count locking via the tty_port structure
ready for moving to a common port wait routine. Keep the old driver lock for
internal calling so we don't risk messing up the drivers below until we
are ready.Still needs kref conversions
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
This helps set the basis for moving block_til_ready into common code. We also
introduce a tty_port_hangup helper as this will also be generally needed.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
This moves another per device special out of what should be shared open
wait paths into private methodsSigned-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
This was an alloc/clear wrapper but makes even less sense now it uses
kzalloc. Kill it off.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
This is the first step to generalising the various pieces of waiting logic
duplicated in all sorts of serial drivers.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
This patch causes "bell" (^G) characters (invoked when the input buffer
is full) to be immediately output rather than filling the echo buffer.This is especially a problem when the tty is stopped and buffers fill, since
the bells do not serve their purpose of immediate notification that the
buffer cannot take further input, and they will flush all at once when the
tty is restarted.Signed-off-by: Joe Peterson
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Fix the handling of input characters when the tty buffer is full or nearly
full. This includes tests that are done in n_tty_receive_char() and handling
of PARMRK.Problems with the buffer-full tests done in receive_char() caused characters to
be lost at times when the buffer(s) filled. Also, these full conditions
would often only be detected with echo on, and PARMRK was not accounted for
properly in all cases. One symptom of these problems, in addition to lost
characters, was early termination from unix commands like tr and cat when
^Q was used to break from a stopped tty with full buffers (note that breaking
out was often previously not possible, due to the pty getting in "gridlock",
which will be addressed in another patch). Note space is always reserved
at the end of the buffer for a newline (or EOF/EOL) in canonical mode.Signed-off-by: Joe Peterson
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Fix process_output_block to detect continuation characters correctly
and to handle control characters even when O_OLCUC is enabled. Make
similar change to do_output_char().Signed-off-by: Joe Peterson
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
We have special case logic for resizing pty/tty pairs. We also have a per
driver resize method so for the pty case we should use it.Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Fixed sparse warning:
drivers/char/tty_io.c:1216:19: warning: symbol 'tty_driver_lookup_tty' was not declared. Should it be static?Signed-off-by: Jason Wessel
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Signed-off-by: Sukadev Bhattiprolu
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Now the main work is done its polishing time
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds -
Fixes the loss of echoed (and other ldisc-generated characters) when
the tty is stopped or when the driver output buffer is full (happens
frequently for input during continuous program output, such as ^C)
and removes the Big Kernel Lock from the N_TTY line discipline.Adds an "echo buffer" to the N_TTY line discipline that handles all
ldisc-generated output (including echoed characters). Along with the
loss of characters, this also fixes the associated loss of sync between
tty output and the ldisc state when characters cannot be immediately
written to the tty driver.The echo buffer stores (in addition to characters) state operations that need
to be done at the time of character output (like management of the column
position). This allows echo to cooperate correctly with program output,
since the ldisc state remains consistent with actual characters written.Since the echo buffer code now isolates the tty column state code
to the process_out* and process_echoes functions, we can remove the
Big Kernel Lock (BKL) and replace it with mutex locks.Highlights are:
* Handles echo (and other ldisc output) when tty driver buffer is full
- continuous program output can block echo
* Saves echo when tty is in stopped state (e.g. ^S)
- (e.g.: ^Q will correctly cause held characters to be released for output)
* Control character pairs (e.g. "^C") are treated atomically and not
split up by interleaved program output
* Line discipline state is kept consistent with characters sent to
the tty driver
* Remove the big kernel lock (BKL) from N_TTY line disciplineSigned-off-by: Joe Peterson
Signed-off-by: Alan Cox
Signed-off-by: Linus Torvalds