PCI: rockchip: dw-ep: Support setting link_gen

Change-Id: I1b93b04e45a39e93e774a2ade8a00865f1e6f5ed
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2025-03-09 17:03:04 +08:00
committed by Tao Huang
parent ad8d1ad7f2
commit 34ba677ded

View File

@@ -22,6 +22,7 @@
#include <linux/uaccess.h>
#include <uapi/linux/rk-pcie-ep.h>
#include "../../pci.h"
#include "../rockchip-pcie-dma.h"
#include "pcie-designware.h"
#include "pcie-dw-dmatest.h"
@@ -322,6 +323,8 @@ static int rockchip_pcie_get_io_resource(struct platform_device *pdev,
return -ENODEV;
}
rockchip->pci.link_gen = of_pci_get_max_link_speed(np);
return 0;
}