Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75ce7191 authored by Jia-Ju Bai's avatar Jia-Ju Bai Committed by David S. Miller
Browse files

sky2: Replace mdelay with msleep in sky2_vpd_wait



sky2_vpd_wait is not called in an interrupt handler nor holding a spinlock.
The function mdelay in it can be replaced with msleep, to reduce busy wait.

Signed-off-by: default avatarJia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bcecb4bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4287,7 +4287,7 @@ static int sky2_vpd_wait(const struct sky2_hw *hw, int cap, u16 busy)
			dev_err(&hw->pdev->dev, "VPD cycle timed out\n");
			return -ETIMEDOUT;
		}
		mdelay(1);
		msleep(1);
	}

	return 0;