Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1900221pxb; Thu, 16 Sep 2021 19:35:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpLfJvknfrPELNXrY9sTnTYdikQmvHEysrnNndzF3Ndd5BZbkvIOISvBC1bC0+NwolCYOX X-Received: by 2002:a05:6638:12d0:: with SMTP id v16mr6690666jas.31.1631846100468; Thu, 16 Sep 2021 19:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631846100; cv=none; d=google.com; s=arc-20160816; b=QHX+rT1A3nAABmPXTBLPkpJFgJwhJw3GrtWeR4jl0HOmHh9SKem0OS7OLXnZftpl8b uUe3/m5ncX1so9oMOC0Q2RqRlDm9Zdb9fkEY0s1jXGMx7faCne7DMhgBMubZzaJ4pJE/ w1DUlTPUQzzHO8c06HNGgvx9minQ/4crkkCD+Dd3SeKQDSnG6pAd9+g/gZJHjtX/gibQ W00F4hvPInC9lwb6Zk4Msc0SNB2K8IZzzEAm6AZxK0FjaDkdqVSZPON4OgMiomCkPdOL 8CEDIfoXr7VQQFBt7ANsqJKnaIv9gA7ORL4hOKHP3hDsv49l2G5upNfgM8ss0JrCZBFs O4pg== 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=fuhlEGPKxOFuR4pKcK3cpSTyfIHx2CHq19kcWKW6214=; b=oQaPSFJdi13TjrDhpvM1O0GJAwrnZUgTsotgrbk0Ms7YL9RU/q9UTjf7yOSCm8Z1cq coULQqilrnxc/0Z9bdghzTUKM5BYDvri4Zfhed6knzc8Y2MqouK8MkG/c/q2fUF1Q5Fv X6ca/RplQ6yEy/Yvwew0XZeivRzYK4eISv/EuDYQaelhUhRskkY0REFKRWndRUYDPC/y mcm9lfYhqBub1woNdHAoLH2M/WGIqYVDcEpqfmhM3HcegNmZ77OkQg840RxcF+4eNhoO 7c+IjTngmZPDzECYKcOttu+9Zig7tod8iH3dKVO7LvfS9N3z2czY2PqwmNnU9KcMMUXl +7gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zgjfx55c; 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 i62si4217841iof.83.2021.09.16.19.34.49; Thu, 16 Sep 2021 19:35:00 -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=zgjfx55c; 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 S244438AbhIPRVJ (ORCPT + 99 others); Thu, 16 Sep 2021 13:21:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:39920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346588AbhIPROE (ORCPT ); Thu, 16 Sep 2021 13:14:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C985B613A7; Thu, 16 Sep 2021 16:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810363; bh=SPe3Atrtx8dggmwlZ7vQgSMlq1837EZK1fqXLmcadxc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zgjfx55cbYoXpfUEbh98xiNQDhK1TJCe6VEVLHO21irWBZncB5eG3JOz9R7q3nWUS KClVJwevj1ni1YEOFQh2cPsVa7F5DFikmAMwoSRktLn5Lgy1EiGsBvqWYqXD0ejeVz RS9HwudkjlcpeewglDHI2YKFc754yiqMKVbh6Rt8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zhen Lei , Linus Walleij , Sasha Levin Subject: [PATCH 5.14 113/432] pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry() Date: Thu, 16 Sep 2021 17:57:42 +0200 Message-Id: <20210916155814.596471890@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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: Zhen Lei [ Upstream commit d789a490d32fdf0465275e3607f8a3bc87d3f3ba ] Fix to return -ENOTSUPP instead of 0 when PCS_HAS_PINCONF is true, which is the same as that returned in pcs_parse_pinconf(). Fixes: 4e7e8017a80e ("pinctrl: pinctrl-single: enhance to configure multiple pins of different modules") Reported-by: Hulk Robot Signed-off-by: Zhen Lei Link: https://lore.kernel.org/r/20210722033930.4034-2-thunder.leizhen@huawei.com Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/pinctrl-single.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index e3aa64798f7d..4fcae8458359 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -1224,6 +1224,7 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, if (PCS_HAS_PINCONF) { dev_err(pcs->dev, "pinconf not supported\n"); + res = -ENOTSUPP; goto free_pingroups; } -- 2.30.2