[U-Boot] [PATCH v2 1/3] drivers: usb: gadget: ether: do not register usb when DM_USB and DM_ETH defined

Simon Glass sjg at chromium.org
Sat Dec 17 23:47:50 CET 2016


On 14 December 2016 at 06:32, Mugunthan V N <mugunthanvnm at ti.com> wrote:
> when both DM_USB and DM_ETH are defined which denoted that
> usb_ether has been registered from a usb device. So registering a
> USB device doesn't do any thing and de-register leads to crash as
> it try to remove its own parent. Sample dm-tree output below.
>
>  eth         [ + ]        |-- ethernet at 4a100000
>  misc        [ + ]        `-- usb at 47400000
>  usb_dev_gen [ + ]            |-- usb at 47401000
>  eth         [ + ]            |   `-- usb_ether
>  usb         [   ]            `-- usb at 47401800
>
> Signed-off-by: Mugunthan V N <mugunthanvnm at ti.com>
> ---
>  drivers/usb/gadget/ether.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list