[PATCH] Add the ability to layer another driver over the serial driver

From: Corey Minyard
Date: Mon Oct 16 2006 - 12:51:30 EST


This is a set of three patches to allow adding another driver on top of
the current serial driver without too much change to the serial code.
This is more for comments right now, it is probably not ready for real
use yet.

The patches are too big to post here, so I'm putting them on
http://home.comcast.net/~minyard

The three patches are:

* serial-remove-tty-struct-from-driver.patch - A general patch to
remove the tty includes from the low-level serial drivers. Only
fixes the 8250 for now.

* serial-allow-in-kernel-users.patch - The actual patch that adds
the layered driver to the serial core.

* serial-8250-cleanup.patch - Add support for the layered driver
and poll to the 8250 uart.

This is for a serial interface to an IPMI controller. Note that I
don't really like this very much for a number of reasons, but the IPMI
driver has features that only work in-kernel, like extending the
watchdog timer on a panic to allow kdump to operate without a reboot
and storing panic information in the IPMI event log. So you really
can't write a userland-only interface for this and keep those
features.

It is also not really possible to add this on top of the tty code
because it has to be able to run at panic time, and the tty code
doesn't have a clean place to interface this from what I could
tell.

-Corey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/