From mboxrd@z Thu Jan 1 00:00:00 1970 From: alfred steele Subject: Re: [lm-sensors] Use the Linux I2C subsystem for a two wire interface protocol Date: Fri, 17 Jul 2009 16:21:48 -0500 Message-ID: <528f13590907171421m26bc67ecg8d0334d20365406f@mail.gmail.com> References: <528f13590907140925h7aa36452o60da32d3bf941241@mail.gmail.com> <528f13590907141358w17869b6fq450bf223e4f54687@mail.gmail.com> <4A5D6C0A.7030903@gmx.de> <528f13590907150722q2a91139bve72d65cbd555b8e9@mail.gmail.com> <4A5DEB12.3020602@cam.ac.uk> <528f13590907151032y30ae62beo486d4e1056219983@mail.gmail.com> <4A5E206F.8000001@cam.ac.uk> <528f13590907160913n73dcb4fcuf09f4946d7578793@mail.gmail.com> <528f13590907160929r1385c99el6c1ed16ca1b592d2@mail.gmail.com> <4A5F76A8.8080001@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A5F76A8.8080001-KWPb1pKIrIJaa/9Udqfwiw@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jonathan Cameron Cc: Michael Lawnick , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, LM Sensors List-Id: linux-i2c@vger.kernel.org Hi Jonathan, > that look about right are going down them. I had some misconfiguration the way i had registered the interrupt handler. A very naive question at this point. Wouldnt it be possible to "not" use a GPIO irq and bottom half and instead to simplify the driver to start with, use a synchronous read routine.? I know this may violate the kernel framework but... This is what i get on the console now $ cat /sys/class/hwmon/hwmon0/device/hwmon\:hwmon0/device/humidi ty1_input sht15 sht15: Command not acknowledged cat: read error: Input/output error ~$ cat /sys/class/hwmon/hwmon0/device/hwmon\:hwmon0/device/humidi ty1_input cat: read error: Timer expired root@freescale ~$ cat /sys/class/hwmon/hwmon0/device/hwmon\:hwmon0/device/humidi ty1_input Unbalanced enable for IRQ 0 WARNING: at kernel/irq/manage.c:174 enable_irq() [] (dump_stack+0x0/0x14) from [] (enable_irq+0x74/0xdc) [] (enable_irq+0x0/0xdc) from [] (sht15_update_vals+0x190/0x 2c8 [sht15]) r6:00000010 r5:cfdbf420 r4:cfe331e0 [] (sht15_update_vals+0x0/0x2c8 [sht15]) from [] (sht15_show _humidity+0x1c/0x130 [sht15]) [] (sht15_show_humidity+0x0/0x130 [sht15]) from [] (dev_attr _show+0x24/0x30) [] (dev_attr_show+0x0/0x30) from [] (sysfs_read_file+0xa8/0x 108) [] (sysfs_read_file+0x0/0x108) from [] (vfs_read+0xb4/0x144) [] (vfs_read+0x0/0x144) from [] (sys_read+0x44/0x70) r7:00000000 r6:00000000 r5:fffffff7 r4:cfea93c0 [] (sys_read+0x0/0x70) from [] (ret_fast_syscall+0x0/0x2c) r7:00000003 r6:4001da30 r5:beaa9ae0 r4:00002000 cat: read error: Timer expired