From: Yang, Wenyou <wenyou.yang@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 07/18] net: macb: Convert to driver model
Date: Thu, 5 May 2016 11:37:14 +0800 [thread overview]
Message-ID: <572ABFEA.3040700@atmel.com> (raw)
In-Reply-To: <CAPnjgZ1seTZ0vf4Wg-enQcv49kbW-04GggFDGj6nO3dJG_Ae-Q@mail.gmail.com>
Hi,
On 2016/5/5 11:18, Simon Glass wrote:
>
> Hi,
>
> On May 4, 2016 21:15, "Yang, Wenyou" <Wenyou.Yang@atmel.com
> <mailto:Wenyou.Yang@atmel.com>> wrote:
> >
> > Hi Simon,
> >
> > > -----Original Message-----
> > > From: sjg at google.com <mailto:sjg@google.com>
> [mailto:sjg at google.com <mailto:sjg@google.com>] On Behalf Of Simon Glass
> > > Sent: 2016?5?5? 10:38
> > > To: Yang, Wenyou <Wenyou.Yang@atmel.com
> <mailto:Wenyou.Yang@atmel.com>>
> > > Cc: hs at denx.de <mailto:hs@denx.de>; U-Boot Mailing List
> <u-boot at lists.denx.de <mailto:u-boot@lists.denx.de>>; Joe Hershberger
> > > <joe.hershberger at ni.com <mailto:joe.hershberger@ni.com>>
> > > Subject: Re: [U-Boot] [PATCH 07/18] net: macb: Convert to driver model
> > >
> > > Hi,
> > >
> > > On 4 May 2016 at 01:32, Yang, Wenyou <Wenyou.Yang@atmel.com
> <mailto:Wenyou.Yang@atmel.com>> wrote:
> > > >
> > > > Hi
> > > >
> > > > > -----Original Message-----
> > > > > From: U-Boot [mailto:u-boot-bounces at lists.denx.de
> <mailto:u-boot-bounces@lists.denx.de>] On Behalf Of
> > > > > Heiko Schocher
> > > > > Sent: 2016?5?3? 15:54
> > > > > To: Simon Glass <sjg at chromium.org <mailto:sjg@chromium.org>>
> > > > > Cc: U-Boot Mailing List <u-boot@lists.denx.de
> <mailto:u-boot@lists.denx.de>>; Joe Hershberger
> > > > > <joe.hershberger at ni.com <mailto:joe.hershberger@ni.com>>
> > > > > Subject: Re: [U-Boot] [PATCH 07/18] net: macb: Convert to driver
> > > > > model
> > > > >
> > > > > Hello Simon,
> > > > >
> > > > > Am 03.05.2016 um 08:40 schrieb Simon Glass:
> > > > > > Add driver-model support to this driver. The old code
> remains for
> > > > > > now so that we can convert boards one at a time.
> > > > > >
> > > > > > Signed-off-by: Simon Glass <sjg@chromium.org
> <mailto:sjg@chromium.org>>
> > > > > > ---
> > > > > >
> > > > > > drivers/net/macb.c | 119
> > > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++
> > > > > > 1 file changed, 119 insertions(+)
> > > > >
> > > > > Thanks!
> > > > >
> > > > > Reviewed-by: Heiko Schocher <hs at denx.de <mailto:hs@denx.de>>
> > > > >
> > > > > tested on the smartweb, corvus, taurus and axm board
> > > > >
> > > > > Tested-by: Heiko Schocher <hs at denx.de <mailto:hs@denx.de>>
> > > >
> > > > I tried to test this patch series on SAMA5D2 Xplained board, but
> I have the
> > > compile warning below. Did you experience it?
> > > >
> > > > ---8<---------
> > > > drivers/net/macb.c: In function 'macb_phy_init':
> > > > drivers/net/macb.c:487:9: warning: passing argument 3 of
> 'phy_connect'
> > > > from incompatible pointer type [enabled by default] In file
> included from
> > > include/miiphy.h:22:0,
> > > > from drivers/net/macb.c:36:
> > > > include/phy.h:226:20: note: expected 'struct udevice *' but
> argument is of type
> > > 'const struct device **'
> > > > --->8--------
> > >
> > > No I don't see that problem. I did a full build test. What is the
> board config name
> > > you are using?
> >
> > The board is SAMA5D2 Xplained board, the .config file is attached.
> >
> > I noticed that in include/phy.h file, phy_connect() has different
> prototype for enabling CONFIG_DM_ETH or not.
> >
> > So, I think this issue should be exist.
>
> Is that board in mainline?
>
Yes, in mainline.
The type of 'dev' parameter of phy_connect() is struct udevice *,
instead of struct eth_device * when enabling CONFIG_DM_ETH.
> >
> > > >
> > > > Thanks.
> > > >
> > > > >
> > > > > bye,
> > > > > Heiko
> > > > > --
> > > > > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
> > > > > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell,
> > > > > Germany _______________________________________________
> > > > > U-Boot mailing list
> > > > > U-Boot at lists.denx.de <mailto:U-Boot@lists.denx.de>
> > > > > http://lists.denx.de/mailman/listinfo/u-boot
>
> Regards,
> Simon
>
Best Regards,
Wenyou Yang
next prev parent reply other threads:[~2016-05-05 3:37 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-03 6:39 [U-Boot] [PATCH 00/18] at91: Convert Ethernet and LCD to driver model Simon Glass
2016-05-03 6:39 ` [U-Boot] [PATCH 01/18] at91: Add support for the AT91 slow clock controller Simon Glass
2016-05-03 7:48 ` Heiko Schocher
2016-05-05 13:24 ` Andreas Bießmann
2016-05-03 6:39 ` [U-Boot] [PATCH 02/18] arm: Allow skipping of low-level init with I-cache on Simon Glass
2016-05-03 7:50 ` Heiko Schocher
2016-05-03 19:37 ` Joe Hershberger
2016-05-03 6:39 ` [U-Boot] [PATCH 03/18] bootm: Align cache flush end address correctly Simon Glass
2016-05-03 7:51 ` Heiko Schocher
2016-05-03 19:39 ` Joe Hershberger
2016-05-03 6:39 ` [U-Boot] [PATCH 04/18] net: Handle an empty bootp extension section Simon Glass
2016-05-03 19:36 ` Joe Hershberger
2016-05-03 6:39 ` [U-Boot] [PATCH 05/18] net: macb: Prepare for driver-model conversion Simon Glass
2016-05-03 7:52 ` Heiko Schocher
2016-05-03 19:45 ` Joe Hershberger
2016-05-03 6:40 ` [U-Boot] [PATCH 06/18] net: macb: Flush correct cache portion when sending Simon Glass
2016-05-03 7:53 ` Heiko Schocher
2016-05-03 19:54 ` Joe Hershberger
2016-05-03 6:40 ` [U-Boot] [PATCH 07/18] net: macb: Convert to driver model Simon Glass
2016-05-03 7:53 ` Heiko Schocher
2016-05-04 7:29 ` Yang, Wenyou
2016-05-04 7:32 ` Yang, Wenyou
2016-05-05 2:38 ` Simon Glass
2016-05-05 3:15 ` Yang, Wenyou
2016-05-05 3:18 ` Simon Glass
2016-05-05 3:37 ` Yang, Wenyou [this message]
2016-05-05 17:19 ` Simon Glass
2016-05-06 7:10 ` Yang, Wenyou
2016-05-03 20:54 ` Joe Hershberger
2016-05-05 2:38 ` Simon Glass
2016-05-03 6:40 ` [U-Boot] [PATCH 08/18] arm: at91: dts: Bring in device tree file for AT91SAM9G45 Simon Glass
2016-05-03 8:23 ` Heiko Schocher
2016-05-03 6:40 ` [U-Boot] [PATCH 09/18] arm: at91: Add a header file for the real-time clock Simon Glass
2016-05-03 8:30 ` Heiko Schocher
2016-05-03 6:40 ` [U-Boot] [PATCH 10/18] at91: Correct NAND ECC register access Simon Glass
2016-05-03 6:40 ` [U-Boot] [PATCH 11/18] at91: nand: Set up the ECC strength correctly Simon Glass
2016-05-03 6:40 ` [U-Boot] [PATCH 12/18] mtd: nand: Drop a blank line in nand_wait() Simon Glass
2016-05-03 6:40 ` [U-Boot] [PATCH 13/18] at91: Add driver-model GPIO devices for AT91SAM9G45 Simon Glass
2016-05-03 8:31 ` Heiko Schocher
2016-05-03 6:40 ` [U-Boot] [PATCH 14/18] at91: mtd: nand: Add dev_warn() to correct build error in driver Simon Glass
2016-05-03 6:40 ` [U-Boot] [PATCH 15/18] at91: video: Prepare for driver-model conversion Simon Glass
2016-05-03 6:40 ` [U-Boot] [PATCH 16/18] at91: video: Support driver-model for the LCD driver Simon Glass
2016-05-03 6:40 ` [U-Boot] [PATCH 17/18] fdt: Correct return value in fdtdec_decode_display_timing() Simon Glass
2016-05-03 6:40 ` [U-Boot] [PATCH 18/18] arm: at91: Add support for gurnard Simon Glass
2016-05-05 2:42 ` [U-Boot] [PATCH 00/18] at91: Convert Ethernet and LCD to driver model Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=572ABFEA.3040700@atmel.com \
--to=wenyou.yang@atmel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox