[PATCH] parport fixes (1/6)
commit8d19538bd5e7aa71ff8dac5fbd272bdc17ad6311
authorAlexander Viro <viro@www.linux.org.uk>
Thu, 5 Feb 2004 00:58:34 +0000 (4 16:58 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 5 Feb 2004 00:58:34 +0000 (4 16:58 -0800)
tree3acd73a036fe2919235c98af4dd4ef190d9461a6
parent99db82cf15d9f4d85c5d80417f74d3d33978fc6a
[PATCH] parport fixes (1/6)

Current tree has all allocated ports on portlist.  However,
most of the portlist users assume that we only have announced ports
there and break badly if they happen to see the list after port driver
has created a port (parport_register_port()) but before it finishes
the setup (and calls parport_announce_port()).
The only place that wants to see all allocated port is
parport_register_port() itself and only to pick the first unused
port number.
We add a new list (all_ports) and put ports there when allocated;
that list is kept ordered by port->number.  Ports are placed on portlist
only by parport_announce_port().
Gobs of shite in parport_register_port() removed, pile of races
closed...
drivers/parport/share.c
include/linux/parport.h