From b0859ea286e49049ac204562ca68c6914b97c9f8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 7 Dec 2013 07:00:48 -0600 Subject: [PATCH] Minor updates to comments and README files --- arch/arm/src/sama5/sam_dmac.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/sama5/sam_dmac.c b/arch/arm/src/sama5/sam_dmac.c index da58c2971c..f332db7152 100644 --- a/arch/arm/src/sama5/sam_dmac.c +++ b/arch/arm/src/sama5/sam_dmac.c @@ -1487,11 +1487,13 @@ static void sam_freelinklist(struct sam_dmach_s *dmach) DEBUGASSERT(desc->saddr != 0); - /* Get the physical address of the next desriptor in the list */ + /* Get the physical address of the next descriptor in the list */ paddr = desc->dscr; - /* Free the descriptor by simply nullifying it */ + /* Free the descriptor by simply nullifying it and bumping up the + * semaphore count. + */ memset(desc, 0, sizeof(struct dma_linklist_s)); sam_givedsem(dmac);