Commit bc65cc4
r8152: Check for unplug in r8153b_ups_en() / r8153c_ups_en()
If the adapter is unplugged while we're looping in r8153b_ups_en() /
r8153c_ups_en() we could end up looping for 10 seconds (20 ms * 500
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 <[email protected]>
Reviewed-by: Grant Grundler <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent dc90ba3 commit bc65cc4
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3663 | 3663 | | |
3664 | 3664 | | |
3665 | 3665 | | |
| 3666 | + | |
| 3667 | + | |
3666 | 3668 | | |
3667 | 3669 | | |
3668 | 3670 | | |
| |||
3703 | 3705 | | |
3704 | 3706 | | |
3705 | 3707 | | |
| 3708 | + | |
| 3709 | + | |
3706 | 3710 | | |
3707 | 3711 | | |
3708 | 3712 | | |
| |||
0 commit comments