diff options
author | Josua Mayer <josua@solid-run.com> | 2024-01-06 15:56:33 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-01-24 06:53:12 +0100 |
commit | f7c6249d76f1167f2fc9843311e54e2528666d11 (patch) | |
tree | 23b57e3510dff1ab1ff01e59fef506f9873bf11e /drivers/phy/marvell | |
parent | phy: qcom-qmp-pcie: Add support for X1E80100 g3x2 and g4x2 PCIE (diff) | |
download | linux-f7c6249d76f1167f2fc9843311e54e2528666d11.tar.xz linux-f7c6249d76f1167f2fc9843311e54e2528666d11.zip |
phy: armada-38x: add mux value for gbe port 0 on serdes 0
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>
Link: https://lore.kernel.org/r/20240106-fix-a38x-comphy-sd0-gbe0-v1-1-c7fd87272050@solid-run.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/marvell')
-rw-r--r-- | drivers/phy/marvell/phy-armada38x-comphy.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 }, |