Commit 5e5a3bf
PCI: dw-rockchip: Use rockchip_pcie_link_up() to check link up instead of open coding
Some of the callers of rockchip_pcie_link_up() are open coding the
rockchip_pcie_link_up() function, leading to code duplication. So switch
them to use rockchip_pcie_link_up() function.
Also, use the FIELD_GET() macro to simplify the link up check in
rockchip_pcie_link_up().
Signed-off-by: Hans Zhang <18255117159@163.com>
[mani: subject and description rewording]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://patch.msgid.link/20250427125316.99627-4-18255117159@163.com1 parent ae8ed2b commit 5e5a3bf
1 file changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 191 | + | |
195 | 192 | | |
196 | 193 | | |
197 | 194 | | |
| |||
450 | 447 | | |
451 | 448 | | |
452 | 449 | | |
453 | | - | |
| 450 | + | |
454 | 451 | | |
455 | 452 | | |
456 | 453 | | |
| |||
459 | 456 | | |
460 | 457 | | |
461 | 458 | | |
462 | | - | |
463 | | - | |
| 459 | + | |
464 | 460 | | |
465 | 461 | | |
466 | 462 | | |
| |||
477 | 473 | | |
478 | 474 | | |
479 | 475 | | |
480 | | - | |
| 476 | + | |
481 | 477 | | |
482 | 478 | | |
483 | 479 | | |
| |||
491 | 487 | | |
492 | 488 | | |
493 | 489 | | |
494 | | - | |
495 | | - | |
| 490 | + | |
496 | 491 | | |
497 | 492 | | |
498 | 493 | | |
| |||
0 commit comments