All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Andrey Nechypurenko <andreynech@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Problem accesing I2C without using Linux kernel
Date: Sun, 19 Jun 2011 16:11:27 +0200	[thread overview]
Message-ID: <4DFE038F.202@domain.hid> (raw)
In-Reply-To: <BANLkTimdiUofRrXahOThW5C1RixQ-s5pMQ@mail.gmail.com>

On 06/19/2011 04:06 PM, Andrey Nechypurenko wrote:
>> Note that this mailing list is probably not the best place to ask your
>> question, since we mostly talk about Xenomai here, and your issue does
>> not seem to have anything to do with Xenomai.
> 
> I understand. Do you have an idea what list might be more appropriate
> for it? I did also post the same question to the BeagleBoard mail
> list.

Ok, maybe you will get better support there. There may also be some IRC
channel somewhere, where you can get a more interactive help.

>> Second stupid questions: are you sure all the clocks needed to get that
>> I2C module running are enabled?
> 
> The module works. I think kernel configured it properly because I can
> use user space utility for example i2cdetect and see my sensors
> detected on the bus. At the moment where I was trying to read the
> status I did not made any reconfiguration before. So my assumption was
> that the module is already configured properly and at least an attempt
> to read the status should succede.

To be sure of that, you would have to be sure that the clocks are not
disabled when the device is not opened. To check this, either check the
kernel sources, or try and open the i2c device, and keep it open before
you mmap /dev/mem


-- 
                                                                Gilles.


  reply	other threads:[~2011-06-19 14:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-19 13:16 [Xenomai-help] Problem accesing I2C without using Linux kernel Andrey Nechypurenko
2011-06-19 13:20 ` Gilles Chanteperdrix
     [not found]   ` <BANLkTinVUd-R1cpD+40MGZZckzGhwrqRvw@domain.hid>
2011-06-19 13:44     ` Gilles Chanteperdrix
2011-06-19 13:54       ` Gilles Chanteperdrix
2011-06-19 14:06       ` Andrey Nechypurenko
2011-06-19 14:11         ` Gilles Chanteperdrix [this message]
2011-06-19 14:21           ` Andrey Nechypurenko
2011-06-19 16:57             ` Gilles Chanteperdrix
2011-06-19 20:24               ` Andrey Nechypurenko
2011-06-20  0:00                 ` [Xenomai-help] Beagleboard Xenomai David Wiebe
2011-06-20  5:02                   ` [Xenomai-help] Compiling program with xenomai support David Wiebe
2011-06-20  7:14                     ` Gilles Chanteperdrix
2011-06-20  8:06                       ` David Wiebe
2011-06-20 11:13                         ` Gilles Chanteperdrix
2011-06-20 19:04                           ` David Wiebe

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=4DFE038F.202@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=andreynech@domain.hid \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.