r8152: sync ocp base
authorHayes Wang <hayeswang@realtek.com>
Thu, 23 Dec 2021 09:27:02 +0000 (17:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:29:02 +0000 (12:29 +0100)
commitf547b0f8f3ceb1eb544b7df1df0196c0f834580c
treeca3881b8e427aea239300713a7014332de5aaaa2
parent5cc8813c496627bad3cef02f2cdfa1ba43a3a1e9
r8152: sync ocp base

commit b24edca309535c2d9af86aab95d64065f6ef1d26 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/r8152.c