Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp217228pxx; Wed, 28 Oct 2020 03:07:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXb1Lxr5ojyY9HqamBflRFlVulPfAizIPt0zhbKcGxp9sBtlez7k2xaErM9+P7wWUJtlln X-Received: by 2002:a17:906:c293:: with SMTP id r19mr6464720ejz.63.1603879659224; Wed, 28 Oct 2020 03:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603879659; cv=none; d=google.com; s=arc-20160816; b=ZfCEjbZA6F+bjsIyg5/PO9t98jJYAvcXsyw0gUmenkvTTn5/bDZ6fijw0ywTXf7IyH gSP0PQ93cypO3AK8L4M0/q7tH+HnM5O4+gn54H/vJU/ff2yYUii2EGud/tzZI+ycoQCF A9cpVvNERJpj00Qq1o8OV+pcvLtrusEl9zRJ9uIswj63ndp0otnf+h80KIsVwIf9w8CN zxawRy+l2Z6K/C5gHHJYlaRgJfTEkAzsB2u8c4CCnJZTW+bKHzhlHd96Fcraua+n8MAe nz6RFTdYZpTDAutNKtCYH+QiXsVYv2IoN84qQzw8xvqhjhTy5eXpsFaYV8d9pOGmHc83 SA9Q== 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=2JbdlDf1lxcmnGOk0N+diSZAY4w4rCBv4GZJL62V1hM=; b=DwYNBSnVwhM1uuO2G43+YKiRvlEZrm+IiBHWdgMzT31SVSwjWMgxZk4hiJg6rAaXYV TqvtxNGoPKqIVR1u0/ZTLsMbtO/9a17naXQJG2v7tmrjGbgsHZDE8DQbZd3KZkdYW5y3 6Hqg/IvHjPE3y03n50ZOXIlVPTYRFps2s2hlStZn0fA81P7KNXXRr2CCLiqJH6mPkHjB FyUTusT5R5v2lPS7JdQLyVOC7emqh4PD9TjiT2ObIwcv+akWYFCX8TeCzYzKs6CWLKWo sXrYdfh2sNDj17OeCctpOyuOcfyObxYCDlDq8IldQyMV/Y/FIurbcUKvBtRJ91ZG0pgm zv2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Ouml0w/e"; 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 i19si2816688ejh.153.2020.10.28.03.07.17; Wed, 28 Oct 2020 03:07:39 -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="Ouml0w/e"; 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 S1760165AbgJ0Odl (ORCPT + 99 others); Tue, 27 Oct 2020 10:33:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:58282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2902215AbgJ0Obc (ORCPT ); Tue, 27 Oct 2020 10:31:32 -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 54AC620754; Tue, 27 Oct 2020 14:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809092; bh=rllpgQs9JIB2p9eU4I8VCpqd+uIoLcXqtmw9u5w+YZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ouml0w/euwJMO4yMU9/OGttEEGLJqCDGAxJBBzQBA3rvbmB7LmUCwzTt3/yWLVU78 nSYr7tO7vKMjcZyrxG42UKKlpDChmoxp+u8tW89BUvfm6rRnVwuDf6iq8ydZWq3wzK xwsUWtUc6Uf9XyLwb2mQhzTX0BQUKjfuvzHNgbo4= 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 5.4 072/408] media: Revert "media: exynos4-is: Add missed check for pinctrl_lookup_state()" Date: Tue, 27 Oct 2020 14:50:10 +0100 Message-Id: <20201027135458.406389391@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 9c31d950cddf7..2f90607c3797d 100644 --- a/drivers/media/platform/exynos4-is/media-dev.c +++ b/drivers/media/platform/exynos4-is/media-dev.c @@ -1268,11 +1268,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