Parse a dt property that until now was being ignored. This property
specifies the number of interrupt bits in the MC and is used for
limiting a for loop that prints out errors seen on all the MC
clients. When the interrupt count was 0, it appeared as though the
MC was not recording any errors.
Bug
200046934
Change-Id: I266e3b1eef62219be9cb80541944b83073dbeb2a
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/560120
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
mc_int_mask = be32_to_cpup(prop);
mc_writel(mc_int_mask, MC_INT_MASK);
+ prop = of_get_property(pdev->dev.of_node, "int_count", NULL);
+ if (!prop) {
+ pr_err("No int_count prop for mcerr!\n");
+ return -EINVAL;
+ }
+
+ mc_intr_count = be32_to_cpup(prop);
+
mcerr_debugfs_dir = debugfs_create_dir("err", mc_parent);
if (mcerr_debugfs_dir == NULL) {
pr_err("Failed to make debugfs node: %ld\n",