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 18:57:21 +0200	[thread overview]
Message-ID: <4DFE2A71.5060307@domain.hid> (raw)
In-Reply-To: <BANLkTi=RiME1P8vvx3imrq39gEmyZOJbDQ@mail.gmail.com>

On 06/19/2011 04:21 PM, Andrey Nechypurenko wrote:
>>> 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
> 
> Just tried your suggestion but unfortunately it does not change enything.
> 

There may be (at least) two possible reasons:
- the clocks are disabled, you need to check the kernel source to know
if that is the case;
- or the compiler generated a byte access to the 32 bits register, not
knowing the alignment of mmap return value, you need to send the
disassembly as I requested to know if that is the case.

-- 
                                                                Gilles.


  reply	other threads:[~2011-06-19 16:57 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
2011-06-19 14:21           ` Andrey Nechypurenko
2011-06-19 16:57             ` Gilles Chanteperdrix [this message]
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=4DFE2A71.5060307@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.