ID: 459 - Fix reading FRU on Artesyn (Emerson) shelf manager, MF105.

Treat 0xC7 as an indication that requested data length in the
FRU read shall be decreased.
This commit is contained in:
Dmitry Rakhchev 2016-08-26 23:08:16 +03:00 committed by Zdenek Styblik
parent 51198a1749
commit fa2c1550b9

View File

@ -684,9 +684,9 @@ read_fru_area(struct ipmi_intf * intf, struct fru_info *fru, uint8_t id,
break;
}
if (rsp->ccode > 0) {
/* if we get C8h or CAh completion code then we requested too
/* if we get C7h or C8h or CAh return code then we requested too
* many bytes at once so try again with smaller size */
if ((rsp->ccode == 0xc8 || rsp->ccode == 0xca)
if ((rsp->ccode == 0xc7 || rsp->ccode == 0xc8 || rsp->ccode == 0xca)
&& fru->max_read_size > 8) {
if (fru->max_read_size > 32) {
/* subtract read length more aggressively */