[patch] fix add_bounce_page() for BUS_DMA_KEEP_PG_OFFSET

From: Svatopluk Kraus <onwahe_at_gmail.com>
Date: Fri, 24 Apr 2015 13:34:42 +0200
The add_bounce_page() can be called from _bus_dmamap_load_phys().
Client virtual address is zero (not valid) in that case. So, client
physical address must be used to get an offset when
BUS_DMA_KEEP_PG_OFFSET flag is set. Note that client physical address
is always valid.

Svatopluk Kraus

Received on Fri Apr 24 2015 - 09:34:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:57 UTC