• Benjamin Herrenschmidt's avatar
    [PATCH] ppc64: Fix G5 low level i2c code · e0e04bff
    Benjamin Herrenschmidt authored
    The code in pmac_low_i2c.c is a low level synchronous version of the i2c keywest
    driver for use by platform code early during boot or during sleep/wakeup cycles
    to communicate with some motherboard chips, typically clock chips.
    It wasn't used on g5 until now, which is good because it wasn't 64 bits clean :)
    
    This patch fixes it, and also remove the use of udelay() since it can be used for
    synchronizing the HW timebase, and so must operate when it's frozen (and our
    implementation of udelay uses that timebase).
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    e0e04bff
pmac_low_i2c.c 11.8 KB