Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp151495pxb; Mon, 13 Sep 2021 15:36:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp2MTU4cpDERlNZvRAbcttYGDAJ+lZMEqNXAJevXeDO70I4s3z3hltDJVK8OzJcHO1I0zr X-Received: by 2002:a05:6602:2c0f:: with SMTP id w15mr11424390iov.106.1631572609295; Mon, 13 Sep 2021 15:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631572609; cv=none; d=google.com; s=arc-20160816; b=0h93VAeXPYDROfITsxt4KNAoyw1uLaz+DQezABc2rViBmm+KlKhc3SkhPIARcjXKlr cKj45vuNFBC/ejlZ8V/whoYOHoUYg7USwrbboe4egXvFLkLYqJNZtBnsQsHNb7mSax45 KWxpQi0j8l46betfZNViE60JYOGHWjdFmsrg4tTGHmznpkbFT6Je0eHVp7QNbqyTEA9/ 2NTBNK4byr3867ydoyFBfJcE+2nQKBTuiAzBbznByQUqY8potYPCuFS/Y7IUXkYbD/Vj pswD06pfMRMPtKuZj6IeydJP/W5a9pAGXV7AIDE53Gv7Zj5qI9vVZUekgecfVpv8hKEg l+2g== 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=P1gSIU4bvSepO/VmXsPdy1vEuZnPnE4T8SxVs9D91inIx0/D34/YG6yJuf5nmXENMu qsrhDz5pkOiz8i/CshbWxeEVRm6ofAaCUJYSp954tG3t4N10FcqYXmENSk6u6EAgzuNS EU+a/BXTXVtd98iGxjWqdP2AnWRBj4FWuzbU7e6mt7wMBzWJs3M4MEfrTIlCvvOwHzLC zYmmWTxxAZ/LYlZk8+BWSk4wvYbcRcz13EcJonqXXbYeXGFVFXBDSwmU+tjY+5CBr5Aj 0cFntLUVJUGl7NyKT5sjCGReOjvAJsDT3lf4S8Wiw/HwCH0BVKoyKpSIvi7zVLgmJE/L bd4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xkPlOxtn; 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 u13si9902890jak.109.2021.09.13.15.36.37; Mon, 13 Sep 2021 15:36:49 -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=xkPlOxtn; 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 S241508AbhIMOLS (ORCPT + 99 others); Mon, 13 Sep 2021 10:11:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:59956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344146AbhIMOIs (ORCPT ); Mon, 13 Sep 2021 10:08:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF62B61AE0; Mon, 13 Sep 2021 13:40:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631540460; bh=dsms3c+evS3RID/JnKvL64KwUkp1O7wh9aJlk/eaKuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xkPlOxtnVFkRmTNuxI2VBXozO7xR7MkAPQMH7Yw3cvjOMcmbQCUGAQj+KBJauHnTh K+qjVl9QWKfgD+aC4qPnzMigK7Dlz/KhgL/ii/9w4TXsGglksnbQk5uqf3NwmCtTjJ tj3Cg5UiKwvEL9hMRZaW2xN18sZdpRK7DlmcDlzY= 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.13 203/300] i2c: synquacer: fix deferred probing Date: Mon, 13 Sep 2021 15:14:24 +0200 Message-Id: <20210913131116.225737993@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131109.253835823@linuxfoundation.org> References: <20210913131109.253835823@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