diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index db606b603884530aa0f433c56a4d080f0e0c6714..26ffb67f1da29ad7feec464a2a80c04f2d82f7bb 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -8781,7 +8781,7 @@ static int tg3_phys_id(struct net_device *dev, u32 data)
 		return -EAGAIN;
 
 	if (data == 0)
-		data = 2;
+		data = UINT_MAX / 2;
 
 	for (i = 0; i < (data * 2); i++) {
 		if ((i % 2) == 0)