[U-Boot] [PATCH 16/18] net: Allow drivers to return -ENOSYS with the write_hwaddr() method
Simon Glass
sjg at chromium.org
Thu Jul 23 01:41:15 CEST 2015
On 6 July 2015 at 16:47, Simon Glass <sjg at chromium.org> wrote:
> Some drivers may want to implement this method for some of their devices but
> not for others. So it is not possible to just leave the operation out of
> the table. Drivers could get around this by masquerading as two separate
> drivers but that seems unpleasant.
>
> Allow the driver to return an error when it does not want to process the
> write_hwaddr() method.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> include/net.h | 4 +++-
> net/eth.c | 6 ++++++
> 2 files changed, 9 insertions(+), 1 deletion(-)
Applied to u-boot-dm.
More information about the U-Boot
mailing list