From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Michael Schmitz <schmitz@biophys.uni-duesseldorf.de>
Cc: Linux/m68k <linux-m68k@vger.kernel.org>
Subject: Re: [PATCH] m68k: Fix atarimouse init
Date: Mon, 29 Dec 2008 11:57:57 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.0812291151200.20983@anakin> (raw)
In-Reply-To: <alpine.DEB.1.00.0812282252230.10733@zirkon.biophys.uni-duesseldorf.de>
On Sun, 28 Dec 2008, Michael Schmitz wrote:
> following up on Geert's report that atarimouse does fail to load as a module
> (with ENODEV), here's the fix.
>
> Brown paper bag, well and truely. Got the semantics of the atari_keyb_init
> return reversed (not that atari_keyb_init ever returns anything but success, but
> that's for another day).
>
> I still get no mouse events in either /dev/input/mice or .../mouse0, though. I
> suspect the mouse open hook never gets called. Same bug might affect amimouse
> (though the open function does do the full hardware setup there).
Thanks, we're making progress :-)
I get events from /dev/input/mouse0 and /dev/input/mice (atari_defconfig).
The kernel says (ARAnyM, windowed mode):
| input: Atari mouse as /devices/virtual/input/input1
| Reseting weird mouse packet: 942, 379, 0
| Reseting weird mouse packet: 943, 379, 0
| Reseting weird mouse packet: 945, 378, 0
| Reseting weird mouse packet: 948, 378, 0
| Reseting weird mouse packet: 956, 376, 0
When running X under ARAnyM (depth 16), some shortcomings show up:
- up and down are interchanged (works fine when rolling the mouse over the
bottom surface of the table --- old arabic map style ;-)
- the left and right mouse button are interchanged
- the middle mouse button is dead
Please put a `---' here, so `git am' will strip the signature and the diffstat.
> Michael
>
> drivers/input/mouse/atarimouse.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/input/mouse/atarimouse.c b/drivers/input/mouse/atarimouse.c
> index a57143c..1b5f4dd 100644
> --- a/drivers/input/mouse/atarimouse.c
> +++ b/drivers/input/mouse/atarimouse.c
> @@ -118,7 +118,7 @@ static int __init atamouse_init(void)
> if (!MACH_IS_ATARI || !ATARIHW_PRESENT(ST_MFP))
> return -ENODEV;
>
> - if (!atari_keyb_init())
> + if (atari_keyb_init())
> return -ENODEV;
>
> atamouse_dev = input_allocate_device();
>
> Signed-off-by: Michael Schmitz <schmitz@debian.org>
Please put the SoB just below the changelog, else `git am' will strip it off.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2008-12-29 10:57 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20081217165557.b4898a4b.sfr@canb.auug.org.au>
2008-12-17 8:18 ` linux-next: boot-params tree build failure Geert Uytterhoeven
2008-12-21 11:12 ` [PATCH] m68k: Kill several external declarations in source files (was: Re: linux-next: boot-params tree build failure) Geert Uytterhoeven
2008-12-21 22:21 ` Rusty Russell
2008-12-22 7:30 ` Geert Uytterhoeven
2008-12-28 22:00 ` [PATCH] m68k: Fix atarimouse init Michael Schmitz
2008-12-29 10:57 ` Geert Uytterhoeven [this message]
2008-12-30 9:18 ` Petr Stehlik
2009-01-02 0:27 ` Michael Schmitz
2009-01-02 0:12 ` Michael Schmitz
2009-01-02 9:42 ` Andreas Schwab
2009-01-02 10:20 ` Petr Stehlik
2009-01-02 22:10 ` Michael Schmitz
2009-01-03 5:53 ` Petr Stehlik
2009-01-03 6:15 ` Petr Stehlik
2009-01-03 7:23 ` Michael Schmitz
2009-01-03 8:16 ` Petr Stehlik
2009-01-04 3:12 ` Michael Schmitz
2009-01-04 7:34 ` Petr Stehlik
2009-01-04 7:15 ` [PATCH] m68k: Add Eiffel PS/2 support for Atari mouse driver Michael Schmitz
2009-01-04 7:41 ` Petr Stehlik
2009-01-04 21:50 ` Michael Schmitz
2009-01-04 22:10 ` Petr Stehlik
2009-01-05 1:11 ` Michael Schmitz
2009-01-05 1:32 ` [PATCH] m68k: Add Eiffel PS/2 support for Atari mouse driver (updated) Michael Schmitz
2009-01-03 8:45 ` [PATCH] m68k: Fix atarimouse init Andreas Schwab
2009-01-04 2:05 ` Michael Schmitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0812291151200.20983@anakin \
--to=geert@linux-m68k.org \
--cc=linux-m68k@vger.kernel.org \
--cc=schmitz@biophys.uni-duesseldorf.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox