The device is BCM20791. Please contact Aaron Smith (aarons@xxxxxxxxxxxx) for evaluation.Though googling the device, I can't find the device.
By the way, the existing handling of 10-bit address in the patch you intended to delete does not work. You'll need to fix that before you can test with the device successfully.
For the write operation, it's a easy fix:
@@ -410,25 +408,16 @@ static s32 pch_i2c_writebytes(struct i2c_adapter *i2c_adap,
}
if (msgs->flags& I2C_M_TEN) {
- addr_2_msb = ((addr& I2C_MSB_2B_MSK)>> 7);
+ addr_2_msb = ((addr& I2C_MSB_2B_MSK)>> 7)& 0x06;
For the read operation, static s32 pch_i2c_readbytes(), you'll need to do a write followed by a restart and a read... please refer to the i2c spec...
Regards,