Commit 8df0fa9
net: hns3: enable/disable ring in the enet while doing UP/DOWN
While hardware gets into reset status, the firmware will not respond to
driver's command request, which may cause ring not disabled problem
during reset process.
So this patch uses register instead of command to enable/disable the ring
in the enet while doing UP/DOWN operation.
Also, HNS3_RING_RX_VM_REG is previously unused, so change it to the
correct meaning, and add a wrapper function for readl().
Fixes: 46a3df9 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 7edff53 commit 8df0fa9
File tree
4 files changed
+41
-44
lines changed- drivers/net/ethernet/hisilicon/hns3
- hns3pf
- hns3vf
4 files changed
+41
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
315 | 333 | | |
316 | 334 | | |
317 | 335 | | |
| |||
334 | 352 | | |
335 | 353 | | |
336 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
337 | 359 | | |
338 | 360 | | |
339 | 361 | | |
| |||
344 | 366 | | |
345 | 367 | | |
346 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
347 | 372 | | |
348 | 373 | | |
349 | 374 | | |
| |||
385 | 410 | | |
386 | 411 | | |
387 | 412 | | |
| 413 | + | |
388 | 414 | | |
389 | 415 | | |
390 | 416 | | |
| |||
395 | 421 | | |
396 | 422 | | |
397 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
398 | 428 | | |
399 | 429 | | |
400 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
577 | 579 | | |
578 | 580 | | |
579 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
580 | 587 | | |
581 | 588 | | |
582 | 589 | | |
| |||
589 | 596 | | |
590 | 597 | | |
591 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
592 | 602 | | |
593 | 603 | | |
594 | 604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4843 | 4843 | | |
4844 | 4844 | | |
4845 | 4845 | | |
4846 | | - | |
4847 | | - | |
4848 | | - | |
4849 | | - | |
4850 | 4846 | | |
4851 | 4847 | | |
4852 | 4848 | | |
| |||
4866 | 4862 | | |
4867 | 4863 | | |
4868 | 4864 | | |
4869 | | - | |
4870 | 4865 | | |
4871 | 4866 | | |
4872 | 4867 | | |
| |||
4879 | 4874 | | |
4880 | 4875 | | |
4881 | 4876 | | |
4882 | | - | |
4883 | | - | |
4884 | | - | |
4885 | 4877 | | |
4886 | 4878 | | |
4887 | 4879 | | |
| |||
Lines changed: 0 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | 959 | | |
967 | 960 | | |
968 | 961 | | |
| |||
1593 | 1586 | | |
1594 | 1587 | | |
1595 | 1588 | | |
1596 | | - | |
1597 | 1589 | | |
1598 | | - | |
1599 | | - | |
1600 | | - | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | 1590 | | |
1612 | 1591 | | |
1613 | 1592 | | |
| |||
1622 | 1601 | | |
1623 | 1602 | | |
1624 | 1603 | | |
1625 | | - | |
1626 | 1604 | | |
1627 | | - | |
1628 | 1605 | | |
1629 | 1606 | | |
1630 | 1607 | | |
1631 | | - | |
1632 | | - | |
1633 | | - | |
1634 | | - | |
1635 | | - | |
1636 | | - | |
1637 | | - | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | 1608 | | |
1644 | 1609 | | |
1645 | 1610 | | |
| |||
0 commit comments