]> git.dujemihanovic.xyz Git - u-boot.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)
commit9f6142aa0a456cda16aa01c3acbf3f22a7c1122f
tree2416f54361caeeaed9db2b965f2e0eb7d6b2b94b
parent16b9417b6ac64e8942064960a7e9b6fc8502a0a3
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