Re: [PATCH] macb: add support for board specific get_ethaddr function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23:51 Tue 21 Jun     , Hubert Feurstein wrote:
> 2011/6/21 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@xxxxxxxxxxxx>:
> >> @@ -47,6 +48,7 @@ void at91_add_device_nand(struct atmel_nand_data *data);
> >>  struct at91_ether_platform_data {
> >>       unsigned int flags;
> >>       int phy_addr;
> >> +     int (*get_ethaddr)(struct eth_device*, unsigned char *adr);
> > can we find a generic way?
> a generic way would be to simply call
> 'dev_set_param(get_device_by_name("eth0"), "ethaddr", macbuffer)'
> somewhere after at91_add_device_eth(...) in your init. Then you don't
> need the callback at all to setup the mac-address.
I more in mind an api to update the get/set_ethaddr without specific hookin
each driver

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux