[PATCH 6.1 438/482] mmc: sdhci-pci-gli: Add a new function to simplify the code