acpi: hpet: fix getting invalid vendor ID and clock period
Some platforms get the report again,
Invalid Vendor ID: ffff - this should be configured.
Invalid clock period 4294967295, must be non-zero and less than 10^8.
after the commit#7cfe1a41956294bd8062b7680e1778ed9ee147b2 applied.
some platforms can be fixed by commit#
ee769ccf294cff2c63769482e84866a979d42f44, but still got fail on
some Intel platforms with latest Bios.
The root cause is commit#7cfe1a41956294bd8062b7680e1778ed9ee147b2
adds safe memory read checking, so do two memory reads immediately, HW might
not able to get ready for registers to be read and get the false values.
Adding delay between two reads could solve this issue, and also change to 64
bits safe memory read check.
Signed-off-by: Ivan Hu <email address hidden>
Acked-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
This allows us to build with releases that have libftdi1
Signed-off-by: Jonathan Cave <email address hidden>
Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Ivan Hu <email address hidden>
Acked-by: Alex Hung <email address hidden>