]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: replace return with break for ram code speedup mode timeout
authorHayes Wang <hayeswang@realtek.com>
Thu, 22 Apr 2021 08:48:02 +0000 (16:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Apr 2021 21:14:45 +0000 (14:14 -0700)
commitb3de6e77ea5b4cbe5dbb06b24f13b1df68fa078b
tree86af3dcea21ed7b07997169c0515dba490bdef7b
parent5ba3e8853665f193af43d1246780e176efa813ad
r8152: replace return with break for ram code speedup mode timeout

When the timeout occurs, we still have to run the following process
for releasing patch request. Otherwise, the PHY would keep no link.
Therefore, use break to stop the loop of loading firmware and
release the patch request rather than return the function directly.

Fixes: b9d1a4a52a9f ("r8152: support PHY firmware for RTL8156 series")
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c