Merge branch 'r8152'

Hayes Wang says:

====================
r8152: patches about firmware

The patches fix the issues when the firmware exists.

For the multiple OS, the firmware may be loaded by the
driver of the other OS. And the Linux driver has influences
on it.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Changed files
+2 -28
drivers
net
usb
+2 -28
drivers/net/usb/r8152.c
··· 24 24 #include <net/ip6_checksum.h> 25 25 26 26 /* Version Information */ 27 - #define DRIVER_VERSION "v1.06.0 (2014/03/03)" 27 + #define DRIVER_VERSION "v1.06.1 (2014/10/01)" 28 28 #define DRIVER_AUTHOR "Realtek linux nic maintainers <nic_swsd@realtek.com>" 29 29 #define DRIVER_DESC "Realtek RTL8152/RTL8153 Based USB Ethernet Adapters" 30 30 #define MODULENAME "r8152" ··· 2201 2201 } 2202 2202 } 2203 2203 2204 - static void rtl_clear_bp(struct r8152 *tp) 2205 - { 2206 - ocp_write_dword(tp, MCU_TYPE_PLA, PLA_BP_0, 0); 2207 - ocp_write_dword(tp, MCU_TYPE_PLA, PLA_BP_2, 0); 2208 - ocp_write_dword(tp, MCU_TYPE_PLA, PLA_BP_4, 0); 2209 - ocp_write_dword(tp, MCU_TYPE_PLA, PLA_BP_6, 0); 2210 - ocp_write_dword(tp, MCU_TYPE_USB, USB_BP_0, 0); 2211 - ocp_write_dword(tp, MCU_TYPE_USB, USB_BP_2, 0); 2212 - ocp_write_dword(tp, MCU_TYPE_USB, USB_BP_4, 0); 2213 - ocp_write_dword(tp, MCU_TYPE_USB, USB_BP_6, 0); 2214 - mdelay(3); 2215 - ocp_write_word(tp, MCU_TYPE_PLA, PLA_BP_BA, 0); 2216 - ocp_write_word(tp, MCU_TYPE_USB, USB_BP_BA, 0); 2217 - } 2218 - 2219 - static void r8153_clear_bp(struct r8152 *tp) 2220 - { 2221 - ocp_write_byte(tp, MCU_TYPE_PLA, PLA_BP_EN, 0); 2222 - ocp_write_byte(tp, MCU_TYPE_USB, USB_BP_EN, 0); 2223 - rtl_clear_bp(tp); 2224 - } 2225 - 2226 2204 static void r8153_teredo_off(struct r8152 *tp) 2227 2205 { 2228 2206 u32 ocp_data; ··· 2242 2264 data &= ~BMCR_PDOWN; 2243 2265 r8152_mdio_write(tp, MII_BMCR, data); 2244 2266 } 2245 - 2246 - rtl_clear_bp(tp); 2247 2267 2248 2268 set_bit(PHY_RESET, &tp->flags); 2249 2269 } ··· 2392 2416 data &= ~BMCR_PDOWN; 2393 2417 r8152_mdio_write(tp, MII_BMCR, data); 2394 2418 } 2395 - 2396 - r8153_clear_bp(tp); 2397 2419 2398 2420 if (tp->version == RTL_VER_03) { 2399 2421 data = ocp_reg_read(tp, OCP_EEE_CFG); ··· 3397 3423 if (test_bit(RTL8152_UNPLUG, &tp->flags)) 3398 3424 return; 3399 3425 3400 - r8153_power_cut_en(tp, true); 3426 + r8153_power_cut_en(tp, false); 3401 3427 } 3402 3428 3403 3429 static int rtl_ops_init(struct r8152 *tp, const struct usb_device_id *id)