From nobody Wed Apr 1 20:54:06 2026 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED147274B43; Wed, 1 Apr 2026 14:34:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775054054; cv=none; b=KeFrckcHTVLDKrQK5YTm4AqFSSMdzGCZB3UiBahlqaTt/gqVV7fbpdgeGsv44AQxdPuiSaz50bRKgJhz/ss9z54MzLpJ3UvdHCxS/GXQ5K+ja7ZG3DeqDt5ujrWYBHxI6at10hRcYZ6bbl3RRpWCpimw8R2FcNywRbTA+l0asu4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775054054; c=relaxed/simple; bh=sWOORqm4zZMJjRATz6N4YPGXWzTJrPr0OC8wyxwYLAM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uUNTEIO5UGQ1u0a75YpHuyU4mAqUMEZotInjEUW3c8GnPFoQ/gPyIlYwbO3CREX+sonsfSg55JLKp4bLtvkj+O94OZ9qUxhXuFX9ltuS2K3eqm5biypr2vKFJ3wuvs4pbsWKg+j7IH9KMXM9Zsus2RTC9n5xqKro4o83wygaf5A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-CSE-ConnectionGUID: BQmi9ERdSTygLBIFM2V5kA== X-CSE-MsgGUID: /x7OaB2IT3aL7SXiNAM9ig== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 01 Apr 2026 23:34:05 +0900 Received: from ubuntu.adwin.renesas.com (unknown [10.226.93.25]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id C9F4C400FCDF; Wed, 1 Apr 2026 23:34:02 +0900 (JST) From: John Madieu To: claudiu.beznea.uj@bp.renesas.com, lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org Cc: robh@kernel.org, john.madieu@gmail.org, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, John Madieu Subject: [PATCH] PCI: rzg3s-host: Treat link-down as -ENODEV instead of error Date: Wed, 1 Apr 2026 16:33:47 +0200 Message-ID: <20260401143347.8463-1-john.madieu.xa@bp.renesas.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" rzg3s_pcie_host_init() failing to establish a PCIe link does not necessarily indicate a hardware or driver error; it may simply mean no card is inserted. Demote the message from dev_err_probe() to dev_info() and return -ENODEV so the driver defers gracefully rather than printing a spurious error. Signed-off-by: John Madieu Reviewed-by: Geert Uytterhoeven --- drivers/pci/controller/pcie-rzg3s-host.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/pcie-rzg3s-host.c b/drivers/pci/control= ler/pcie-rzg3s-host.c index bfc210e696ed..03be10aa5b54 100644 --- a/drivers/pci/controller/pcie-rzg3s-host.c +++ b/drivers/pci/controller/pcie-rzg3s-host.c @@ -1653,9 +1653,10 @@ rzg3s_pcie_host_setup(struct rzg3s_pcie_host *host, if (ret) return dev_err_probe(dev, ret, "Failed to init IRQ domain\n"); =20 - ret =3D rzg3s_pcie_host_init(host); - if (ret) { - dev_err_probe(dev, ret, "Failed to initialize the HW!\n"); + /* Failure to get a link might just be that no cards are inserted */ + if (rzg3s_pcie_host_init(host)) { + dev_info(dev, "PCIe link down!\n"); + ret =3D -ENODEV; goto teardown_irqdomain; } =20 --=20 2.25.1