Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp778952ybc; Sat, 16 Nov 2019 08:32:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyPTjj+mwtd2pI+e6Iuga6RJDpqZBDE9u4MVjK133RFpe1KsEZRQk3zUqbIsNqkmnAaFYIl X-Received: by 2002:a17:906:a388:: with SMTP id k8mr10656472ejz.223.1573921938306; Sat, 16 Nov 2019 08:32:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921938; cv=none; d=google.com; s=arc-20160816; b=MyrEW8Jr8J3yxxKL9R8jcBdLzVtZxD+EqfNzFR6uZ7+MFybY9UYd27Lw28L9N7eEcJ 2M7qPzbFOCFHlF62IYDj8+KABy2hP+zQpC2bYmz2BjZcms41r6UV0AHRXvC8e/BlYF1T 8PYAoY+a12sxLl2LQAYY2TbxbFbPcEUPgRYRhs6Khznqw7cqTuxiZvmv03/hZe4ZrG2z APtTTP9bVX9PBhaN4urfrsUpQFJmAzqfk8P2hknQYyxGOuQFfRyItGsZKXR7nOtpl0il DEJvoXZtKOBtsJGpWOcnfKG9QRjX3cjMgnjnXHdSL5KBbKgnGtWdm4P6lTPup2/ADCma Xq+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=19w0NoRK6LCQeISQ8cspi96FofUY3aZ0xheY1rjd9lo=; b=iE95M/C1Hyw/LSWfO7xQ5tPFfDVFK1M3jH7ukm3eFH3UDvLb/yl1IiqOFx9o6owOWy rFL1+y6RXnAzzYfssMpsiXWFCnD0RFhO7VJM8deTF+3KAtOwqZ8/YNEFzuO6bGsWwOD2 +nRYS5g1dkYcLzHGNSJx7NUHqjJTU/kWXWpeFXJbny8mWsqMtszFBuD7sndqcxk0ub16 8R+tcEDXwz2Mj+q2vqJIbVC/1Cwwg0UWUvYuOvabboELkp21gzOhWQm7FnUmE+ilgCJD lvGwapg4GDEl0ZxCUSCAqKiqlH5dwDIxOqO8mOP6l2nBIytRFHBTCKQDAb4yLRjGCI2j mSMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vj6id7x1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30si6410832edb.403.2019.11.16.08.31.53; Sat, 16 Nov 2019 08:32:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vj6id7x1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732104AbfKPQ11 (ORCPT + 99 others); Sat, 16 Nov 2019 11:27:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:44792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727941AbfKPPlh (ORCPT ); Sat, 16 Nov 2019 10:41:37 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B3041207DD; Sat, 16 Nov 2019 15:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573918897; bh=BNG1lRWcivrcVSSJ5JADbls1JW9lsGLGjJzIes5u76M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vj6id7x1gbWWMmLcGbW+YWHyVXmVAMiK/uB94I5SJiziJun67hdQGbC1fYl6HlKDs Z63PM5FgkPEU8m7ZC/QbYMuTfn1Au6DeojXEslmf5dN6xTEe15Dnje9wypHIWL8Zx6 +I3o00JmakNnLUSdxEDXdmwkCkIUfEriuBMcjxxE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sergei Shtylyov , Mark Brown , Sasha Levin , linux-spi@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 023/237] spi: sh-msiof: fix deferred probing Date: Sat, 16 Nov 2019 10:37:38 -0500 Message-Id: <20191116154113.7417-23-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sergei Shtylyov [ Upstream commit f34c6e6257aa477cdfe7e9bbbecd3c5648ecda69 ] Since commit 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq") platform_get_irq() can return -EPROBE_DEFER. However, the driver overrides an error returned by that function with -ENOENT which breaks the deferred probing. Propagate upstream an error code returned by platform_get_irq() and remove the bogus "platform" from the error message, while at it... Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq") Signed-off-by: Sergei Shtylyov Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-sh-msiof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 101cd6aae2ea5..30ea0a2068e09 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -1343,8 +1343,8 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) i = platform_get_irq(pdev, 0); if (i < 0) { - dev_err(&pdev->dev, "cannot get platform IRQ\n"); - ret = -ENOENT; + dev_err(&pdev->dev, "cannot get IRQ\n"); + ret = i; goto err1; } -- 2.20.1