Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp158802pxx; Wed, 28 Oct 2020 01:04:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz03QM9HOkm0wPCzhYLfNoFACSl6QiFCA90N7riwWqC3ZRMyimSAJsSBT3QqAzcjT40tmZd X-Received: by 2002:a17:906:aec1:: with SMTP id me1mr6720762ejb.225.1603872274417; Wed, 28 Oct 2020 01:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603872274; cv=none; d=google.com; s=arc-20160816; b=cxfuwlbDnTIE3fY+pefbA+HEhy4xigIljnLyrYgrXOyxVMT+s8E3GegUR2F/3rlAVk XAgdz6n8VjIAZCWcnFzvTnVKL+q3QSYySyf3qsbKsCNoEOdkv5dwHFGlfJp1GdbUreiY ++OQp52+oyknFAb4Db8YZu20QGwenO1SFB8poDSUgT+sO5GYj6tecL066chf8zDpkfr3 lKktvSsh0RTiK4dvy3MHvT0IK+od62aKMJ4jASXI/eXjmAbfayMxpvS+xOoCVeRNiUeU 9UPfZ5NCDbi4qfoi2BwcGCA1dtTFgtbJhiK52i6KQLmWLoTHpj3Vdj8VCd80v1YLoI8l hcew== 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=1HZo5MU70r1P00OJgL26sM8rZvuAqM44pL3piwBMNDA=; b=HnpTwrAwVZrY0VCAwMyM0s7OMgx8oySzVhKfZMN6rJVSLsBLCR6t+XdwH1IN46MBxE OdntdLQ5h3d6TYufxppNc8rdI8vZmseSD321bc1nEPPeHI/7ULD9AK/3GWreBd+wrvVW w76uqK+qi/AgHUmGneF5Ga/Tj7+aKPSURAVteEVhhe9O5qRFU/ZXini8BzqB22zkAstq GLwKvZhUt3SxHpWbrXI3BfEe2PXpOdh4IhtF6vzW7HO7q2kYqz6+Z1XH5F1F1R+LJZBt rbidQ2Tmv3bS1vFRGvuF3Em3Or5pXh4+K3e2DE2qte/W9WJbLSg/J5NH6O5/e9Mv3Dz7 XVYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eyaQgfL8; 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=fail (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 b6si3402013edu.343.2020.10.28.01.04.12; Wed, 28 Oct 2020 01:04:34 -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=@kernel.org header.s=default header.b=eyaQgfL8; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S368192AbgJ0N5Z (ORCPT + 99 others); Tue, 27 Oct 2020 09:57:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:44152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S368183AbgJ0N5X (ORCPT ); Tue, 27 Oct 2020 09:57:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B91921D41; Tue, 27 Oct 2020 13:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807042; bh=FUWGOvcgF8CxKp2eOI162AUHqIMLMtEWwU9BRJDzHgI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eyaQgfL8erqWbuWZRA2Vv8RNYouvShrt6i9esLeeFKlmuo9QWc97iH2G92f2pU5Nc qrfLJ+0mBxS1djAjQ7YAjTcgAqOIvxb4EoPD9tGoho2G+GSdDEMMzLQSmPq0mTm97y Am7epBMm6+d3rMvXuk+YqfwFYm4ZP9CjVbvVIaPs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sylwester Nawrocki , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.4 021/112] media: Revert "media: exynos4-is: Add missed check for pinctrl_lookup_state()" Date: Tue, 27 Oct 2020 14:48:51 +0100 Message-Id: <20201027134901.578412367@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134900.532249571@linuxfoundation.org> References: <20201027134900.532249571@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: Sylwester Nawrocki [ Upstream commit 00d21f325d58567d81d9172096692d0a9ea7f725 ] The "idle" pinctrl state is optional as documented in the DT binding. The change introduced by the commit being reverted makes that pinctrl state mandatory and breaks initialization of the whole media driver, since the "idle" state is not specified in any mainline dts. This reverts commit 18ffec750578 ("media: exynos4-is: Add missed check for pinctrl_lookup_state()") to fix the regression. Fixes: 18ffec750578 ("media: exynos4-is: Add missed check for pinctrl_lookup_state()") Signed-off-by: Sylwester Nawrocki Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/exynos4-is/media-dev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c index 31cc7d94064e3..6bc3c8a2e1443 100644 --- a/drivers/media/platform/exynos4-is/media-dev.c +++ b/drivers/media/platform/exynos4-is/media-dev.c @@ -1170,11 +1170,9 @@ static int fimc_md_get_pinctrl(struct fimc_md *fmd) if (IS_ERR(pctl->state_default)) return PTR_ERR(pctl->state_default); + /* PINCTRL_STATE_IDLE is optional */ pctl->state_idle = pinctrl_lookup_state(pctl->pinctrl, PINCTRL_STATE_IDLE); - if (IS_ERR(pctl->state_idle)) - return PTR_ERR(pctl->state_idle); - return 0; } -- 2.25.1