#3479 BLOC Untriag: i2c timeout hang
Zarro Boogs per Child
bugtracker at laptop.org
Wed Oct 3 17:51:02 EDT 2007
#3479: i2c timeout hang
----------------------+-----------------------------------------------------
Reporter: cjb | Owner: dilinger
Type: defect | Status: new
Priority: blocker | Milestone: Untriaged
Component: kernel | Version:
Resolution: | Keywords:
Verified: 0 |
----------------------+-----------------------------------------------------
Comment(by dilinger):
For posterity, here's the kernel code:
{{{
#define SMBCLR (0xc000<<16)
outl(SMBCLR, gpio_base + GPIO_OUTPUT_AUX1);
outl(SMBCLR, gpio_base + GPIO_OUTPUT_AUX2);
outl(SMBCLR, gpio_base + GPIO_INPUT_AUX1);
outl(SMBCLR, gpio_base + GPIO_OUTPUT_VAL);
outl(SMBCLR, gpio_base + GPIO_OUTPUT_ENABLE);
for (x=0; x<8; x++) {
udelay(5);
outl(0x4000<<16, gpio_base + GPIO_OUTPUT_VAL);
udelay(5);
outl(0x4000, gpio_base + GPIO_OUTPUT_VAL);
udelay(5);
}
outl(SMBCLR, gpio_base + GPIO_INPUT_AUX1);
outl(SMBCLR, gpio_base + GPIO_OUTPUT_AUX1);
}}}
However, it breaks things badly. Not worth dealing with.
--
Ticket URL: <https://dev.laptop.org/ticket/3479#comment:14>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list