Yes, eeprom driver could help the requirement partially.
As Ed's comments on the patch, we still need the size in the
upper level such as IPMI command handler, to differentiate the error between
writing failed and writing out of the range, and return the correct complete
code.
发件人:Brad Bishop
<bradleyb@fuzziesquirrel.com>
发送时间:2020-11-25 23:36
主题:Re: Add size property of EEPROM device
收件人:"he.huang"<he.huang@linux.intel.com>,"ed"<ed@tanous.net>,"jae.hyun.yoo"<jae.hyun.yoo@linux.intel.com>,"vernon.mauery"<vernon.mauery@linux.intel.com>,"openbmc"<openbmc@lists.ozlabs.org>
抄送:
On Tue, 2020-11-24 at 15:31 +0800, he.huang wrote:
> The requirement comes from:
> When we write to the EEPROM we need the size to ensure that we won't
> write out of the range and return the correct complete code.
Don't the eeprom drivers prevent this?