[PATCH] phy: ti: gmii-sel: Add a sanity check on the phy_id

Vinod Koul vkoul at kernel.org
Thu Nov 20 09:11:54 PST 2025


On Fri, 17 Oct 2025 19:04:23 +0300, Dan Carpenter wrote:
> The "phy_id" comes from the device tree so it's going to be correct.
> But static checkers sometimes complain when we have an upper bounds
> check with no lower bounds check.  Also it's a bit unusual that the
> lowest valid number is 1 instead of 0 so adding a check could
> potentially help someone.
> 
> 
> [...]

Applied, thanks!

[1/1] phy: ti: gmii-sel: Add a sanity check on the phy_id
      commit: 9d3daf9ca3239042c2cf473a76db2a77e6de22c6

Best regards,
-- 
~Vinod





More information about the linux-phy mailing list