spd: remove trailing whitespaces on DMI 17 part number.
CL:980153 introduced to remove trailing whitespaces of DMI 17 part
number in firmware level then CL:993764 added the support to strip off
trailing whitespaces of part number from SPD as well; otherwise the
comparison will get failed between part number in SMBIOS and SPD.
On the other hand, legacy firmware branches without CL:980153 would still have
trailing whitespaces if there are. As a result, it always can't be matched in
The solution here is always to remove whitesapces on DMI 17
part number in order to guarantee the compatibility different firmware
TEST=manually test on the DUT.
Commit-Ready: Marco Chen <firstname.lastname@example.org>
Tested-by: Marco Chen <email@example.com>
Reviewed-by: Aaron Durbin <firstname.lastname@example.org>
Reviewed-by: Furquan Shaikh <email@example.com>
(cherry picked from commit 4983d6ec3547276ce23a7a0e35bdec371116e92e)
Reviewed-by: Marco Chen <firstname.lastname@example.org>
Commit-Queue: Marco Chen <email@example.com>
1 file changed