public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 04/10] arm: ls102xa: Add etsec support for LS102xA
Date: Wed, 6 Aug 2014 15:12:44 -0700	[thread overview]
Message-ID: <53E2A85C.9050203@freescale.com> (raw)
In-Reply-To: <1404372264-2301-5-git-send-email-b18965@freescale.com>

On 07/03/2014 12:24 AM, Alison Wang wrote:

Missing commit message here.

> Signed-off-by: Alison Wang <alison.wang@freescale.com>
> ---
> Change log:
>  v2: Add private mdio read and write support. 
> 
>  drivers/net/fsl_mdio.c | 24 +++++++++++++++++++-----
>  drivers/net/tsec.c     |  7 +++++++
>  include/fsl_mdio.h     |  3 +++
>  include/tsec.h         |  7 ++++++-
>  4 files changed, 35 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/net/fsl_mdio.c b/drivers/net/fsl_mdio.c
> index 8d09f5d..3081228 100644
> --- a/drivers/net/fsl_mdio.c
> +++ b/drivers/net/fsl_mdio.c
> @@ -12,6 +12,15 @@
>  #include <asm/io.h>
>  #include <asm/errno.h>
>  
> +void tsec_mdio_sync(void)
> +{
> +#if defined(CONFIG_PPC)
> +	asm("sync");
> +#elif defined(CONFIG_ARM)
> +	asm("dsb");
> +#endif
> +}
> +
>  void tsec_local_mdio_write(struct tsec_mii_mng __iomem *phyregs, int port_addr,
>  		int dev_addr, int regnum, int value)
>  {
> @@ -19,7 +28,7 @@ void tsec_local_mdio_write(struct tsec_mii_mng __iomem *phyregs, int port_addr,
>  
>  	out_be32(&phyregs->miimadd, (port_addr << 8) | (regnum & 0x1f));
>  	out_be32(&phyregs->miimcon, value);
> -	asm("sync");
> +	tsec_mdio_sync();
>  

Don't reinvent the wheel. You can use mb() where you use tsec_mdio_sync();

York

  reply	other threads:[~2014-08-06 22:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-03  7:24 [U-Boot] [PATCH v2 0/9] arm: ls102xa: Add Freescale LS102xA SoC and LS1021AQDS/TWR board support Alison Wang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 01/10] arm: ls102xa: Add Freescale LS102xA SoC support Alison Wang
2014-07-21 21:06   ` York Sun
2014-07-03  7:24 ` [U-Boot] [PATCH v2 02/10] arm: ls102xa: Add i2c support for LS102xA Alison Wang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 03/10] net: Merge asm/fsl_enet.h into fsl_mdio.h Alison Wang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 04/10] arm: ls102xa: Add etsec support for LS102xA Alison Wang
2014-08-06 22:12   ` York Sun [this message]
2014-08-11  5:44     ` AlisonWang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 05/10] arm: ls102xa: Add esdhc " Alison Wang
2014-08-06 22:19   ` York Sun
2014-08-11  5:47     ` AlisonWang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 06/10] driver/ddr/freescale: Add support of accumulate ECC Alison Wang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 07/10] driver/ddr/freescale: Fix DDR3 driver for ARM Alison Wang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 08/10] driver/ddr/fsl: Add support of overriding chip select write leveling Alison Wang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 09/10] arm: ls102xa: Add basic support for LS1021AQDS board Alison Wang
2014-08-06 18:11   ` York Sun
2014-08-11  5:40     ` AlisonWang
2014-07-03  7:24 ` [U-Boot] [PATCH v2 10/10] arm: ls102xa: Add basic support for LS1021ATWR board Alison Wang
2014-07-03 13:11 ` [U-Boot] [PATCH v2 0/9] arm: ls102xa: Add Freescale LS102xA SoC and LS1021AQDS/TWR board support Albert ARIBAUD
2014-07-03 13:58   ` AlisonWang
2014-08-06 22:28 ` York Sun
2014-08-11  5:52   ` AlisonWang

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=53E2A85C.9050203@freescale.com \
    --to=yorksun@freescale.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