LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* communication with i2c client
@ 2006-08-24 13:12 Ladislav Klenovič
  2006-08-25  1:54 ` Frank
  0 siblings, 1 reply; 4+ messages in thread
From: Ladislav Klenovič @ 2006-08-24 13:12 UTC (permalink / raw)
  To: linuxppc-embedded

Hi,
I've create an i2c client and my questions is how to access it from use=
rspace=2E This client is sitttng on adapter that  I was able to access =
via /dev interface=2E After the client were successfuly loaded and dete=
cted,
ioctl(fd,I2C_SLAVE,=2E=2E=2E) and read/write functions didn't work and =
 error messages like "device busy" or "ioctl error" have occured=2E Als=
o my debug messages from i2c client didn't arise when I am accessing=20
device only adapter's=2E
How to (standardly) access a an i2c client?=20
Do I need to create an ioctl interface or exports some helper function =
for access it from user space and also from kernel space? =20

regards,
Ladislav=2E

^ permalink raw reply	[flat|nested] 4+ messages in thread
* communication with i2c client
@ 2006-08-24 13:15 Ladislav Klenovič
  0 siblings, 0 replies; 4+ messages in thread
From: Ladislav Klenovič @ 2006-08-24 13:15 UTC (permalink / raw)
  To: linuxppc-embedded

Hi,
I've create an i2c client and my questions is how to access it from use=
rspace=2E This client is sitttng on adapter that  I was able to access =
via /dev interface=2E After the client were successfuly loaded and dete=
cted,
ioctl(fd,I2C_SLAVE,=2E=2E=2E) and read/write functions didn't work and =
 error messages like "device busy" or "ioctl error" have occured=2E Als=
o my debug messages from i2c client didn't arise when I am accessing=20
device only adapter's=2E
How to (standardly) access a an i2c client?=20
Do I need to create an ioctl interface or exports some helper function =
for access it from user space and also from kernel space? =20

regards,
Ladislav=2E

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: communication with i2c client
@ 2006-08-25  7:14 Yong Wang
  0 siblings, 0 replies; 4+ messages in thread
From: Yong Wang @ 2006-08-25  7:14 UTC (permalink / raw)
  To: lk99336; +Cc: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

I think you should check the i2c drivers first.
Only the i2c drivers support the slave mode, the user space application can
access the i2c device.
The i2c drivers should modify the mode register of i2c controller to switch
the mode.

[-- Attachment #2: Type: text/html, Size: 267 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-25  7:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24 13:12 communication with i2c client Ladislav Klenovič
2006-08-25  1:54 ` Frank
  -- strict thread matches above, loose matches on Subject: below --
2006-08-24 13:15 Ladislav Klenovič
2006-08-25  7:14 Yong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox