Hi Finn, Thanks for your review! Op wo 13 nov. 2019 om 00:18 schreef Finn Thain <fthain@xxxxxxxxxxxxxxxxxxx>: > > On Tue, 12 Nov 2019, Kars de Jong wrote: > > +#define ESP_UID_REV 0x07 /* ESP revision bitmask */ > > This is unused. Yes, but it was already there, I just moved it. I prefer to leave it in, since it describes the register layout. > > +#define ESP_UID_FAM 0xf8 /* ESP family bitmask */ > > + > > +#define ESP_FAMILY(uid) (((uid) & ESP_UID_FAM) >> 3) > > + > > The ESP_UID_FAM symbol only appears here. I don't think it adds value. OK, I can just change the macro to: #define ESP_FAMILY(uid) (((uid) & 0xf8) >> 3) > > +/* Values for the ESP family */ > > I would omit that comment. I will change it to "Values for the ESP family bits" as you suggested in the next mail. > > #define ESP_UID_F100A 0x00 /* ESP FAS100A */ > > #define ESP_UID_F236 0x02 /* ESP FAS236 */ > > -#define ESP_UID_REV 0x07 /* ESP revision */ > > -#define ESP_UID_FAM 0xf8 /* ESP family */ > > +#define ESP_UID_HME 0x0a /* FAS HME */ > > +#define ESP_UID_FSC 0x14 /* NCR/Symbios Logic FSC */ > > > > Is there a distinction between the chip's uid and the chip's family? Yes, the complete UID also includes the revision. The old driver had cases where the family code was the same but the revision was different. Kind regards, Kars.