Re: drm fixup 1/2 - missing bus_address assignment

From: David S. Miller
Date: Fri Aug 27 2004 - 19:14:38 EST


On Sat, 28 Aug 2004 00:55:32 +0100 (IST)
Dave Airlie <airlied@xxxxxxxx> wrote:

> > > + buf->bus_address = virt_to_bus(buf->address);
> >
> > this iw wrong. never use virt_to_bus in new code and whenever you see it
> > in old code get rid of it.
> >
>
> Is there an alternative or do I just dump it? I think we only use the
> bus_address for debugging in /proc and I don't think many people actually
> have used it ..

You really have to use the defined DMA apis for stuff like this.

I was going to bark about this too.

Check out Documentation/DMA-mapping.txt and friends.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/