dma: keystone_nav: Fix linkram size
authorVitaly Andrianov <vitalya@ti.com>
Sat, 19 Sep 2015 10:56:49 +0000 (16:26 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:22:22 +0000 (14:22 -0400)
Fix Linkram size.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/dma/keystone_nav.c

index dfca75abdcb7c864317d0d41be0b79e59ec5c8a3..5a65b62a391a66b4147cd851c03d0672239a2c7a 100644 (file)
@@ -54,7 +54,7 @@ int _qm_init(struct qm_config *cfg)
        qm_cfg = cfg;
 
        qm_cfg->mngr_cfg->link_ram_base0        = qm_cfg->i_lram;
-       qm_cfg->mngr_cfg->link_ram_size0        = HDESC_NUM * 8;
+       qm_cfg->mngr_cfg->link_ram_size0        = HDESC_NUM * 8 - 1;
        qm_cfg->mngr_cfg->link_ram_base1        = 0;
        qm_cfg->mngr_cfg->link_ram_size1        = 0;
        qm_cfg->mngr_cfg->link_ram_base2        = 0;