Marek Vasut [mailto:ma...@denx.de] > Sent: Friday, June 12, 2020 8:05 AM [...] > > The real data (16-bit) would be inserted a dummy bit, > > and store the 17-bit to efuse offset 0x7d. Therefore, when > > reading the 17-bit data from efuse, we have to remove the > > dummy to get the real data. > > Ah, hmm, then let's use u32 type and be done with it. That solves the > typecasts and is safe. Would that work ?
The unit of PHY data is 2-byte, so I think I have to convert it. void ocp_reg_write(struct r8152 *tp, u16 addr, u16 data); Best Regards, Hayes