[RFC] ipq40xx: fix port 1 status for IPQ40xx switches #3491
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently in ar40xx_phy_read_status and ar40xx_phy_config_aneg
functions there is a check which, presumably, should fail if the port
doesn't exists.
However in the current implementation, this check seems to be pointless
and moreover prevents the port 1 of the switch to be correctly enabled
if polling is required.
This commit fixes the last issue.
Even if these changes are more or less acked by other developers in this thread and should be even safe to completely remove the
ar40xx_phy_read_statusandar40xx_phy_config_anegfunctions, I can't be 100% sure that won't negatively impact other ipq40xx devices. Because of this I am marking this PR with RFC.This commit fixes the "wan port" problem for this device.
Signed-off-by: Davide Fioravanti pantanastyle@gmail.com