Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-10-2005, 02:16 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
I2C device driver

Hi all

I have a device driver question and it isn't quite suitable in any other forums, so I post it here. Hope someone can point me to the right direction.

I'm trying to use the linux I2C driver to access a device on the I2C bus. I opened the device (in /dev/) with no problem. I also used ioctl to set the 7-bit device address without encountering any problem. However, whenever I use the read_word_data function to access an register of the device, I receive a "-EPERM" error.

Does anyone have any idea? Would like to know the cause of this error. I need help from someone who is familiar with the I2C driver. Or... at least, someone can point me to the right forum to post this question.

Thanks in advance.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Problems with i2c-dev. No more /dev/i2c-* em1l Fedora 0 10-28-2005 05:48 AM
Porting driver to 2.6.9 kernel. Stuck with i2c not using /proc fs anymore rschnall Linux - Software 2 08-14-2005 05:06 AM
device driver carthyc Linux - Newbie 1 07-07-2005 07:23 AM
I2C to external device ojschubert Linux - Newbie 1 03-20-2005 06:26 PM
I2C to external device ojschubert Linux - Hardware 0 02-08-2005 01:00 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration