All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: net: qe: deselect QE when DM_ETH is enabled
@ 2020-04-29  9:26 Madalin Bucur
  2020-06-08  7:54 ` Priyanka Jain
  0 siblings, 1 reply; 2+ messages in thread
From: Madalin Bucur @ 2020-04-29  9:26 UTC (permalink / raw)
  To: u-boot

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@oss.nxp.com>
---
 drivers/qe/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/qe/Kconfig b/drivers/qe/Kconfig
index 864b36b..44c9f01 100644
--- a/drivers/qe/Kconfig
+++ b/drivers/qe/Kconfig
@@ -3,7 +3,7 @@
 #
 config QE
 	bool "Enable support for QUICC Engine"
-	depends on PPC
+	depends on PPC && !DM_ETH
 	default y if ARCH_T1040 || ARCH_T1042 || ARCH_T1024 || ARCH_P1021 \
 		|| ARCH_P1025
 	help
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] drivers: net: qe: deselect QE when DM_ETH is enabled
  2020-04-29  9:26 [PATCH] drivers: net: qe: deselect QE when DM_ETH is enabled Madalin Bucur
@ 2020-06-08  7:54 ` Priyanka Jain
  0 siblings, 0 replies; 2+ messages in thread
From: Priyanka Jain @ 2020-06-08  7:54 UTC (permalink / raw)
  To: u-boot

>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Madalin Bucur
>Sent: Wednesday, April 29, 2020 2:57 PM
>To: Priyanka Jain <priyanka.jain@nxp.com>; u-boot at lists.denx.de
>Cc: Madalin Bucur (OSS) <madalin.bucur@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@oss.nxp.com>
>---
<snip>
Patch applied on mpc85xx. Awaiting upstream

Thanks
Priyanka

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-08  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29  9:26 [PATCH] drivers: net: qe: deselect QE when DM_ETH is enabled Madalin Bucur
2020-06-08  7:54 ` Priyanka Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.