All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] powerpc/p2041: skip waiting for SERDES bank 3 reset done
Date: Wed, 23 Jan 2013 09:48:39 +0100	[thread overview]
Message-ID: <1358930919-5322-1-git-send-email-agust@denx.de> (raw)

Bank 3 is not present on P2041, do not try to wait for RSTDONE
for this bank. This fixes the bank 3 reset wait timeout and
thus speeds up booting on P2041RDB.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
Cc: Andy Fleming <afleming@freescale.com>
---
 arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
index 5495dc5..2cea1dc 100644
--- a/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
+++ b/arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c
@@ -579,6 +579,10 @@ void fsl_serdes_init(void)
 	for (lane = 0; lane < SRDS_MAX_LANES; lane++) {
 		enum srds_prtcl lane_prtcl = serdes_get_prtcl(cfg, lane);
 		if (serdes_lane_enabled(lane)) {
+#if defined(CONFIG_PPC_P2041)
+			if (!is_serdes_prtcl_valid(lane_prtcl))
+				continue;
+#endif
 			have_bank[serdes_get_bank_by_lane(lane)] = 1;
 			serdes_prtcl_map |= (1 << lane_prtcl);
 		}
-- 
1.7.11.7

             reply	other threads:[~2013-01-23  8:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23  8:48 Anatolij Gustschin [this message]
2013-01-23 10:17 ` [U-Boot] [PATCH] powerpc/p2041: skip waiting for SERDES bank 3 reset done Xie Shaohui-B21989
2013-01-23 10:36   ` Anatolij Gustschin
2013-01-24  2:33     ` Xie Shaohui-B21989
2013-01-24  8:03       ` Anatolij Gustschin
2013-01-25  8:06         ` Anatolij Gustschin

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=1358930919-5322-1-git-send-email-agust@denx.de \
    --to=agust@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 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.