[openEuler-5.10 448/496] serial: 8250_pci: Refactor the loop in pci_ite887x_init()