summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2014-03-24 20:58:36 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-03-26 02:55:50 (GMT)
commita645f1dfbd6f316758b0a400ef025a8a50874d13 (patch)
tree74b4833c92e4ab67a90b8e4de26780a34e94359a /drivers
parentb14678259df66b1b81c1316880115484da1c27c7 (diff)
downloadlinux-fsl-qoriq-a645f1dfbd6f316758b0a400ef025a8a50874d13.tar.xz
fsl_qbman: set stash attr window before setting attribute
This additional parameter (window number) is required based on the latest update of pamu driver. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I449919d7d89f3a91b6fe120970911487006fccca Reviewed-on: http://git.am.freescale.net:8181/10184 Reviewed-by: Varun Sethi <Varun.Sethi@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Geoff Thorpe <Geoff.Thorpe@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/fsl_qbman/qman_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/fsl_qbman/qman_driver.c b/drivers/staging/fsl_qbman/qman_driver.c
index 02b48e4..dc220b2 100644
--- a/drivers/staging/fsl_qbman/qman_driver.c
+++ b/drivers/staging/fsl_qbman/qman_driver.c
@@ -651,6 +651,8 @@ static void qman_portal_update_sdest(const struct qm_portal_config *pcfg,
if (pcfg->iommu_domain) {
stash_attr.cpu = cpu;
stash_attr.cache = PAMU_ATTR_CACHE_L1;
+ /* set stash information for the window */
+ stash_attr.window = 0;
ret = iommu_domain_set_attr(pcfg->iommu_domain,
DOMAIN_ATTR_FSL_PAMU_STASH, &stash_attr);
if (ret < 0) {