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: 9477821 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 85674607EE for ; Fri, 16 Dec 2016 11:50:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B2D628615 for ; Fri, 16 Dec 2016 11:50:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7013828783; Fri, 16 Dec 2016 11:50:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B75082862A for ; Fri, 16 Dec 2016 11:50:25 +0000 (UTC) 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 X-Virus-Scanned: ClamAV using ClamSMTP 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; }