From: Vojtech P. <vo...@su...> - 2002-07-13 18:32:06
|
On Sat, Jul 13, 2002 at 04:19:34PM +0200, Franz Sirl wrote: > On Montag, 8. Juli 2002 19:01, James Simmons wrote: > > > Exactly. i8042.c has quite a few assumptions in it. It uses inb/out > > > instead of ioremap/readb/writeb, it assumes control and data register are > > > 4 addresses apart and it assumes no special sequences are necessary to > > > access these registers. > > > > Some time ago I thought about this when I looked at the sparc i8042 > > driver. I tried a few things but I didn't come up with a solution. > > What do you all think about the appended patch? With the strategy in the patch > it should be possible to initialize and use i8042 chips on pretty much every > platform without code duplication. > > The patch compiles on PPC (and thus should on x86 too), but I can't test it > cause I don't have access to the affected embedded boards. > > If you like the approach, please apply it to the linux-input repo after > testing on x86. Ok, pushed, should be there. -- Vojtech Pavlik SuSE Labs |