Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp508492pxx; Wed, 28 Oct 2020 09:55:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBRQiGRjYJS5JyuGJl6mG/hA6lxvdsBB6FosATuZJFNc5h1dV1KYluoAYG/iW95dn7LaBe X-Received: by 2002:a17:906:d1c3:: with SMTP id bs3mr6027ejb.246.1603904148776; Wed, 28 Oct 2020 09:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603904148; cv=none; d=google.com; s=arc-20160816; b=MqRe/q0iDh5znGfA5rq9RdP0BmblexOrSUWQ77r9glZy0g+dc5q1VitxBgUyKzjDiH 0f2qHpRi3tmgO7XrKTS07XHhRQqBPCKgfUaeS4T5h+PgfhOSEoND83gGYLnilNmqg9aq zawjbqtw+7U0QEkQkKpoJPWaqjFZdc7hXI4WtZSbvOvwLWpQ3K0NlJhdk17+aax9kxWu OWj8H+DsWXGA/29zMk1M3e/87O3PLFgL+g9Y303RTiOfOXR2QkCAVa31eZGNEinGrrQX TslbPD8w/oE+jVBLOsmoGUAMRBxjccdbtel9yQLvIrXgjHb+eAbfOl4zIOti2rczFByO wHyQ== 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=ecEl01clwuptTZO3tFwwTjEyjKNM61lpuGW1MKuByttHq2MSKWYL9Ruh2gApefGSP6 SZj2txU38JfAJYlEn+tf1Y6ak5r1wW7FN7WOXyWoUFv5GxLwPI4rxHwXUE7C20QeBiB5 RzqyKrhbNym1613UXL1PJvuggoheDapn/YQ9hrUuK9hVX3asY+CgfqAFXE5K37sJRTHE mdEf+46VP6HyE8AA3oDRlfdGWnQ1S0OI61hKJtzKGyApsfnE7jrq3GZW1/AMdfej7LEb 2UCm56zntd4IoupmLzbVahnmKtfceT5H8A0IaUtUMrSmF9hAwS/9WHeowvn4pmVr17ux QS0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gr2WkKHi; 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 h13si2268edr.541.2020.10.28.09.55.25; Wed, 28 Oct 2020 09:55:48 -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=gr2WkKHi; 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 S1818976AbgJ0R0R (ORCPT + 99 others); Tue, 27 Oct 2020 13:26:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:53334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1775577AbgJ0Owx (ORCPT ); Tue, 27 Oct 2020 10:52:53 -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 DD97D2071A; Tue, 27 Oct 2020 14:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810372; bh=rllpgQs9JIB2p9eU4I8VCpqd+uIoLcXqtmw9u5w+YZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gr2WkKHizLTqkadAjYgUPMMllrkQoPW+NA4F0am2utN3X3J5cawdpDFmyNqUN2FY3 XkMVyoV8uvNZypXMDE1BCxiywIYxlUdzNtnhRihp4vmY97F6zv2dgLRAZ2Hnxfc1oL Hnnfvt27tWxyDAuAkcoS/T7Niq1u6v4iIykh0mpg= 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.8 109/633] media: Revert "media: exynos4-is: Add missed check for pinctrl_lookup_state()" Date: Tue, 27 Oct 2020 14:47:32 +0100 Message-Id: <20201027135527.801638872@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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