PCI: mobiveil: Return bool from link up check
authorHans Zhang <18255117159@163.com>
Sat, 10 May 2025 16:07:09 +0000 (00:07 +0800)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 13 May 2025 09:16:48 +0000 (10:16 +0100)
commit0a9d6a3d0fd1650b9ee00bc8150828e19cadaf23
treebbb72da2a66ce1e4f28f13bbec8bb5cb9819f7c3
parentf46bfb1d3c6a601caad90eb3c11a1e1e17cccb1a
PCI: mobiveil: Return bool from link up check

PCIe link status check is supposed to return a boolean to indicate whether
the link is up or not. So update ls_g4_pcie_link_up() to return bool and
also simplify the LTSSM state check.

Signed-off-by: Hans Zhang <18255117159@163.com>
[mani: commit message rewording]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20250510160710.392122-3-18255117159@163.com
drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c
drivers/pci/controller/mobiveil/pcie-mobiveil.h