All of lore.kernel.org
 help / color / mirror / Atom feed
From: Emil Medve <Emilian.Medve@Freescale.com>
To: <shh.xie@gmail.com>, <netdev@vger.kernel.org>, <davem@davemloft.net>
Cc: Shaohui Xie <Shaohui.Xie@Freescale.com>
Subject: Re: [linuxppc-release] [PATCH] net/fsl: modify xgmac_mdio for little endian SoCs
Date: Mon, 16 Mar 2015 01:56:41 -0500	[thread overview]
Message-ID: <55067EA9.7030303@Freescale.com> (raw)
In-Reply-To: <1426483371-3286-1-git-send-email-shh.xie@gmail.com>

Hello Shao-Hui,


On 03/16/2015 12:22 AM, shh.xie@gmail.com wrote:
> From: Shaohui Xie <Shaohui.Xie@freescale.com>
> 
> MDIO controller on little endian Socs, e.g. ls2085a is similar to the
> controller on big endian Socs, but the MDIO access is little endian,
> we use I/O accessor function to handle endianness, so the driver can
> run on little endian Socs. A property "fsl,little-endian-mdio" is used
> in DTS to indicate the MDIO is little endian, if driver probes the
> property, driver will access MDIO in little endian.

Please use "{big,little}-endian" with "big-endian" being the default if
none is present. Please look at
Documentation/devicetree/bindings/regmap/regmap.txt and more then a
dozen FSL bindings already using this

> Also, fix a bug in xgmac_wait_until_done() which mdio_stat should be
> used instead of mdio_data when checking if busy bit is cleared.

Please split this into a separate patch

> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
> ---
>  drivers/net/ethernet/freescale/xgmac_mdio.c | 96 ++++++++++++++++++++---------
>  1 file changed, 68 insertions(+), 28 deletions(-)

Cheers,

  reply	other threads:[~2015-03-16  7:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16  5:22 [PATCH] net/fsl: modify xgmac_mdio for little endian SoCs shh.xie
2015-03-16  6:56 ` Emil Medve [this message]
2015-03-16  7:11   ` [linuxppc-release] " Shaohui Xie

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=55067EA9.7030303@Freescale.com \
    --to=emilian.medve@freescale.com \
    --cc=Shaohui.Xie@Freescale.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=shh.xie@gmail.com \
    /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 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.