Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Hans Zhang <hans.zhang@cixtech.com>
To: Manivannan Sadhasivam <mani@kernel.org>
Cc: bhelgaas@google.com, helgaas@kernel.org, lpieralisi@kernel.org,
	kw@linux.com, robh@kernel.org, kwilczynski@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, mpillai@cadence.com,
	fugang.duan@cixtech.com, guoyin.chen@cixtech.com,
	peter.chen@cixtech.com, cix-kernel-upstream@cixtech.com,
	linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v10 04/10] PCI: cadence: Add support for High Perf Architecture (HPA) controller
Date: Fri, 31 Oct 2025 17:20:08 +0800	[thread overview]
Message-ID: <b6f8d7cf-bbd0-42eb-8d73-5715a614ae98@cixtech.com> (raw)
In-Reply-To: <u7g4b4cgh4usmndpzatfg24x37sabd7psxik6pxmbpu2764d6s@zczbojakk4c4>



On 10/31/2025 5:11 PM, Manivannan Sadhasivam wrote:
>> +
>> +static int cdns_pcie_hpa_host_wait_for_link(struct cdns_pcie *pcie)
>> +{
>> +     struct device *dev = pcie->dev;
>> +     struct cdns_pcie_rc *rc;
>> +     int retries, ret;
>> +
>> +     rc = container_of(pcie, struct cdns_pcie_rc, pcie);
>> +
>> +     /* Check if the link is up or not */
>> +     for (retries = 0; retries < LINK_WAIT_MAX_RETRIES; retries++) {
>> +             if (cdns_pcie_hpa_link_up(pcie)) {
>> +                     dev_info(dev, "Link up\n");
>> +                     return 0;
>> +             }
>> +             usleep_range(LINK_WAIT_USLEEP_MIN, LINK_WAIT_USLEEP_MAX);
>> +     }
>> +     if (rc->quirk_retrain_flag)
>> +             ret = cdns_pcie_retrain(pcie);
>> +     return ret;
> If 'quirk_retrain_flag' was not set, you are 'ret' will be uninitialized.


Hi Mani,

Thank you very much for your reply.

When the robot gave a warning, I replied as follows:

https://lore.kernel.org/linux-pci/293858b1-db91-4525-b8b3-c98c7837ec73@cixtech.com/

Will change.


Please ask Manikandan to explain any other questions to Mani.


Best regards,
Hans


  reply	other threads:[~2025-10-31  9:20 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-20  4:28 [PATCH v10 00/10] Enhance the PCIe controller driver for next generation controllers hans.zhang
2025-10-20  4:28 ` [PATCH v10 01/10] PCI: cadence: Add module support for platform controller driver hans.zhang
2025-10-20  4:28 ` [PATCH v10 02/10] PCI: cadence: Split PCIe controller header file hans.zhang
2025-10-20  4:28 ` [PATCH v10 03/10] PCI: cadence: Move PCIe RP common functions to a separate file hans.zhang
2025-10-20  4:28 ` [PATCH v10 04/10] PCI: cadence: Add support for High Perf Architecture (HPA) controller hans.zhang
2025-10-20  7:19   ` kernel test robot
2025-10-20  7:27     ` Hans Zhang
2025-10-31  9:11   ` Manivannan Sadhasivam
2025-10-31  9:20     ` Hans Zhang [this message]
2025-11-02  4:15     ` Manikandan Karunakaran Pillai
2025-11-02  5:40       ` Manivannan Sadhasivam
2025-11-02  5:51         ` Manikandan Karunakaran Pillai
2025-11-02 15:08           ` Manivannan Sadhasivam
2025-11-02 15:53             ` Manikandan Karunakaran Pillai
2025-11-02 16:39               ` Manivannan Sadhasivam
2025-10-20  4:28 ` [PATCH v10 05/10] dt-bindings: PCI: Add CIX Sky1 PCIe Root Complex bindings hans.zhang
2025-10-20  4:28 ` [PATCH v10 06/10] PCI: Add Cix Technology Vendor and Device ID hans.zhang
2025-10-20  4:28 ` [PATCH v10 07/10] PCI: sky1: Add PCIe host support for CIX Sky1 hans.zhang
2025-10-31  9:15   ` Manivannan Sadhasivam
2025-10-31  9:22     ` Hans Zhang
2025-10-20  4:28 ` [PATCH v10 08/10] MAINTAINERS: add entry for CIX Sky1 PCIe driver hans.zhang
2025-10-20  4:28 ` [PATCH v10 09/10] arm64: dts: cix: Add PCIe Root Complex on sky1 hans.zhang
2025-10-20  4:28 ` [PATCH v10 10/10] arm64: dts: cix: Enable PCIe on the Orion O6 board hans.zhang
2025-10-30  8:45 ` [PATCH v10 00/10] Enhance the PCIe controller driver for next generation controllers Hans Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b6f8d7cf-bbd0-42eb-8d73-5715a614ae98@cixtech.com \
    --to=hans.zhang@cixtech.com \
    --cc=bhelgaas@google.com \
    --cc=cix-kernel-upstream@cixtech.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fugang.duan@cixtech.com \
    --cc=guoyin.chen@cixtech.com \
    --cc=helgaas@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kw@linux.com \
    --cc=kwilczynski@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=mpillai@cadence.com \
    --cc=peter.chen@cixtech.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox