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

2023-10-26 Thread Michel Alex
Hi Tom, > We don't need to promote the types to unsigned here do we? You are right, I will provide a new version of my patch where I will change all "unsigned int" 's to int's. Alex

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

2023-10-25 Thread Tom Rini
On Wed, Oct 25, 2023 at 07:59:05AM +, 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

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

2023-10-25 Thread Lothar Waßmann
Hi, On Wed, 25 Oct 2023 07:59:05 + 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, > becaus

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

2023-10-25 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