[PATCH 6.6 509/587] mmc: sdhci-pci-gli: Add a new function to simplify the code