Re: [PATCH v4] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-30 Thread Tom Rini
On Thu, Oct 26, 2023 at 05:47:41AM +, Michel Alex wrote: > Calculate the maximum length of the buffer when writing > across the page boundary. If the buffer length (len) > exceeds the page boundary (pagesize), split it. Use this > length instead of comparing the length with the pagesize, > bec

[PATCH v4] misc: i2c_eeprom: consider pagesize when writing to eeprom

2023-10-26 Thread Michel Alex
Calculate the maximum length of the buffer when writing across the page boundary. If the buffer length (len) exceeds the page boundary (pagesize), split it. Use this length instead of comparing the length with the pagesize, because if the write start address (offset) is not at the beginning of a pa