summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2013-08-16 18:17:44 (GMT)
committerRivera Jose-B46482 <German.Rivera@freescale.com>2013-08-28 19:59:44 (GMT)
commit85be729de02043e1c936c2c1426fb93ce6cba734 (patch)
tree7ce1759dca4baf9a5ab32a274029e5fb263eb8d2
parent3f2f5c5fa5ae9a281f699bfdb090da5477a9f6cd (diff)
downloadlinux-fsl-qoriq-85be729de02043e1c936c2c1426fb93ce6cba734.tar.xz
fsl_qman: fix the incorrect return for xsfdr read in debugfs
and fix the mask value for correctly getting the XSFDR value. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I72ba857bd01b93ca6042e354c7ca8c391f430e83 Reviewed-on: http://git.am.freescale.net:8181/4059 Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
-rw-r--r--drivers/staging/fsl_qbman/qman_debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fsl_qbman/qman_debugfs.c b/drivers/staging/fsl_qbman/qman_debugfs.c
index 6b4dc046..ede3d40 100644
--- a/drivers/staging/fsl_qbman/qman_debugfs.c
+++ b/drivers/staging/fsl_qbman/qman_debugfs.c
@@ -1387,7 +1387,7 @@ static int query_ceetm_xsfdr_show(struct seq_file *file, void *offset)
enum qm_dc_portal portal;
- if ((qman_ip_rev & 0xFF00) < QMAN_REV31)
+ if (qman_ip_rev < QMAN_REV31)
return -EINVAL;
portal = query_ceetm_xsfdr_data.dcp_portal;
@@ -1399,7 +1399,7 @@ static int query_ceetm_xsfdr_show(struct seq_file *file, void *offset)
}
seq_printf(file, "DCP%d: CEETM_XSFDR_IN_USE number is %u\n", portal,
- (xsfdr_in_use & 0x1FF));
+ (xsfdr_in_use & 0x1FFF));
return 0;
}