> For a while now I noticed that undel Linux the joystick driver is very
> flaky. I have my own version of the driver, and I experimented with it
> a lot. I also used other published drivers.
>
> The driver tests show that the reading always times out. I would suspect
> the hardware, but under dos it works perfectly, every time.
>
> I do register the io area (0x201) and I use do_gettimeofday() to time
> my loop. I do not disable interrupts, which should only slightly distort
> results rather than permanently disable any reading.
>
> It seems as if the port is not being read again after the first time the
> reading loop is entered. I use 'inb(io)' to read, and I hope gcc knows
> not to optimize this out of the loop - true?
Try asking Vojtech Pavlik <vojtech@atrey.karlin.mff.cuni.cz> -- he is
developing a completely new joystick driver not suffering from these
problems.
Have a nice fortnight
-- Martin `MJ' Mares <mj@gts.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "Got mole problems? Call Avogadro, 602-1023!"