Re: [PATCH] staging/rt2860: fix bad dma_addr_t conversion

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: FUJITA Tomonori
Date: Tuesday, August 3, 2010 - 10:11 pm

On Wed, 04 Aug 2010 00:45:19 -0400
Javier Martinez Canillas <martinez.javier@gmail.com> wrote:


This doesn't look correct since zero is a valid DMA address on some
architectures.

I recommend removing the else part completely. If you need to mark a
rx buffer invalid, adding a flag to the rx descriptor structure of a
driver is a popular way (see other network drivers, e.g. bnx2).
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] staging/rt2860: fix bad dma_addr_t conversion, FUJITA Tomonori, (Tue Aug 3, 10:11 pm)