All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH v1 03/23] phy: marvell: add missing speed during info prints
Date: Wed, 24 Mar 2021 15:06:29 +0100	[thread overview]
Message-ID: <20210324150325.v1.3.I9900d23595094be321be0c62fcaa88036324568e@changeid> (raw)
In-Reply-To: <20210324140649.1413122-1-sr@denx.de>

From: Igal Liberman <igall@marvell.com>

In get_speed_string() we have an array (speed_strings[])
which includes all possible speed strings.
This array size and content must be aligned to the speed
defines in comphy_data.h.

This patch adds missing 5.125G speed, aligns speed_strings[]
and fixes incorrect printing when speed > 5.0G.

Signed-off-by: Igal Liberman <igall@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
---

 drivers/phy/marvell/comphy_core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c
index f1f061d7c116..835fc2e907f2 100644
--- a/drivers/phy/marvell/comphy_core.c
+++ b/drivers/phy/marvell/comphy_core.c
@@ -25,8 +25,9 @@ static const char *get_speed_string(u32 speed)
 {
 	static const char * const speed_strings[] = {
 		"1.25 Gbps", "1.5 Gbps", "2.5 Gbps",
-		"3.0 Gbps", "3.125 Gbps", "5 Gbps", "6 Gbps",
-		"6.25 Gbps", "10.31 Gbps"
+		"3.0 Gbps", "3.125 Gbps", "5 Gbps",
+		"5.125 Gpbs", "6 Gbps", "6.25 Gbps",
+		"10.3125 Gbps"
 	};
 
 	if (speed < 0 || speed > COMPHY_SPEED_MAX)
-- 
2.31.0

  parent reply	other threads:[~2021-03-24 14:06 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-24 14:06 [PATCH v1 00/23] phy: marvell: Sync Armada 3k/7k/8k SERDES code with Marvell version Stefan Roese
2021-03-24 14:06 ` [PATCH v1 01/23] phy: marvell: add comphy type PHY_TYPE_USB3 Stefan Roese
2021-03-24 14:06 ` [PATCH v1 02/23] phy: marvell: rename comphy related definitions to COMPHY_XX Stefan Roese
2021-03-24 14:42   ` Pali Rohár
2021-03-24 15:04     ` [EXT] " Kostya Porotchkin
2021-03-24 15:39       ` Stefan Roese
2021-03-24 15:47         ` Pali Rohár
2021-03-24 17:41           ` Marek Behun
2021-04-08  8:03           ` Stefan Roese
2021-03-24 14:06 ` Stefan Roese [this message]
2021-03-24 14:06 ` [PATCH v1 04/23] phy: marvell: cp110: initialize only enabled UTMI units Stefan Roese
2021-03-24 14:06 ` [PATCH v1 05/23] phy: marvell: cp110: utmi: update analog parameters according to latest ETP Stefan Roese
2021-03-24 14:06 ` [PATCH v1 06/23] phy: marvell: fix several minor bugs in comphy_probe Stefan Roese
2021-03-24 14:06 ` [PATCH v1 07/23] phy: marvell: save comphy_map_data priv structure Stefan Roese
2021-03-24 14:06 ` [PATCH v1 08/23] phy: marvell: add RX training command Stefan Roese
2021-03-24 17:46   ` Marek Behun
2021-04-08  8:46     ` Stefan Roese
2021-03-24 14:06 ` [PATCH v1 09/23] phy: marvell: enable comphy info prints for all devices Stefan Roese
2021-03-24 14:06 ` [PATCH v1 10/23] phy: marvell: cp110: remove unused definitions Stefan Roese
2021-03-24 14:06 ` [PATCH v1 11/23] phy: marvell: cp110: let the firmware configure comphy for RXAUI Stefan Roese
2021-03-24 14:06 ` [PATCH v1 12/23] phy: marvell: cp110: let the firmware configure comphy for USB Stefan Roese
2021-03-24 14:06 ` [PATCH v1 13/23] phy: marvell: cp110: let the firmware perform training for XFI Stefan Roese
2021-03-24 14:06 ` [PATCH v1 14/23] phy: marvell: cp110: remove both phy and pipe selector configuration Stefan Roese
2021-03-24 14:06 ` [PATCH v1 15/23] phy: marvell: cp110: clean up driver after it was moved to atf Stefan Roese
2021-03-24 14:06 ` [PATCH v1 16/23] phy: marvell: pass sgmii id to firmware Stefan Roese
2021-03-24 14:06 ` [PATCH v1 17/23] phy: marvell: fix handling of unconnected comphy Stefan Roese
2021-03-24 14:06 ` [PATCH v1 18/23] phy: marvell: cp110: mark u-boot power-off calls Stefan Roese
2021-03-24 14:06 ` [PATCH v1 19/23] phy: marvell: allow to initialize up to 6 USB ports Stefan Roese
2021-03-24 14:06 ` [PATCH v1 20/23] phy: marvell: fix pll initialization for second utmi port Stefan Roese
2021-03-24 14:06 ` [PATCH v1 21/23] phy: marvell: add support for SFI1 Stefan Roese
2021-03-24 14:06 ` [PATCH v1 22/23] phy: marvell: utmi: update utmi config which fixes usb2.0 instability Stefan Roese
2021-03-24 14:06 ` [PATCH v1 23/23] doc: dt-bindings: add Marvell comphy binding Stefan Roese
2021-04-29  6:46 ` [PATCH v1 00/23] phy: marvell: Sync Armada 3k/7k/8k SERDES code with Marvell version Stefan Roese
2021-04-29  8:27   ` Marek Behun
2021-04-29  9:00     ` Stefan Roese
2021-05-04 22:28       ` Pali Rohár
2021-05-05  7:00         ` Stefan Roese
2021-05-05  9:19           ` Pali Rohár
2021-05-05 16:38             ` Marek Behun

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=20210324150325.v1.3.I9900d23595094be321be0c62fcaa88036324568e@changeid \
    --to=sr@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.