Re: [PATCH v5 5/8] r8152: Check for unplug in rtl_phy_patch_request()

From: Florian Fainelli
Date: Mon Oct 23 2023 - 21:25:35 EST




On 10/20/2023 2:06 PM, Douglas Anderson wrote:
If the adapter is unplugged while we're looping in
rtl_phy_patch_request() we could end up looping for 10 seconds (2 ms *
5000 loops). Add code similar to what's done in other places in the
driver to check for unplug and bail.

Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian