Skip to content

at24 eeprom isn't working #16

Closed
Closed
@jk-ozlabs

Description

@jk-ozlabs

Looks like we get NAKs from the device:

root@palmetto:/sys/bus/i2c/devices/0-0050# hexdump -C eeprom 
hexdump: eeprom: Connection timed out
root@palmetto:/sys/bus/i2c/devices/0-0050# dmesg -c
i2c_aspeed 1e78a000.i2c: state[0], SCL[1], SDA[1], BUS[0]
i2c_aspeed 1e78a000.i2c: ast_i2c_do_byte_xfer 
i2c_aspeed 1e78a000.i2c: M cnt -1, xf len 2 
i2c_aspeed 1e78a000.i2c:  writeing 2 bytes to 0x50
i2c_aspeed 1e78a000.i2c: M clear isr: AST_I2CD_INTR_STS_TX_NAK = 2
i2c_aspeed 1e78a000.i2c: NAK error
i2c_aspeed 1e78a000.i2c: send stop 
i2c_aspeed 1e78a000.i2c: M clear isr: AST_I2CD_INTR_STS_NORMAL_STOP = 10
i2c_aspeed 1e78a000.i2c: end xfer ret = -11, xfer mode[0]
at24 0-0050: read 128@0 --> -121 (147715)
i2c_aspeed 1e78a000.i2c: state[0], SCL[1], SDA[1], BUS[0]
i2c_aspeed 1e78a000.i2c: ast_i2c_do_byte_xfer 
i2c_aspeed 1e78a000.i2c: M cnt -1, xf len 2 
i2c_aspeed 1e78a000.i2c:  writeing 2 bytes to 0x50
i2c_aspeed 1e78a000.i2c: M clear isr: AST_I2CD_INTR_STS_TX_NAK = 2
i2c_aspeed 1e78a000.i2c: NAK error
i2c_aspeed 1e78a000.i2c: send stop 
i2c_aspeed 1e78a000.i2c: M clear isr: AST_I2CD_INTR_STS_NORMAL_STOP = 10
i2c_aspeed 1e78a000.i2c: end xfer ret = -11, xfer mode[0]
at24 0-0050: read 128@0 --> -121 (147717)
i2c_aspeed 1e78a000.i2c: state[0], SCL[1], SDA[1], BUS[0]
i2c_aspeed 1e78a000.i2c: ast_i2c_do_byte_xfer 
i2c_aspeed 1e78a000.i2c: M cnt -1, xf len 2 
i2c_aspeed 1e78a000.i2c:  writeing 2 bytes to 0x50
i2c_aspeed 1e78a000.i2c: M clear isr: AST_I2CD_INTR_STS_TX_NAK = 2
i2c_aspeed 1e78a000.i2c: NAK error
i2c_aspeed 1e78a000.i2c: send stop 
i2c_aspeed 1e78a000.i2c: M clear isr: AST_I2CD_INTR_STS_NORMAL_STOP = 10
i2c_aspeed 1e78a000.i2c: end xfer ret = -11, xfer mode[0]
at24 0-0050: read 128@0 --> -121 (147719)

Dynamic debugging config:

$ echo 'module i2c_aspeed +p' > /sys/kernel/debug/dynamic_debug/control
$ echo 'func at24_eeprom_read +p' > /sys/kernel/debug/dynamic_debug/control

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions