public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC 0/7] Universal PHY Infrastructure
Date: Wed, 30 Mar 2011 14:06:12 +0200	[thread overview]
Message-ID: <m2aagcn77v.fsf@ohwell.denx.de> (raw)
In-Reply-To: <1301427010-7429-1-git-send-email-afleming@freescale.com> (Andy Fleming's message of "Tue, 29 Mar 2011 14:30:03 -0500")

Hi Andy,

> Or PHY Lib for U-Boot.
>
> This sequence of patches adds infrastructure for universally-available PHY
> drivers (and MDIO drivers).  It piggy-backs on the existing miiphy code, for
> backwards compatibility, but it also creates a new set of APIs. This was
> necessary partly to provide cleaner interfaces for more robust driver
> support, and partly because one goal was to support 10G (802.3 Clause 45) MDIO
> buses, which has an extra argument for addressing PHY registers.
>
> The first three patches clear the way, and are in this sequence mostly
> because the tsec changes depend on them.
>
> Special thanks goes to Mingkai Hu, who did a substantial amount
> of work up front to convert the tsec PHY code into something more usable,
> which I have mostly copied for the purposes of PHY Lib.
>
> As the subject says, these are submitted here for comment.  I hope they
> will go in for the presumptive June release.
>
> Andy Fleming (5):
>   Remove instances of phy_read/write
>   Create PHY Lib for U-Boot
>   Add mdio command for new PHY infrastructure
>   phylib: Add a bunch of PHY drivers from tsec
>   tsec: Convert tsec to use PHY Lib
>
> Mingkai Hu (2):
>   tsec: use IO accessories to access the register
>   tsec: arrange the code to avoid useless function declaration

Thanks for this extensive work!  Still the whole series has checkpatch
problems, so please clean them up:

total: 29 errors, 95 warnings, 7792 lines checked

Some of them can be ignored, but some like this really need fixing:

ERROR: trailing statements should be on next line
#206: FILE: drivers/net/tsec.c:243:
+	while ((in_be32(&phyregs->miimind) & MIIMIND_BUSY) && timeout--) ;

Cheers
  Detlev

-- 
Emacs seems a more likely candidate  to contain a mail system than the
mail system to contain an Emacs, so this is the way it was done.
                                            -- Bernard S. Greenberg
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

      parent reply	other threads:[~2011-03-30 12:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-29 19:30 [U-Boot] [RFC 0/7] Universal PHY Infrastructure Andy Fleming
2011-03-29 19:30 ` [U-Boot] [PATCH 1/7] tsec: use IO accessories to access the register Andy Fleming
2011-03-29 19:30   ` [U-Boot] [PATCH 2/7] tsec: arrange the code to avoid useless function declaration Andy Fleming
2011-03-29 19:30     ` [U-Boot] [PATCH 3/7] Remove instances of phy_read/write Andy Fleming
2011-03-29 19:30       ` [U-Boot] [PATCH 4/7] Create PHY Lib for U-Boot Andy Fleming
2011-03-29 19:30         ` [U-Boot] [PATCH 5/7] Add mdio command for new PHY infrastructure Andy Fleming
2011-03-29 19:30           ` [U-Boot] [PATCH 6/7] phylib: Add a bunch of PHY drivers from tsec Andy Fleming
2011-03-29 19:30             ` [U-Boot] [PATCH 7/7] tsec: Convert tsec to use PHY Lib Andy Fleming
2011-03-30 12:32               ` Detlev Zundel
2011-03-30 12:26             ` [U-Boot] [PATCH 6/7] phylib: Add a bunch of PHY drivers from tsec Detlev Zundel
2011-03-31  1:13               ` Andy Fleming
2011-03-30 11:55           ` [U-Boot] [PATCH 5/7] Add mdio command for new PHY infrastructure Detlev Zundel
2011-03-30 23:05             ` Andy Fleming
2011-03-30 23:18           ` Mike Frysinger
2011-03-30 11:47         ` [U-Boot] [PATCH 4/7] Create PHY Lib for U-Boot Detlev Zundel
2011-03-30 11:11       ` [U-Boot] [PATCH 3/7] Remove instances of phy_read/write Detlev Zundel
2011-03-30 11:07     ` [U-Boot] [PATCH 2/7] tsec: arrange the code to avoid useless function declaration Detlev Zundel
2011-03-31  8:13     ` Kumar Gala
2011-03-31 14:01       ` Fleming Andy-AFLEMING
2011-03-31  8:12   ` [U-Boot] [PATCH 1/7] tsec: use IO accessories to access the register Kumar Gala
2011-03-30 12:06 ` Detlev Zundel [this message]

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=m2aagcn77v.fsf@ohwell.denx.de \
    --to=dzu@denx.de \
    --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