[U-Boot] [PATCH 11/12] net: emaclite: Move driver to DM
    Michal Simek 
    michal.simek at xilinx.com
       
    Wed Dec 16 10:52:33 CET 2015
    
    
  
On 15.12.2015 23:34, Joe Hershberger wrote:
> On Fri, Dec 11, 2015 at 6:03 AM, Michal Simek <michal.simek at xilinx.com> wrote:
>> Move driver to DM.
>>
>> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> 
> A few nits below, but otherwise,
> 
> Acked-by: Joe Hershberger <joe.hershberger at ni.com>
Thanks.
>> @@ -523,78 +520,105 @@ try_again:
>>
>>         debug("Packet receive from 0x%p, length %dB\n", addr, length);
>>         net_process_received_packet((uchar *)etherrxbuff, length);
>> -       return length;
>> +       return 0;
> 
> Since there is no clean-up here, it would be better to return the
> length and remove the net_process_received_packet() call above.
I will send it in separate patch. I wanted to do it in this way to be
smaller patch.
> 
>>
> 
> Remove this line.
done.
>> +
>> +static const struct eth_ops emaclite_ops = {
>> +       .start = emaclite_init,
> 
> Name this emaclite_start.
> 
>> +       .send = emaclite_send,
>> +       .recv = emaclite_recv,
>> +       .stop = emaclite_halt,
> 
> Name this emaclite_stop.
there will be separate patch for this.
Thanks,
Michal
    
    
More information about the U-Boot
mailing list