Skip to contentSkip to conversation

2.5.40 - DMA-mapping && misc

PATCH Matthew Wilcox 1 participant 1 message Oct 4, 2002

lore
Share & tools
lore
#0 lore raw

- virt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) :
+ virt_to_bus(
+ page_address(((struct scatterlist *)cmd->buffer)[i].page) +
+ ((struct scatterlist *)cmd->buffer)[i].offset ) :

             virt_to_bus(cmd->request_buffer);

have you actually read Documentation/DMA-mapping.txt? It says quite plainly:

Drivers converted fully to this interface should not use virt_to_bus any longer, nor should they use bus_to_virt.
[...]
It is planned to completely remove virt_to_bus() and bus_to_virt() as they are entirely deprecated.

So, your patch is quite insufficient.

Signature · 1 line
Revolutions do not require corporate support.