Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp67447pxb; Mon, 13 Sep 2021 13:07:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy/4OA70nlfike+M4qU5yFmxBsRuk96eshEWII/RD/4Ia117juxxlenwkLl4REQ93ybKpO X-Received: by 2002:aa7:d1d3:: with SMTP id g19mr7818744edp.103.1631563679063; Mon, 13 Sep 2021 13:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631563679; cv=none; d=google.com; s=arc-20160816; b=H5Bh3gVIwMmYuUga++Onwoe4PB2qvgInCPD+xVXEF88vc7pXFjSI9HPD45+N8YHtqT YupYqaK0KSCn9VaGiRxcFcJz9/nhfInRgbtH2ZHYJAB44V5xmEud//h7MvDS8ie7s02F e0qpXI2YJP9TBIXDxm6nlW9Zk4oE6WKqiFJ40GwqgNinSL1Lo+ss4tQirsexLupDi1Ob Y3Behj6JXiEl83+PSczfezRg42rfNAZ1qJkVzQhk3H/o9oR/fT2OnmwUxbSNVOJBe/Ni 1+McfH9OrgI2OJPKhF+73n6UjeOpldtI8HqtWwRqB8rr/Cf/ctWTeBEHcUbSLuu/IC4y J5aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nYtK1SaUPfFGf7ydJUd++v+PMzhZq9e0rPD92087atA=; b=LjFTndtcgd9NQXHGJarqRaM4hmwFBIz8STe87ILp7RjdYSaSzWPbjM/8jUPeIyMRoO shILzmDOSImqD1Ijq/h1rqaymMXz/y6KE2XBfULCtKWFqJmtt1j0WmwP641dA9y1isKf uKaYxv+x+Kdx8Rom1zigymGoAxo1CHMJmu3M7CGDhYN+VW0EWjmjGdNwKVCAd/PvO7wV 4mFTj1F2Jl4f74Z23L0Sj9LXdJuAyZ+fVlqoQ2p5o4XAClD9o3QgSCzDCfsg2ene8k3s ieaLlO8UdUe55yJ/nEUugBKXFRXZnqMopF64WXz+dm6WU6ALAD9eJpd0sxm9beWVfb0B ZxlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2wf8lago; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si9990319edh.403.2021.09.13.13.07.35; Mon, 13 Sep 2021 13:07:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2wf8lago; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243534AbhIMNsC (ORCPT + 99 others); Mon, 13 Sep 2021 09:48:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:41644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241193AbhIMNm7 (ORCPT ); Mon, 13 Sep 2021 09:42:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 90E666140F; Mon, 13 Sep 2021 13:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539827; bh=dsms3c+evS3RID/JnKvL64KwUkp1O7wh9aJlk/eaKuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2wf8lagob0FrCdK4VdRYojB3N7Cdk60aJcg/9MSaYr8Vb6jqUW+lJqA1RFyalns1c lHK7/dKIKfxzWKc3ql2WPMrWdCpHWUbDGYj6sRRtqEkfs6Ord7IEfvQsou/LgCUY2E hZt4RjWzQ9SiTPeOV8RklI66tRqmTOIKfLiTOcvg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergey Shtylyov , Ard Biesheuvel , Wolfram Sang , Sasha Levin Subject: [PATCH 5.10 169/236] i2c: synquacer: fix deferred probing Date: Mon, 13 Sep 2021 15:14:34 +0200 Message-Id: <20210913131106.124621548@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sergey Shtylyov [ Upstream commit 8d744da241b81f4211f4813b0d3c1981326fa9ca ] The driver overrides the error codes returned by platform_get_irq() to -ENODEV, so if it returns -EPROBE_DEFER, the driver will fail the probe permanently instead of the deferred probing. Switch to propagating the error codes upstream. Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller") Signed-off-by: Sergey Shtylyov Acked-by: Ard Biesheuvel Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-synquacer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-synquacer.c b/drivers/i2c/busses/i2c-synquacer.c index 31be1811d5e6..e4026c5416b1 100644 --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -578,7 +578,7 @@ static int synquacer_i2c_probe(struct platform_device *pdev) i2c->irq = platform_get_irq(pdev, 0); if (i2c->irq < 0) - return -ENODEV; + return i2c->irq; ret = devm_request_irq(&pdev->dev, i2c->irq, synquacer_i2c_isr, 0, dev_name(&pdev->dev), i2c); -- 2.30.2