* [PATCH] phy: armada-38x: add mux value for gbe port 0 on serdes 0
@ 2024-01-06 14:56 Josua Mayer
2024-01-24 6:00 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Josua Mayer @ 2024-01-06 14:56 UTC (permalink / raw)
To: Vinod Koul, Kishon Vijay Abraham I
Cc: rmk, linux-phy, linux-kernel, Josua Mayer
Armada 38x supports 3 functions on serdes #0:
- pcie port 0
- sata port 0
- gbe port 0
Add missing entry for gbe port 0 on serdes 0 to the gbe_mux array.
Because this array looks obscure to new readers, also add a comment
explaining the meaning of rows, columns and values.
Signed-off-by: Josua Mayer <josua@solid-run.com>
---
drivers/phy/marvell/phy-armada38x-comphy.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/phy/marvell/phy-armada38x-comphy.c b/drivers/phy/marvell/phy-armada38x-comphy.c
index b7d99861526a..d3259984ee8e 100644
--- a/drivers/phy/marvell/phy-armada38x-comphy.c
+++ b/drivers/phy/marvell/phy-armada38x-comphy.c
@@ -47,8 +47,13 @@ struct a38x_comphy {
struct a38x_comphy_lane lane[MAX_A38X_COMPHY];
};
+/*
+ * Map serdes lanes and gbe ports to serdes mux configuration values:
+ * row index = serdes lane,
+ * column index = gbe port number.
+ */
static const u8 gbe_mux[MAX_A38X_COMPHY][MAX_A38X_PORTS] = {
- { 0, 0, 0 },
+ { 3, 0, 0 },
{ 4, 5, 0 },
{ 0, 4, 0 },
{ 0, 0, 4 },
---
base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86
change-id: 20240106-fix-a38x-comphy-sd0-gbe0-02b6861cf973
Sincerely,
--
Josua Mayer <josua@solid-run.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] phy: armada-38x: add mux value for gbe port 0 on serdes 0
2024-01-06 14:56 [PATCH] phy: armada-38x: add mux value for gbe port 0 on serdes 0 Josua Mayer
@ 2024-01-24 6:00 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2024-01-24 6:00 UTC (permalink / raw)
To: Kishon Vijay Abraham I, Josua Mayer; +Cc: rmk, linux-phy, linux-kernel
On Sat, 06 Jan 2024 15:56:33 +0100, Josua Mayer wrote:
> Armada 38x supports 3 functions on serdes #0:
> - pcie port 0
> - sata port 0
> - gbe port 0
>
> Add missing entry for gbe port 0 on serdes 0 to the gbe_mux array.
>
> [...]
Applied, thanks!
[1/1] phy: armada-38x: add mux value for gbe port 0 on serdes 0
commit: f7c6249d76f1167f2fc9843311e54e2528666d11
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-24 6:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-06 14:56 [PATCH] phy: armada-38x: add mux value for gbe port 0 on serdes 0 Josua Mayer
2024-01-24 6:00 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®