]> git.baikalelectronics.ru Git - uboot.git/commit
eth/r8152: modify rtl_clear_bp function
authorHayes Wang <hayeswang@realtek.com>
Tue, 16 Jun 2020 09:09:46 +0000 (17:09 +0800)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:36 +0000 (14:47 +0200)
commit754840457d7d6825f6890319f5a02140f6016905
tree2416f54361caeeaed9db2b965f2e0eb7d6b2b94b
parent6153035b8ce5e10e8ec285ebaaf172d7495c9db0
eth/r8152: modify rtl_clear_bp function

The original rtl_clear_bp() is used to clear the firmware of both
PLA and USB MCU. The new one could clear the firmware of PLA or
USB independently. It is unnecessary to clear firmware, if there
is no one to be updated.

Besides, clear the firmware by writing the relative registers in
bulk.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
drivers/usb/eth/r8152.h
drivers/usb/eth/r8152_fw.c