Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2319833pxb; Mon, 20 Sep 2021 18:43:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv+bNQsjh+FBCwsphCYx84gDmilpgxcGVBkFSE9N1Pec83iRBAlEpmfbslFrCLWhoXq1hf X-Received: by 2002:a05:6e02:1a49:: with SMTP id u9mr19225513ilv.278.1632188595991; Mon, 20 Sep 2021 18:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188595; cv=none; d=google.com; s=arc-20160816; b=AwtvuNBZYuyAZy1ehAADzvsOf3Y2Wvrp2NJFfTk2I5eORgHBkb0/lru5AIwTaJyDhh M0qn/1sLgCRUz1Oca/CpNNNqXqD9btvoBubR6mYLp+VXsOpcyuhlTbRRwK1JCa35SAlE TkFY/Ew0wFMhohvZyTgTU+fWb6wTlJt/Urda90ydDk1tW1Uvs2veC2Aa2SJfWUMNKC6l zrFSNIuNGtmCEeBt7PuhLyHzer8SKP/4uohV35HRPqykeKUMFnh2tjktR4jUDsd1TFVR lB7SaM+e/OTGluC47YrZvn2agMkJkwjZCHQSa9At2D8CKgYxYp9BSFDo8rF4lg32n6Eh WIfA== 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=rHB8r070ml9WlRzIruBGNSmnIIRRtWBX+B5eqlS/n6w=; b=tGgeQ6uVYZw1x6Nbhuo5OThB+XME8OWUvWWICSHmRsxv/SBkGKRV/d6Vn6IBg3Lqod y+4+nNIVpi8JinzZtRti6nSHWNuWDJb3lLZPOMo/XZ5jaLjJU/Q8xIXJ6rcaBLwhR2SE CootR0WTFqry+4bvQEQzXGZahAubTQ7eo/9C/rcEtsBXkVUIxSedFY+J3bzNzVphR4AT lGYC3QTgq160sV6T9XhiwCC4RwZIvehuOduQ77ha3+kgAqVVly3ujufu0OjrCl5opEh6 /MTFvcNqPxlE6bBtaMAuuTIKciO3qXYT83qQVP3qIWFVW77+iRe2Dj4tpc0hgh/BLTlj QjMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YUcDZHj2; 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 o7si15495826ilj.101.2021.09.20.18.43.04; Mon, 20 Sep 2021 18:43:15 -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=YUcDZHj2; 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 S244279AbhITQx5 (ORCPT + 99 others); Mon, 20 Sep 2021 12:53:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:35746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236764AbhITQtk (ORCPT ); Mon, 20 Sep 2021 12:49:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A11D61252; Mon, 20 Sep 2021 16:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156493; bh=sqgVyOzNhYPj7Vwl0FaNkHWKzn1gJvizOkLBGoQIlgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YUcDZHj2Jv0FTuUkoK6IQaCp7Hn34sWIJo2OVUxlP/vsMb/XDLU37GWNvOKv1rtYp 2C4vMdsXAYkWfwIgIjnNDIODIX9n5p3pW+2AYsOn++bjbj5QJ7XUMkpiiB02m9goyX 6oiYy3nDIc0b91m//2ub273aftrQqQololZinX6k= 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 4.4 084/133] pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry() Date: Mon, 20 Sep 2021 18:42:42 +0200 Message-Id: <20210920163915.390195132@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@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 17714793c08e..9c6afaebc9cf 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -1328,6 +1328,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