Commit 391d7d16 authored by Juan David González Cobas's avatar Juan David González Cobas Committed by Alessandro Rubini

fix off-by-one error in rep count readback

parent f71f9bc8
......@@ -209,7 +209,7 @@ static int fd_zio_info_output(struct device *dev, struct zio_attribute *zattr,
return 0;
}
if (zattr->id == FD_ATTR_OUT_REP) {
*usr_val = FD_RCR_REP_CNT_R(fd_ch_readl(fd, ch, FD_REG_RCR));
*usr_val = FD_RCR_REP_CNT_R(fd_ch_readl(fd, ch, FD_REG_RCR)) + 1;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment