linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: H Hartley Sweeten
	<hartleys-3FF4nKcrg1dE2c76skzGb0EOCMrvLtNR@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Linux I2C <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Dmitry Torokhov
	<dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [Q] i2c-taos-evm bus driver
Date: Tue, 9 Feb 2010 21:42:52 +0100	[thread overview]
Message-ID: <20100209214252.2a01f010@hyperion.delvare> (raw)
In-Reply-To: <BD79186B4FD85F4B8E60E381CAEE190902152FBE-KURmP/Qoe8Pmp66j18f85VaTQe2KTcn/@public.gmane.org>

Hi Hartley,

On Tue, 9 Feb 2010 11:38:37 -0500, H Hartley Sweeten wrote:
> On Tuesday, February 09, 2010 1:17 AM, Jean Delvare wrote:
> > No, it works reasonably fine. I was using it myself no later than one
> > month ago. Out of curiosity, with which exact evaluation module do you
> > plan to use it?
> 
> I'm not actually...
> 
> I am trying to figure out how a serio driver actually gets "hooked" to a
> serial port.  The i2c-taos-evm driver looked simple enough to play with
> in order to figure it out.  I was trying to follow the Documentation in
> order to use it and ran into the issue below.

OK... but please keep in mind that you won't be able to use this driver
without supported hardware. The driver will not bind to the serial port
if it doesn't detect a supported device.

> (...)
> Do you know if there is a way to make the connection in kernel?

I suppose this is possible from a pure code perspective, but I can't
see why one would want to do that. The kernel has no idea what is
connected to the serial ports: devices on the serial port can't be
reliably nor safely probed. This is why we rely on user-space to
declare which device is connected to which port, based on the
assumption that the user knows what he or she is doing.

> Also, do you know if there is any information on the serio stuff
> available anywhere?  Other than just reading the kernel source I
> have not been able to locate anything.

I seem to remember I hit the exact same problem back when I wrote the
i2c-taos-evm driver. I ended up reading the source code of other serial
device drivers and used them as an example. It was enough to get things
to work, but I won't claim I understood all of serio... just enough to
do what I needed back then.

Maybe Dmitry Torokhov (Cc'd) will be more helpful than me.

-- 
Jean Delvare

  parent reply	other threads:[~2010-02-09 20:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BD79186B4FD85F4B8E60E381CAEE190902152F0E@mi8nycmail19.Mi8.com>
     [not found] ` <BD79186B4FD85F4B8E60E381CAEE190902152F0E-KURmP/Qoe8Pmp66j18f85VaTQe2KTcn/@public.gmane.org>
2010-02-09  8:16   ` [Q] i2c-taos-evm bus driver Jean Delvare
2010-02-09 16:38     ` H Hartley Sweeten
     [not found]       ` <BD79186B4FD85F4B8E60E381CAEE190902152FBE-KURmP/Qoe8Pmp66j18f85VaTQe2KTcn/@public.gmane.org>
2010-02-09 20:42         ` Jean Delvare [this message]
     [not found]           ` <20100209214252.2a01f010-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2010-02-11 17:12             ` H Hartley Sweeten
     [not found]               ` <BD79186B4FD85F4B8E60E381CAEE190902153420-KURmP/Qoe8Pmp66j18f85VaTQe2KTcn/@public.gmane.org>
2010-02-11 17:43                 ` Dmitry Torokhov

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=20100209214252.2a01f010@hyperion.delvare \
    --to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
    --cc=dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=hartleys-3FF4nKcrg1dE2c76skzGb0EOCMrvLtNR@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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;
as well as URLs for NNTP newsgroup(s).