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 <email@example.com>
Tested-by: Marco Chen <firstname.lastname@example.org>
Reviewed-by: Aaron Durbin <email@example.com>
Reviewed-by: Furquan Shaikh <firstname.lastname@example.org>
(cherry picked from commit 4983d6ec3547276ce23a7a0e35bdec371116e92e)
Reviewed-by: Marco Chen <email@example.com>
Commit-Queue: Marco Chen <firstname.lastname@example.org>
1 file changed