[U-Boot] [PATCH v2 08/11] dm: net: Tidy up designware driver ready for driver model

Simon Glass sjg at chromium.org
Thu Apr 9 05:04:36 CEST 2015


On 5 April 2015 at 16:07, Simon Glass <sjg at chromium.org> wrote:
> Adjust the error handling to use errno.h instead of returning -1. Change
> leaf functions to pass in the arguments they require rather than struct
> eth_device. Apart from simplifying the code it makes is easier to reuse
> these functions for driver model, since mostly they actually only use
> struct dw_eth_priv (which we can keep).
>
> Create a stub for each Ethernet operation function. This will allow use to
> share code with the driver model versions.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Acked-by: Joe Hershberger <joe.hershberger at ni.com>
> ---
>
> Changes in v2: None
>
>  drivers/net/designware.c | 87 +++++++++++++++++++++++++++++-------------------
>  1 file changed, 53 insertions(+), 34 deletions(-)

Applied to u-boot-dm/next.


More information about the U-Boot mailing list