Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
lx2160a_build
Commits
de958436
Commit
de958436
authored
Nov 25, 2023
by
Josua Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linux: fix bug in serdes driver breaking all SFPs of Honeycomb board
parent
b94fc621
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
patches/linux-LSDK-21.08/0078-phy-lynx-28g-fix-probe-when-fsl-unmanaged-lanes-isn-.patch
...hy-lynx-28g-fix-probe-when-fsl-unmanaged-lanes-isn-.patch
+32
-0
No files found.
patches/linux-LSDK-21.08/0078-phy-lynx-28g-fix-probe-when-fsl-unmanaged-lanes-isn-.patch
0 → 100644
View file @
de958436
From 6ed01309ffc501a37084fc61f38eea95601e9c77 Mon Sep 17 00:00:00 2001
From: Josua Mayer <josua@solid-run.com>
Date: Sat, 25 Nov 2023 15:36:56 +0100
Subject: [PATCH] phy: lynx-28g: fix probe when fsl,unmanaged-lanes isn't
specified
The recently added fsl,unmanaged-lanes property is intended to be
optional. In case of_property_read_u32 returns -EINVAL, the property
does not exist and probe may continue.
Fixes: "phy: lynx-28g: add support for specifying unmanaged lanes"
Signed-off-by: Josua Mayer <josua@solid-run.com>
---
drivers/phy/freescale/phy-fsl-lynx-28g.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/freescale/phy-fsl-lynx-28g.c b/drivers/phy/freescale/phy-fsl-lynx-28g.c
index 7e088fa4efce..b050fdf68b40 100644
--- a/drivers/phy/freescale/phy-fsl-lynx-28g.c
+++ b/drivers/phy/freescale/phy-fsl-lynx-28g.c
@@ -661,7 +661,7 @@
static int lynx_28g_probe(struct platform_device *pdev)
fwnode = dev_fwnode(dev);
if (fwnode && is_of_node(fwnode)) {
ret = of_property_read_u32(to_of_node(fwnode), "fsl,unmanaged-lanes", &unmanaged_lanes);
- if (ret) {
+ if (ret && ret != -EINVAL) {
dev_info(dev, "failed to read fsl,unmanaged-lanes property: %d\n", ret);
return ret;
}
--
2.35.3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment