]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: sync ocp base
authorHayes Wang <hayeswang@realtek.com>
Thu, 23 Dec 2021 09:27:02 +0000 (17:27 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Dec 2021 17:56:06 +0000 (09:56 -0800)
commit56492cd9cab0d1fbde3690ebf949929576408e98
tree0ecbcf762f07bd810c7f84a8128a3a6209407180
parenta06fc6701707138abb085b13d9beff95a911dbf2
r8152: sync ocp base

There are some chances that the actual base of hardware is different
from the value recorded by driver, so we have to reset the variable
of ocp_base to sync it.

Set ocp_base to -1. Then, it would be updated and the new base would be
set to the hardware next time.

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