From: "Matthias Zacharias" Date: Mon, 22 Nov 2010 09:24:18 +0000 Subject: [lm-sensors] Need help to fix some issues with the linux driver Message-Id: <4CEA44D2020000AA00007F74@center.bmk-electronics.de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1093183707339752129==" List-Id: To: lm-sensors@vger.kernel.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --===============1093183707339752129== Content-Type: multipart/alternative; boundary="=__Part2A0781D2.2__=" This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part2A0781D2.2__= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello mailing list, =20 we have to use the linux driver =22i2c-gpio=22 because the =22i2c-at91=22 = is marked as =22BROKEN=22 and for our application it can as well not be used. =20 Here a brief description of the application: =20 AT91SAM9261 based embedded system running kernel 2.6.25.4, with Atmel and our own BSP patches. This system uses both SPI interfaces, one USART (for console), MMC, Sound on SPI and SSC, digital poti for contrast control and the an chip Frambuffer for a monochrome LCD (QVGA). =20 On the TWI interface are attached:=20 the AT24C04 SMB EEPROM, (=40 0x50) two LM84 Temperature sensors (=40 0x18, 0x19) and the Infrared temperature sensor MLX90614 manfactured by MELEXIS. (=40 0x5A) Note: The LM84 sensors are not yet operated by the linux kernel. =20 Now the description of the issue we have with the I2C subsystem: =20 1. the EEPROM is working fine with =22i2c-at91=22 and the =22i2c-gpio=22 modules 2. for IR-Sensor MLX90614, a hwmon class linux driver was implemented by Linutronix on our demand. This driver works fine but delivers sporadic the error message =22i2c-adapter i2c-0: sendbytes: NAK bailout.=22= =20 (this message is thrown by the =22i2c-algo-bit=22 driver), or invalid temperature values ( near 0xFFFF). The invalid temperature values and as well the error message appear as reponse on bus timeout situations which are not correctly handled by the linux driver. This we find out using a I2C analyzer. In our opinion these issues come while the i2c communication is disturbed by other tasks and/or interrupt service routines (ISR) which extend the SMB clock over the permitted timeouts, leaving the IR-Sensor in an undefined or erroneous ( http://dict.leo.org/ende?lp=3Dende&p=3DCi4HO3kMAA&search=3Derroneous&trestr= =3D0x8004 ) state. =20 The address mentioned in the driver source =22Haavard Skinnemoen =22 invalid (unknown) =20 Please let us now if somebody can help in fixing the i2c-gpio, or give us an other name who can help. =20 Thank you. With best regards =20 =20 Matthias Zacharias Dipl.-Elektroingenieur (Univ)=20 Projektleiter Entwicklung=20 BMK professional electronics GmbH =C2=B7 Werner-von-Siemens-Str. 6 =C2=B7 = D-86159 Augsburg Tel: +49(0)821/20788-715=C2=B7 Fax: +49(0)821/20788-721=C2=B7 www.bmk-group= de -------------------- BMK electronic solutions GmbH Werner-von-Siemens-Str. 6, Eingang 18 f D-86159 Augsburg Tel. +49 (0) 821 / 207 88 - 700 Fax +49 (0) 821 / 207 88 - 721 info=40bmk-solutions.de Gesch=C3=A4ftsf=C3=BChrer: Dipl.-oec. Alois Kn=C3=B6ferle Sitz: Augsburg HR-Nr.: B21197 --------------------- Diese E-mail kann vertrauliche Informationen enthalten. Falls Sie diese E-Mail irrt=C3=BCmlich erhalten haben, informieren Sie bitte unverz=C3=BCgl= ich den Absender und l=C3=B6schen Sie diese E-Mail von jedem Rechner, auch von den Mailservern. Jede Verbreitung des Inhalts, auch die teilweise Verbreitung, ist in diesem Fall untersagt. Au=C3=9Fer bei Vorsatz oder = grober Fahrl=C3=A4ssigkeit schliessen wir jegliche Haftung f=C3=BCr Verluste oder = Sch=C3=A4den aus, die durch Viren befallene Software oder E-Mails verursacht werden. This e-mail may contain confidential information. If you received this e-mail in error, please contact the sender and delete this e-mail from your computer, including your mailservers. Any dissemination, even partly, is prohibited. Except in case of gross negligence or wilful misconduct we accept no liability for any loss or damage caused by software or e-mail viruses. --=__Part2A0781D2.2__= Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Description: HTML
Hello mailing list,
 
we have to use the linux driver "i2c-gpio" because the "i2c-at91" is = marked as "BROKEN" and for our application it can as well not be = used.
 
Here a brief description of the application:
 
AT91SAM9261 based embedded system running kernel 2.6.25.4, with Atmel = and our own BSP patches. This system uses both SPI interfaces, one USART = (for console),  MMC, Sound on SPI and SSC, digital poti = ;for contrast control and the an chip Frambuffer for a monochrome LCD = (QVGA).
 
On the TWI interface are attached:
    the AT24C04 SMB EEPROM,   (@ 0x50)
    two LM84 Temperature sensors  (@ 0x18, = 0x19)
    and the Infrared temperature sensor MLX90614 = manfactured by MELEXIS. (@ 0x5A)
Note: The LM84 sensors are not yet operated by the linux kernel.
=
 
Now the description of the issue we have with the I2C subsystem:
=
 
1. the EEPROM is working fine with "i2c-at91" and the "i2c-gpio" = modules
2. for IR-Sensor MLX90614, a hwmon class linux driver was = implemented by Linutronix on our demand. This driver works fine but = delivers sporadic the error message "i2c-adapter i2c-0: sendbytes: NAK = bailout."  (this message is thrown by the  "i2c-algo-bi= t" driver), or invalid temperature values ( near 0xFFFF). The invalid = temperature values and as well the error message appear as reponse on bus = timeout situations which are not correctly handled by the linux = driver. This we find out using a I2C analyzer. In our opinion these issues = come while the i2c communication is disturbed by other tasks and/or = interrupt service routines (ISR) which extend the SMB clock over the = permitted timeouts, leaving the IR-Sensor in an undefined or erroneous state.<= /DIV>
 
The address mentioned in the driver source "Haavard Skinnemoen <hskinnemoen@atmel.com>" = invalid (unknown)
 
Please let us now if somebody can help in fixing the i2c-gpio, = or give us an other name who can help.
 
Thank you.
With best regards
 
 
Matthias Zacharias
Dipl.-Elektroingenieur (Univ) 
Projekt= leiter Entwicklung
 

BMK= professional electronics GmbH =C2=B7 Werner-von-Siemens-Str. = 6 =C2=B7 D-86159 Augsburg

Tel: = +49(0)821/20788-715=C2=B7 Fax: +49(0)821/20788-721=C2=B7 www.bmk-group.de=



--------------------

BMK electronic solutions GmbH

Werner-von-Siemens-Str. 6, Eingang 18 f

D-86159 Augsburg

Tel. +49 (0) 821 / 207 88 - 700

Fax +49 (0) 821 / 207 88 - 721

info@bmk-solutions.de

Geschäftsführer: Dipl.-oec. Alois = Knöferle

Sitz: Augsburg

HR-Nr.: B21197

---------------------

Diese E-mail kann vertrauliche Informationen=20 enthalten. Falls Sie diese E-Mail irrtümlich erhalten haben, = informieren=20 Sie bitte unverzüglich den Absender und löschen Sie diese = E-Mail von=20 jedem Rechner, auch von den Mailservern. Jede Verbreitung des = Inhalts,=20 auch die teilweise Verbreitung, ist in diesem Fall untersagt. = Außer bei=20 Vorsatz oder grober Fahrlässigkeit schliessen wir jegliche = Haftung für=20 Verluste oder Schäden aus, die durch Viren befallene Software = oder=20 E-Mails verursacht werden.

This e-mail may contain confidential information= . If=20 you received this e-mail in error, please contact the sender and = delete=20 this e-mail from your computer, including your mailservers. Any=20 dissemination, even partly, is prohibited. Except in case of = gross=20 negligence or wilful misconduct we accept no liability for any loss = or=20 damage caused by software or e-mail viruses.

--=__Part2A0781D2.2__=-- --===============1093183707339752129== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors --===============1093183707339752129==--