LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-02-2009, 10:19 AM   #1
mincher
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
I2C Switch / bus interlocking


I have an embedded system using multiple I2C busses and on each of those busses are several PDA9546A switches. Does anyone have any efficient solutions to maintaining switch coherency when devices on the bus are accessed by multiple clients? Linux seems to want to use the /sys/class interface, but without some sort of mutual exclusion to each of the switches and devices on the segments that they control there will definitely be problems.

Should I create a semaphore (semget) for each switch and have the clients bracket accesses to devices on the segments of that switch with semop calls?

Or maybe I should create a semaphore for each bus?

Thanks,
D i c k
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not set I2C Bus Busy bit to zero mist_4u Linux - Newbie 2 10-15-2009 12:00 AM
LM Sensors Help, Can't access procfs/sysfs file Unable to find i2c bus information; Whiskers Linux - Software 16 11-03-2008 04:58 PM
How to identify files in /sys/bus/i2c/devices/ koyi Linux - Hardware 0 07-18-2005 01:55 AM
torsmo error scandir for /sys/bus/i2c/devices/: No such file or directory KaZiber Linux - General 2 04-17-2005 02:41 AM
Unable to find i2c bus information ? OneManArmy Debian 1 05-16-2004 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:16 PM.

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