r8152: replace several functions about phy patch request
authorHayes Wang <hayeswang@realtek.com>
Wed, 3 Feb 2021 09:14:28 +0000 (17:14 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Feb 2021 04:36:51 +0000 (20:36 -0800)
commita08c0d309d8c078d22717d815cf9853f6f2c07bd
tree9c064587a708a76bb88ec53277d7d9dd666fcd84
parentadd285bce37720675af5b1873f71af8561d0e2fe
r8152: replace several functions about phy patch request

Replace r8153_patch_request() with rtl_phy_patch_request().
Replace r8153_pre_ram_code() with rtl_pre_ram_code().
Replace r8153_post_ram_code() with rtl_post_ram_code().
Add rtl_patch_key_set().

The new functions have an additional parameter. It is used to wait
the patch request command finished. When the PHY is resumed from
the state of power cut, the PHY is at a safe mode and the
OCP_PHY_PATCH_STAT wouldn't be updated. For this situation, it is
safe to set patch request command without waiting OCP_PHY_PATCH_STAT.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/r8152.c