[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191015114108.GF4774@kadam>
Date: Tue, 15 Oct 2019 14:41:08 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Alexander Gordeev <a.gordeev.box@...il.com>
Cc: devel@...verdev.osuosl.org, Michael Chen <micchen@...era.com>,
dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface
for PCIe
On Tue, Oct 15, 2019 at 01:24:50PM +0200, Alexander Gordeev wrote:
> On Thu, Oct 10, 2019 at 02:30:34PM +0300, Dan Carpenter wrote:
> > On Thu, Oct 10, 2019 at 10:51:45AM +0200, Alexander Gordeev wrote:
> > > On Wed, Oct 09, 2019 at 09:53:23PM +0300, Dan Carpenter wrote:
> > > > > > > + u32 *rd_flags = hw->dma_desc_table_rd.cpu_addr->flags;
> > > > > > > + u32 *wr_flags = hw->dma_desc_table_wr.cpu_addr->flags;
> > > > > > > + struct avalon_dma_desc *desc;
> > > > > > > + struct virt_dma_desc *vdesc;
> > > > > > > + bool rd_done;
> > > > > > > + bool wr_done;
> > > > > > > +
> > > > > > > + spin_lock(lock);
>
> [*]
[ snip ]
> I struggle to realize how the spinlock I use (see [*] above) does not
> protect the reader.
Argh.... I'm really sorry. I completely didn't see the spinlock. :P
I am embarrassed. Wow...
regards,
dan carpenter
Powered by blists - more mailing lists