Skip to contentSkip to conversation

I2C RTDM driver

Xenomai Matthias Schneider 1 participant 2 messages Jun 17, 2014 – Jun 25, 2014

lore
Share & tools
lore
#0 lore raw

Hi all,

in the spirit of

http://www.xenomai.org/pipermail/xenomai/2006-November/006455.html

I would like to contribute my I2C RTDM driver to xenomai and ask for a review. It is based on the Linux 3.14 i2c framework, porting the omap i2c driver (tested on beaglebone black).

The following points mentioned in the above post have been addressed:

* usage of existing linux kernel structures when available
* combined address+request command

* ahead-of-time allocation via special IOCTL

The framework itself is contained in a single file "rti2c-dev.c", while modifications to drivers when porting to rtdm should be minimal. A readme file is included in the patch as always,

thanks in advance for your comments,

Matthias Schneider
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Initial-i2c-commit.patch.gz
Type: application/x-gzip
Size: 20005 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140617/b68ffcf0/attachment.bin>

#1 lore raw

----- Original Message -----

Quoted 24 lines

From: Matthias Schneider <[email protected]>
To: "[email protected]" <[email protected]>
Cc:
Sent: Tuesday, June 17, 2014 8:15 PM
Subject: [Xenomai] I2C RTDM driver

Hi all,

in the spirit of

http://www.xenomai.org/pipermail/xenomai/2006-November/006455.html

I would like to contribute my I2C RTDM driver to xenomai and ask for a review. It is based on the Linux 3.14 i2c framework, porting the omap i2c driver (tested on
beaglebone black).

The following points mentioned in the above post have been addressed:

* usage of existing linux kernel structures when available
* combined address+request command

* ahead-of-time allocation via special IOCTL

Quoted 8 lines

The framework itself is contained in a single file "rti2c-dev.c", while modifications to
drivers when porting to rtdm should be minimal. A readme file is included in the patch as always,

thanks in advance for your comments,

Matthias Schneider

Please find attached an updated patch.
It fixes some problems when compiling as a module, when unloading the module and when being interrupted in rtdm_event_timedwait.

Regards,
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Initial-i2c-commit-no.2.patch.gz
Type: application/x-gzip
Size: 19957 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140625/dcdbcdec/attachment.bin>