On Thu, Nov 12, 2020 at 07:49:41AM +0200, Moshe Shemesh wrote: > From: Vladyslav Tarasiuk <vladysl...@nvidia.com> > > DSFP is a new cable module type, which EEPROM uses memory layout > described in CMIS 4.0 document. Use corresponding standard value for > userspace ethtool to distinguish DSFP's layout from older standards. > > Add DSFP module ID in accordance to SFF-8024. > > DSFP module memory can be flat or paged, which is indicated by a > flat_mem bit. In first case, only page 00 is available, and in second - > multiple pages: 00h, 01h, 02h, 10h and 11h.
You are simplifying quite a bit here, listing just these pages. When i see figure 8-1, CMIS Module Memory Map, i see many more pages, and banks of pages. The current API is getting more and more strand to support SFP EEPROMs. We really do need to think of a new API, and it seems like now is a good time to do it, in order to support these devices. Andrew