From 025ac993b3aca03aec5531417298f7298bda5eb3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 6 May 2015 07:44:37 -0600 Subject: [PATCH] SAMA5 OHCI: Remove a DEBUGASSERT that was firing if a a spurious interrupt was received --- arch/arm/src/sama5/sam_ohci.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/arm/src/sama5/sam_ohci.c b/arch/arm/src/sama5/sam_ohci.c index 6df83c2273a..a7d9a39ceef 100644 --- a/arch/arm/src/sama5/sam_ohci.c +++ b/arch/arm/src/sama5/sam_ohci.c @@ -2087,9 +2087,9 @@ static void sam_wdh_bottomhalf(void) uintptr_t paddr; uintptr_t tmp; - /* The host controller just wrote the one finished TDs into the HCCA - * done head. This may include multiple packets that were transferred - * in the preceding frame. + /* The host controller just wrote the finished TDs into the HCCA done head. + * This may include multiple packets that were transferred in the preceding + * frame. * * Remove the TD from the Writeback Done Head in the HCCA and return * it to the free list. Note that this is safe because the hardware @@ -2107,11 +2107,10 @@ static void sam_wdh_bottomhalf(void) (uintptr_t)&g_hcca + sizeof(struct ohci_hcca_s)); #endif - /* Now read the done head */ + /* Now read the done head. */ td = (struct sam_gtd_s *)sam_virtramaddr(g_hcca.donehead); g_hcca.donehead = 0; - DEBUGASSERT(td); /* Process each TD in the write done list */