[PATCH V2 1/2] mmc: sdhci-pci-gli: Add a new function to simplify the code