]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit51b35bf603688aaf3c102bd18d95c73eb5d91f60
tree9c064587a708a76bb88ec53277d7d9dd666fcd84
parent560a10a02827923fbcebbb33f3d18508280de282
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