[PATCH v2 3/3] PCI: dw-rockchip: Unify link status checks with FIELD_GET
Niklas Cassel
cassel at kernel.org
Wed Apr 23 06:48:36 PDT 2025
On Wed, Apr 23, 2025 at 06:54:15PM +0800, Hans Zhang wrote:
> Link-up detection manually checked PCIE_LINKUP bits across RC/EP modes,
> leading to code duplication. Centralize the logic using FIELD_GET. This
> removes redundancy and abstracts hardware-specific bit masking, ensuring
> consistent link state handling.
>
> Signed-off-by: Hans Zhang <18255117159 at 163.com>
> ---
Reviewed-by: Niklas Cassel <cassel at kernel.org>
More information about the Linux-rockchip
mailing list