This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x tsc2007.c bug

Other Parts Discussed in Thread: TSC2007

 i use /drivers/input/touchscreen/tsc2007.c with am335x, but it looks like this. i do not know why it happens.

 

static inline int tsc2007_xfer(struct tsc2007 *tsc, u8 cmd)

{

..........

data = i2c_smbus_read_word_data(tsc->client, cmd);/*here is the bug.*/

............

}

as we know, the data will be sent after the ack after slave address, but here we received the ack but then data disappeared!!!!!