[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <AC7EDFBD-7282-460F-9D0E-2E3AA9ED7718@kernel.crashing.org>
Date: Wed, 7 Feb 2007 10:49:27 -0600
From: Kumar Gala <galak@...nel.crashing.org>
To: Timur Tabi <timur@...escale.com>
Cc: Li Yang <leoli@...escale.com>, netdev@...r.kernel.org,
linuxppc-dev@...abs.org
Subject: Re: [PATCH 1/4] ucc_geth: Change private immrbar_virt_to_phys to generic iopa
On Feb 7, 2007, at 10:43 AM, Timur Tabi wrote:
> Kumar Gala wrote:
>> On Feb 6, 2007, at 5:31 AM, Li Yang wrote:
>>> Get rid of private immrbar_virt_to_phys() routine and
>>> use generic iopa().
>> Nack. iopa() isn't that generic, shouldn't we really be using the
>> dma mapping API here?
>
> I'm having a hard time understanding what's wrong with iopa(). Is
> it because it's a 32-bit only function? The memory has already
> been mapped with ioremap(), so why would we want to map it again?
If its been mapped with ioremap() you know the physical address
already so why do you need iopa(). The problem I have is iopa() is
ppc specific and I can envision a day when someone wants to run Linux
on a StarCore + QE, so having the drivers using ppc specific APIs is
bad.
- k
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists