rmi2c:[1642] Reg_GetBusActive mode=SLAVE rmi2c:[194]:i2c_wait_bus_not_busy: entry (CON 0x8000 STATRAW 0x0) rmi2c:[227] i2c_wait_bus_not_busy: (CTRREG 0x8000 STSREG 0x0) rmi2c:[250] i2c_wait_bus_not_busy: return 0 (CTRREG 0x8000 STSREG 0x0) rmi2c:Reg_GetBusActive: bus is free rmi2c:[926] SlaveIsThread: Bus is free, enabling i2c module. own addr=0x45 rmi2c:[596] omap_wait_status: mode= entry: CON=0x8000 IE set= 0x29e STAT_RAW= 0x0 rmi2c:[632] omap_wait_status: AM335x_I2C_AAS slave state=10 STAT=0x1600 RAW=0x1600 rmi2c:[180] handleSlave:entry: STATRAW=0x1600 rmi2c:[307] handleSlave: state = I2C_SLAVE_IDLE: TX started (BB|XUDF) but XRDY not on yet. setting mode I2C_SLAVE_TX rmi2c:[1626] Reg_InterruptsClear. AM335x_I2C_IRQSTAT_RAW= 0x1610 rmi2c:[1627] Reg_InterruptsClear. Writing to AM335x_I2C_STAT 0x0 rmi2c:[638] omap_wait_status: done handleSlave rmi2c:[671] omap_wait_status: done rmi2c: [958] SlaveIsThread: gotIntr[I2C_INDEX_SLAVE]==1 - released from omap_wait_status() rmi2c:[963] I2C Slave MaxIntr:1 rmi2c: [1002] SlaveIsThread: end while: Slave TX STAT=0x1610 RAW=0x1610 rmi2c:[596] omap_wait_status: mode= entry: CON=0x8000 IE set= 0x29e STAT_RAW= 0x1610 rmi2c:[632] omap_wait_status: AM335x_I2C_AAS slave state=12 STAT=0x1610 RAW=0x1610 rmi2c:[180] handleSlave:entry: STATRAW=0x1610 rmi2c:[388] handleSlave: I2C_SLAVE_TX rmi2c:[410] handleSlave: I2C_SLAVE_TX slave TX : XRDY/XUDF rmi2c:[433] handleSlave: state = I2C_SLAVE_TX: SlaveTxSentBytes=1 data=0x36(6) <<<<<<<<<<<<<<<<<<<<<<<<< {PIL} 1st byte ok rmi2c:[1626] Reg_InterruptsClear. AM335x_I2C_IRQSTAT_RAW= 0x1610 rmi2c:[1627] Reg_InterruptsClear. Writing to AM335x_I2C_STAT 0x10 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< clear XRDY rmi2c:[638] omap_wait_status: done handleSlave rmi2c:[671] omap_wait_status: done rmi2c: [958] SlaveIsThread: gotIntr[I2C_INDEX_SLAVE]==1 - released from omap_wait_status() rmi2c:[963] I2C Slave MaxIntr:1 rmi2c: [1002] SlaveIsThread: end while: Slave TX STAT=0x1600 RAW=0x1600 rmi2c:[596] omap_wait_status: mode= entry: CON=0x8000 IE set= 0x29e STAT_RAW= 0x1600 rmi2c:[632] omap_wait_status: AM335x_I2C_AAS slave state=12 STAT=0x1600 RAW=0x1600 rmi2c:[180] handleSlave:entry: STATRAW=0x1600 rmi2c:[388] handleSlave: I2C_SLAVE_TX rmi2c:[410] handleSlave: I2C_SLAVE_TX slave TX : XRDY/XUDF rmi2c:[433] handleSlave: state = I2C_SLAVE_TX: SlaveTxSentBytes=2 data=0x37(7) <<<<<<<<<<<<<<<<<<<<<<<<<<<<< {PIL} 2nd byte ok rmi2c:[1626] Reg_InterruptsClear. AM335x_I2C_IRQSTAT_RAW= 0x1200 rmi2c:[1627] Reg_InterruptsClear. Writing to AM335x_I2C_STAT 0x0 <<<<<<<<<<< not clearing anything rmi2c:[638] omap_wait_status: done handleSlave rmi2c:[671] omap_wait_status: done rmi2c: [958] SlaveIsThread: gotIntr[I2C_INDEX_SLAVE]==1 - released from omap_wait_status() rmi2c: [1002] SlaveIsThread: end while: Slave TX STAT=0x1200 RAW=0x1200 rmi2c:[596] omap_wait_status: mode= entry: CON=0x8000 IE set= 0x29e STAT_RAW= 0x1200 <<<<<<<<<<<<< but now, only BB and AAS set rmi2c:[632] omap_wait_status: AM335x_I2C_AAS slave state=12 STAT=0x1200 RAW=0x1200 rmi2c:[180] handleSlave:entry: STATRAW=0x1200 rmi2c:[388] handleSlave: I2C_SLAVE_TX rmi2c:[447] handleSlave: SLAVE TX ??? que? statreg=0x1200 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< nothing to handle since XDRY / XUDF both 0 rmi2c:[1626] Reg_InterruptsClear. AM335x_I2C_IRQSTAT_RAW= 0x1200 rmi2c:[1627] Reg_InterruptsClear. Writing to AM335x_I2C_STAT 0x0 rmi2c:[638] omap_wait_status: done handleSlave rmi2c:[671] omap_wait_status: done rmi2c: [958] SlaveIsThread: gotIntr[I2C_INDEX_SLAVE]==1 - released from omap_wait_status() rmi2c: [1002] SlaveIsThread: end while: Slave TX STAT=0x1200 RAW=0x1200