* parport_pc.c and parport_serial.c need improvements
@ 2010-04-23 16:33 Joseph Krahn
2010-04-26 22:10 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Joseph Krahn @ 2010-04-23 16:33 UTC (permalink / raw)
To: linux-kernel
In 2005, Russel King cleaned up parport_serial.c to remove redundancy
with 8250_pci.c (http://lwn.net/Articles/141484/). In working on
fixing the ITE-887x driver, I realized that there is still a lot of
redundancy with parport_pc.c. Furthermore, parport_pc seems to have
some deficiencies. It does not call pci_disable_device() when
unloading the driver (as pci.txt says it should) and seems to be
missing power suspend/resume code.
Also, the Super IO code looks rather messy. To work with
parport_serial, struct pci_parport_data could include a device_private
pointer to attach the serial-port data. The SuperIO code could use
this to attach struct superio_struct. Maybe the SuperIO code should be
in a separate module (i.e. parport_superio) that depends on
parport_pc, similar to parport_serial. In any case, it would be nice
to see more comments on why the SuperIO code is designed as it is.
OTOH, maybe parport hardware is simple enough that it is not worth
messing with the code as long as it seems to work OK.
Thanks,
Joe Krahn
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: parport_pc.c and parport_serial.c need improvements
2010-04-23 16:33 parport_pc.c and parport_serial.c need improvements Joseph Krahn
@ 2010-04-26 22:10 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2010-04-26 22:10 UTC (permalink / raw)
To: Joseph Krahn; +Cc: linux-kernel
> parport_pc, similar to parport_serial. In any case, it would be nice
> to see more comments on why the SuperIO code is designed as it is.
I think the superIO code is more 'evolved' than 'designed'. It's
something people nailed bits onto in passing rather than structured
elegantly.
Do what you think is right IMHO.
Alan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-26 22:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-23 16:33 parport_pc.c and parport_serial.c need improvements Joseph Krahn
2010-04-26 22:10 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®