mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shaun Jackman <sjackman@gmail.com>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: Elo touch panel
Date: Tue, 7 Feb 2006 16:41:16 -0700	[thread overview]
Message-ID: <7f45d9390602071541n65693ae5m7428d59dedcd5ae5@mail.gmail.com> (raw)
In-Reply-To: <20060207081415.GA6731@suse.cz>

On 2/7/06, Vojtech Pavlik <vojtech@suse.cz> wrote:
> On Mon, Feb 06, 2006 at 07:30:26PM -0700, Shaun Jackman wrote:
...
> > I then run...
> >       $ inputattach -elo /dev/ttyS3
> > .. at which point dmesg says...
> >       serio: Serial port ttyS3
> > but it never gives a message indicating that the Elo driver has been
> > attached to ttyS3. Is there anything else I must configure?
>
> Try to look at /proc/bus/input/devices. The elo_connect() function
> should get called at the point the port is created. Unfortunately, I
> never could test this driver, because I don't have any touchscreens
> anymore (ever had one and it broke when I was moving). So there may be
> problems in the driver. But I believe others had some success running
> it.
>
> Looking at the driver, one will probably need to set the panel type in
> inputattach ...

There's a bug in inputattach. The SERIO_RS232 constant is completely
mucking the bits that specify the protocol.

--- inputattach.c-      2006-02-07 14:37:04.000000000 -0700
+++ inputattach.c       2006-02-07 16:22:07.000000000 -0700
@@ -455,7 +455,7 @@
                return 1;
        }

-       devt = SERIO_RS232 | input_types[type].type | (id << 8) | (extra << 16);
+       devt = input_types[type].type | (id << 8) | (extra << 16);

        if(ioctl(fd, SPIOCSTYPE, &devt)) {
                fprintf(stderr, "inputattach: can't set device type\n");

Cheers,
Shaun

APPENDIX A

You probably know this better than I do, but the .type above is
misnamed. It should really be .proto. It's impossible, as far as I can
tell, to specify the type (like SERIO_RS232) with a SPIOCSTYPE call.

       reply	other threads:[~2006-02-07 23:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7f45d9390602061830k6b984ban6fb302a3089cac6c@mail.gmail.com>
     [not found] ` <20060207081415.GA6731@suse.cz>
2006-02-07 23:41   ` Shaun Jackman [this message]
2006-02-08  8:51     ` Vojtech Pavlik

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=7f45d9390602071541n65693ae5m7428d59dedcd5ae5@mail.gmail.com \
    --to=sjackman@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vojtech@suse.cz \
    /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

all inboxes | Powered by JetHome®