[U-Boot] [PATCH 7/9][v2] net: tsec: Use portable types and accessors for BDs

Timur Tabi
2013-10-07T12:05:35Z

Claudiu Manoil wrote:
> I think you're suggesting that virt_to_phys() should be used
> to fix that, right?

Yes.

> However, virt_to_phys() is equivalent to that
> simple cast in most cases as there's no CONFIG_PHYS_64BIT for the
> platforms with eTSEC. I'm actually not sure if there's a platform
> with eTSEC for which that cast wouldn't be enough.

Freescale might create a eTSEC-compatible 10G NIC one day that does run
on e6500 cores.

> If so, it should be a separate patch as this fix would apply to
> existing (old) code and is out of the scope of this patch about
> portable accessors.

Fair enough.