[PATCH] drivers: net: qe: deselect QE when DM_ETH is enabled

Priyanka Jain (OSS) priyanka.jain at oss.nxp.com
Mon Jun 8 09:54:44 CEST 2020


>-----Original Message-----
>From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Madalin Bucur
>Sent: Wednesday, April 29, 2020 2:57 PM
>To: Priyanka Jain <priyanka.jain at nxp.com>; u-boot at lists.denx.de
>Cc: Madalin Bucur (OSS) <madalin.bucur at oss.nxp.com>
>Subject: [PATCH] drivers: net: qe: deselect QE when DM_ETH is enabled
>
>A compilation error appears when QE is compiled with DM_ETH
>enabled:
>
>drivers/qe/uec.c: In function 'init_phy':
>drivers/qe/uec.c:425:28: error: dereferencing pointer to incomplete type
>'struct eth_device'
>  uec = (uec_private_t *)dev->priv;
>                            ^~
>drivers/qe/uec.c: In function 'uec_initialize':
>drivers/qe/uec.c:1357:43: error: invalid application of 'sizeof' to incomplete
>type 'struct eth_device'
>  dev = (struct eth_device *)malloc(sizeof(struct eth_device));
>                                           ^~~~~~
>
>The patch disables CONFIG_QE when CONFIG_DM_ETH is set.
>
>Signed-off-by: Madalin Bucur <madalin.bucur at oss.nxp.com>
>---
<snip>
Patch applied on mpc85xx. Awaiting upstream

Thanks
Priyanka


More information about the U-Boot mailing list