From: Jayaprakash Shanmugam <jayaprakashns@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: open() returns 0.
Date: Tue, 9 Aug 2005 20:30:27 +0530 [thread overview]
Message-ID: <17f142e1050809080053187f40@mail.gmail.com> (raw)
Hello All,
I have a 8270 based board running Linux 2.6. I am using the i2c
available on chip to read / write a i2c mux connected to it. When I
open the i2c device, it returns 0 (which shouldnt be) instead of the
file descriptor. The /proc/devices shows the i2c driver with major
89 is installed.
10:~# ls -l /dev/i2c-0
lrwxrwxrwx 1 root root 5 Jan 1 02:00 /dev/i2c-0 -> i2c/0
10:~# cat /dev/i2c-0
i2c-dev: i2c-0 reading 4096 bytes.
I2C xfer: read from 0xFFFF, flags 0x0001, 4096 bytes
I2C error: 0x3C04
cat: /dev/i2c-0: Input/output error
Any pointers on what could be wrong ?
Regards,
Jayaprakash.
next reply other threads:[~2005-08-09 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-09 15:00 Jayaprakash Shanmugam [this message]
2005-08-09 17:19 ` open() returns 0 Josh Boyer
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=17f142e1050809080053187f40@mail.gmail.com \
--to=jayaprakashns@gmail.com \
--cc=linuxppc-embedded@ozlabs.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.