Skip to content

Commit 39a8c0d

Browse files
Sumit Guptagregkh
authored andcommitted
soc/tegra: cbb: Set ERD on resume for err interrupt
[ Upstream commit b6ff71c ] Set the Error Response Disable (ERD) bit to mask SError responses and use interrupt-based error reporting. When the ERD bit is set, inband error responses to the initiator via SError are suppressed, and fabric errors are reported via an interrupt instead. The register is set during boot but the info is lost during system suspend and needs to be set again on resume. Fixes: fc2f151 ("soc/tegra: cbb: Add driver for Tegra234 CBB 2.0") Signed-off-by: Sumit Gupta <sumitg@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b87992d commit 39a8c0d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/soc/tegra/cbb/tegra234-cbb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,10 @@ static int __maybe_unused tegra234_cbb_resume_noirq(struct device *dev)
11761176
{
11771177
struct tegra234_cbb *cbb = dev_get_drvdata(dev);
11781178

1179+
/* set ERD bit to mask SError and generate interrupt to report error */
1180+
if (cbb->fabric->off_mask_erd)
1181+
tegra234_cbb_mask_serror(cbb);
1182+
11791183
tegra234_cbb_error_enable(&cbb->base);
11801184

11811185
dev_dbg(dev, "%s resumed\n", cbb->fabric->name);

0 commit comments

Comments
 (0)