[U-Boot] [PATCH 7/9][v2] net: tsec: Use portable types and accessors for BDs
Claudiu Manoil
claudiu.manoil at freescale.com
Mon Oct 7 11:53:07 CEST 2013
On 10/5/2013 5:49 PM, Timur Tabi wrote:
> On Sat, Oct 5, 2013 at 9:31 AM, Timur Tabi <timur at tabi.org> wrote:
>>
>> + out_be32(®s->tbase, (u32)&txbd[0]);
>> + out_be32(®s->rbase, (u32)&rxbd[0]);
>>
>> &rxbd[0] is a virtual address.
>>
>> Doesn't rbase require a physical address? You're assuming that virt == phys.
>
> Also:
>
> - out_be32(®s->tbase, (unsigned int)(&rtx.txbd[tx_idx]));
> - out_be32(®s->rbase, (unsigned int)(&rtx.rxbd[rx_idx]));
> + out_be32(®s->tbase, (u32)&txbd[0]);
> + out_be32(®s->rbase, (u32)&rxbd[0]);
>
> Are you assuming that rx_idx will always be zero in this case?
>
>
Hi,
This is just initialization code, rx_idx and tx_idx are set
to 0 just 4-5 irrelevant lines above (unfortunately format-patch
doesn't catch that in the patch's context).
Thanks,
Claudiu
More information about the U-Boot
mailing list