mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Subject: [PATCH] ARM: socfpga: remove unused fpgaintf setup
Date: Fri, 30 Jun 2017 10:08:22 +0200	[thread overview]
Message-ID: <20170630080822.5027-1-s.trumtrar@pengutronix.de> (raw)

The disable bits for the ethernet interfaces between FPGA and HPS are read
and configured, but never written back.
The configuration itself doesn't make that much sense however. So instead of
writing it back to the register, remove the whole read-modify operation altogether.

Reported-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 arch/arm/mach-socfpga/arria10-generic.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm/mach-socfpga/arria10-generic.c b/arch/arm/mach-socfpga/arria10-generic.c
index b8129eaf23ff..6a10c19d1417 100644
--- a/arch/arm/mach-socfpga/arria10-generic.c
+++ b/arch/arm/mach-socfpga/arria10-generic.c
@@ -37,14 +37,6 @@ static void arria10_init_emac(void)
 	val |= ARRIA10_SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_RGMII;
 	writel(val, ARRIA10_SYSMGR_EMAC2);
 
-	val = readl(ARRIA10_SYSMGR_FPGAINTF_EN_3);
-	val &= ~(ARRIA10_SYSMGR_FPGAINTF_EN3_EMAC0 |
-		 ARRIA10_SYSMGR_FPGAINTF_EN3_EMAC0_SW |
-		 ARRIA10_SYSMGR_FPGAINTF_EN3_EMAC1 |
-		 ARRIA10_SYSMGR_FPGAINTF_EN3_EMAC1_SW |
-		 ARRIA10_SYSMGR_FPGAINTF_EN3_EMAC2 |
-		 ARRIA10_SYSMGR_FPGAINTF_EN3_EMAC2_SW);
-
 	rst = readl(ARRIA10_RSTMGR_ADDR + ARRIA10_RSTMGR_PER0MODRST);
 	rst &= ~(ARRIA10_RSTMGR_PER0MODRST_EMAC0 |
 		 ARRIA10_RSTMGR_PER0MODRST_EMAC1 |
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2017-06-30  8:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30  8:08 Steffen Trumtrar [this message]
2017-06-30 11:32 ` Sascha Hauer

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=20170630080822.5027-1-s.trumtrar@pengutronix.de \
    --to=s.trumtrar@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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