SDMMC_IDMAC_INT_FBE | SDMMC_IDMAC_INT_RI | \
                                 SDMMC_IDMAC_INT_TI)
 
+#define DESC_RING_BUF_SZ       PAGE_SIZE
+
 struct idmac_desc_64addr {
        u32             des0;   /* Control Descriptor */
 
        if (host->dma_64bit_address == 1) {
                struct idmac_desc_64addr *p;
                /* Number of descriptors in the ring buffer */
-               host->ring_size = PAGE_SIZE / sizeof(struct idmac_desc_64addr);
+               host->ring_size =
+                       DESC_RING_BUF_SZ / sizeof(struct idmac_desc_64addr);
 
                /* Forward link the descriptor list */
                for (i = 0, p = host->sg_cpu; i < host->ring_size - 1;
        } else {
                struct idmac_desc *p;
                /* Number of descriptors in the ring buffer */
-               host->ring_size = PAGE_SIZE / sizeof(struct idmac_desc);
+               host->ring_size =
+                       DESC_RING_BUF_SZ / sizeof(struct idmac_desc);
 
                /* Forward link the descriptor list */
                for (i = 0, p = host->sg_cpu;
 err_own_bit:
        /* restore the descriptor chain as it's polluted */
        dev_dbg(host->dev, "desciptor is still owned by IDMAC.\n");
-       memset(host->sg_cpu, 0, PAGE_SIZE);
+       memset(host->sg_cpu, 0, DESC_RING_BUF_SZ);
        dw_mci_idmac_init(host);
        return -EINVAL;
 }
 err_own_bit:
        /* restore the descriptor chain as it's polluted */
        dev_dbg(host->dev, "desciptor is still owned by IDMAC.\n");
-       memset(host->sg_cpu, 0, PAGE_SIZE);
+       memset(host->sg_cpu, 0, DESC_RING_BUF_SZ);
        dw_mci_idmac_init(host);
        return -EINVAL;
 }
                }
 
                /* Alloc memory for sg translation */
-               host->sg_cpu = dmam_alloc_coherent(host->dev, PAGE_SIZE,
+               host->sg_cpu = dmam_alloc_coherent(host->dev,
+                                                  DESC_RING_BUF_SZ,
                                                   &host->sg_dma, GFP_KERNEL);
                if (!host->sg_cpu) {
                        dev_err(host->dev,