From patchwork Fri Dec 16 11:50:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 706413 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3tg7t154v0z9t6g for ; Fri, 16 Dec 2016 22:50:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=verge.net.au header.i=@verge.net.au header.b="IjkVrrd+"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757146AbcLPLuR (ORCPT ); Fri, 16 Dec 2016 06:50:17 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:38939 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759764AbcLPLuN (ORCPT ); Fri, 16 Dec 2016 06:50:13 -0500 Received: from penelope.kanocho.kobe.vergenet.net (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPSA id 8AD0A25B80D; Fri, 16 Dec 2016 22:50:10 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1481889010; bh=dHzkexNaWGtbzcI8MZFYZxN2eoT7kPmqStN+pd4+F1I=; h=From:To:Cc:Subject:Date:From; b=IjkVrrd+++ObfNKyPC3s+rBt0SoL8d/rRf1+3i+Px4zdDPkD7fx2aiWgCl6Cxvqs2 ZJGy1fzlGU2fjv/Ts8OIukE8wk7uvn8InlnwAbKA/ddwOI+NY4pj1vxOQpxs7sXG67 8SCtBDyNTZVGFlx9YE+W5TBAcZ+jIXy/CwMV6lg4= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id 698C460644; Fri, 16 Dec 2016 12:50:06 +0100 (CET) From: Simon Horman To: Bjorn Helgaas Cc: Phil Edworthy , Magnus Damm , linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Harunobu Kurokawa , Simon Horman Subject: [PATCH pci/next] PCI: rcar: return ENODEV code when PCIe card does not insert Date: Fri, 16 Dec 2016 12:50:04 +0100 Message-Id: <1481889004-26124-1-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Harunobu Kurokawa R-Car PCIe does not support hotplug so it is appropriate to treat the absence of a PCIe card as an ENODEV error. Signed-off-by: Harunobu Kurokawa [simon: updated changelog] Signed-off-by: Simon Horman --- drivers/pci/host/pcie-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index aca85be101f8..0d9b96c3c49d 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c @@ -1165,7 +1165,7 @@ static int rcar_pcie_probe(struct platform_device *pdev) err = hw_init_fn(pcie); if (err) { dev_info(dev, "PCIe link down\n"); - err = 0; + err = -ENODEV; goto err_pm_put; }