|
31 | 31 | #define NETNEXT_VERSION "11"
|
32 | 32 |
|
33 | 33 | /* Information for net */
|
34 |
| -#define NET_VERSION "10" |
| 34 | +#define NET_VERSION "11" |
35 | 35 |
|
36 | 36 | #define DRIVER_VERSION "v1." NETNEXT_VERSION "." NET_VERSION
|
37 | 37 | #define DRIVER_AUTHOR "Realtek linux nic maintainers < [email protected]>"
|
|
109 | 109 | #define PLA_BP_EN 0xfc38
|
110 | 110 |
|
111 | 111 | #define USB_USB2PHY 0xb41e
|
| 112 | +#define USB_SSPHYLINK1 0xb426 |
112 | 113 | #define USB_SSPHYLINK2 0xb428
|
113 | 114 | #define USB_U2P3_CTRL 0xb460
|
114 | 115 | #define USB_CSR_DUMMY1 0xb464
|
|
384 | 385 | #define USB2PHY_SUSPEND 0x0001
|
385 | 386 | #define USB2PHY_L1 0x0002
|
386 | 387 |
|
| 388 | +/* USB_SSPHYLINK1 */ |
| 389 | +#define DELAY_PHY_PWR_CHG BIT(1) |
| 390 | + |
387 | 391 | /* USB_SSPHYLINK2 */
|
388 | 392 | #define pwd_dn_scale_mask 0x3ffe
|
389 | 393 | #define pwd_dn_scale(x) ((x) << 1)
|
@@ -4994,6 +4998,10 @@ static void rtl8153_up(struct r8152 *tp)
|
4994 | 4998 | ocp_data &= ~LANWAKE_PIN;
|
4995 | 4999 | ocp_write_byte(tp, MCU_TYPE_PLA, PLA_LWAKE_CTRL_REG, ocp_data);
|
4996 | 5000 |
|
| 5001 | + ocp_data = ocp_read_word(tp, MCU_TYPE_USB, USB_SSPHYLINK1); |
| 5002 | + ocp_data &= ~DELAY_PHY_PWR_CHG; |
| 5003 | + ocp_write_word(tp, MCU_TYPE_USB, USB_SSPHYLINK1, ocp_data); |
| 5004 | + |
4997 | 5005 | r8153_aldps_en(tp, true);
|
4998 | 5006 |
|
4999 | 5007 | switch (tp->version) {
|
|
0 commit comments