[PATCH 6.12 166/322] mmc: sdhci-pci-gli: Add a new function to simplify the code