net: phy: qca83xx: use PHY_ID_MATCH_EXACT
Subsystems (4)
PATCH 1/1 net: phy: qca83xx: use PHY_ID_MATCH_EXACT
No need for the mask when there's already a macro for this.
--- drivers/net/phy/qcom/qca83xx.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
drivers/net/phy/qcom/qca83xx.c +3 -7
@@ -15,7 +15,6 @@#define QCA8327_A_PHY_ID 0x004dd033#define QCA8327_B_PHY_ID 0x004dd034#define QCA8337_PHY_ID 0x004dd036 -#define QCA8K_PHY_ID_MASK 0xffffffff#define QCA8K_DEVFLAGS_REVISION_MASK GENMASK(2, 0)
@@ -216,8 +215,7 @@ static int qca8327_suspend(struct phy_device *phydev)static struct phy_driver qca83xx_driver[] = { {/* QCA8337 */ - .phy_id =QCA8337_PHY_ID , - .phy_id_mask =QCA8K_PHY_ID_MASK , +PHY_ID_MATCH_EXACT (QCA8337_PHY_ID ), .name ="Qualcomm Atheros 8337 internal PHY" ,/* PHY_GBIT_FEATURES */ .probe = qca83xx_probe,
@@ -231,8 +229,7 @@ static struct phy_driver qca83xx_driver[] = { .resume = qca83xx_resume, }, {/* QCA8327-A from switch QCA8327-AL1A */ - .phy_id = QCA8327_A_PHY_ID, - .phy_id_mask = QCA8K_PHY_ID_MASK, + PHY_ID_MATCH_EXACT(QCA8327_A_PHY_ID), .name = "Qualcomm Atheros 8327-A internal PHY",/* PHY_GBIT_FEATURES */ .link_change_notify = qca83xx_link_change_notify,
@@ -247,8 +244,7 @@ static struct phy_driver qca83xx_driver[] = { .resume = qca83xx_resume, }, {/* QCA8327-B from switch QCA8327-BL1A */ - .phy_id = QCA8327_B_PHY_ID, - .phy_id_mask = QCA8K_PHY_ID_MASK, + PHY_ID_MATCH_EXACT(QCA8327_B_PHY_ID), .name = "Qualcomm Atheros 8327-B internal PHY",/* PHY_GBIT_FEATURES */ .link_change_notify = qca83xx_link_change_notify,
Signature · 1 line
2.46.0
Quoted 3 lines · Rosen Penev
No need for the mask when there's already a macro for this.
Signed-off-by Rosen Penev <[email protected]>
The Subject should be [PATCH net-next]. Yes, we all keep forgetting it, but it is important to the CI.
Andrew
Quoted 8 lines · Andrew Lunn
Quoted 3 lines · Rosen Penev
No need for the mask when there's already a macro for this.
Signed-off-by Rosen Penev <[email protected]>The Subject should be [PATCH net-next]. Yes, we all keep forgetting it, but it is important to the CI.
Procedural mistake. Need to use --subject-prefix looks like. Should I resend?
Quoted 4 lines
Reviewed-by Andrew Lunn <[email protected]>Andrew
Andrew Lunn
maintainerQuoted 1 line
Procedural mistake. Need to use --subject-prefix looks like. Should I resend?
Wait 3 days. If it does not get merged, please do resend.
Andrew
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 6 lines · On Wed, 4 Sep 2024 13:56:59 -0700 you wrote:
No need for the mask when there's already a macro for this.
Signed-off-by Rosen Penev <[email protected]>--- drivers/net/phy/qcom/qca83xx.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
Here is the summary with links:
- net: phy: qca83xx: use PHY_ID_MATCH_EXACT
https://git.kernel.org/netdev/net-next/c/cca0d69baf95
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html