Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp615762pxx; Wed, 28 Oct 2020 12:28:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHFmt0kXxv3TZCCBTw5biIyG26UObYx0yJRWoWT2vZzM520g2gygT2AZBDfOigGVnvvwAx X-Received: by 2002:a17:906:d78d:: with SMTP id pj13mr657216ejb.36.1603913326682; Wed, 28 Oct 2020 12:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603913326; cv=none; d=google.com; s=arc-20160816; b=PARp/FytjXYG9noEYOntoEciC/hAaCm6bhBNWmP0ubsM7hZU20dvm4EqS6iuIAceA0 ialuLKYOIHYhBQbq72CGjO4t0g9meNdwabRHjzeBA1tIVQiV9NR3MkGRUakgqJoZ9+la jtJCivfCtbqSTuAqPjEQ3TwpYQEt3N5WiJH7jwroDOOv1vJim0Qwgkiu5LKotOrGDPdo vgi9tf95m2TTTw37e8OsU+/8H7QReCo/1ntIIYy1tMuwPnaJ9EpfUddXbdpe0/hSue0r +y86kMN90kSTXn6BewiFsbwoSR3MYtWOOHIlgNKnFq0NB49Zet2ICTDoa2OVaPkWZiVL d9QQ== 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=3lOyDe6RsLzEF++b7JFAz1gQZ6bdLG+h8SWtYf0+obQ=; b=gsBVD3FrSSaQqPD7OfDUIlGBWKtRXme968xMd7jrf69cvUJBPddw8re6jXJ/bASqMt +o6mua7F1TXH+VFHjjp1X43HeAGDdsepztbIWLT/g2jPTYM7R95aVUfQMjDGEbBhroF2 HMUuBZPDUi5pPHN9zt0MvvD7YV5dVK45mura5uXvT0r9hIFZcrzYwWAhLTLjNSoR7bzq XsVGLJ/BuhQpORffvdncCPn3G2BB5J6hmi8esmHNwIBKTwJzks/CVdN2xseGAp4FjoyD bY2aKutk1xZ/B1bXt29sq4UAf4bUz+7eUzfoWSI5DJkFoKDyKa2TYIrl1pTXB1SoERgm mJEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=L8Na+XUa; 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 y1si30775edp.57.2020.10.28.12.28.24; Wed, 28 Oct 2020 12:28:46 -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=L8Na+XUa; 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 S1823054AbgJ0SXi (ORCPT + 99 others); Tue, 27 Oct 2020 14:23:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:50202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753809AbgJ0OCU (ORCPT ); Tue, 27 Oct 2020 10:02:20 -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 1C0A522258; Tue, 27 Oct 2020 14:02:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807339; bh=LadrM0FUgeQh3k7uu+j5YvhtIlbW1p6r2NgCKs2WKoc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L8Na+XUaFNhEr4qIj7uESumx1XJEO5c/wCOL8PE76Qt28ZojYqErU8IRY7wH/yNej /5aPPExVqOPrV9JuKHEx++NrOy7a470ua9IYU06ae02TROEEBDDjInHKVVNaDp48jp FybgqMCbVNyqugthlzj9n9Lbre8JqaOA02I0bSkI= 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.9 017/139] media: Revert "media: exynos4-is: Add missed check for pinctrl_lookup_state()" Date: Tue, 27 Oct 2020 14:48:31 +0100 Message-Id: <20201027134902.960314348@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134902.130312227@linuxfoundation.org> References: <20201027134902.130312227@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 cdaf3a8e2555e..532b7cd361dc8 100644 --- a/drivers/media/platform/exynos4-is/media-dev.c +++ b/drivers/media/platform/exynos4-is/media-dev.c @@ -1255,11 +1255,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