Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1527416pxb; Thu, 16 Sep 2021 09:16:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhuRvxQaXw4coEK3cF9+6AzrXqG2f6jkwmIo+hKShCRhgCFgCLqWUTWan1t4WaWG4yZEAr X-Received: by 2002:a05:6402:3186:: with SMTP id di6mr7170577edb.225.1631808966662; Thu, 16 Sep 2021 09:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631808966; cv=none; d=google.com; s=arc-20160816; b=GKgn4hCKs6QZhylDr/YyJTFoGaLb6l7UKwlV7ZGtlETWrOFViIwp9l7y67S4dW4126 5+2IGT/m+wRidPi4E69zC/qpHVBRAv7KXeG73QTknIU7B/vLY1BcOG5yXSO7GtzBhm0c r6py+dzo5Po7QPaWSGVijtLd6m9j0yq42XPbFiF84n+TcJvN2fiWFMytRiXteC1s+DDm RJHBuobpgCbCdmBZd/hkDQgvSn2yi/GIwIyN3fZtR0RWhK5uBOK6yZhwfEy1kMHIFZti 3oP+aRXIfq6ymLKC6qN7aLIvmcI0/56FtIj09TDFOzURvkxnSS7Fl/GUBUDQ0DJVxn8J +WWQ== 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=1n0LIcS9C2oKyVi+j1vw5z4DRF0KpR/qr80lZ2OLJGI=; b=Q3/H9gD8Ko/IiHT1S7lC7LmzfPuZFEAPfysG4oSNzQNJHuUzR2aSOpxSPLn+3CVM75 LL5RZyG3M80NnaS5YXYBrI7sFfHb+IQWmkAo+SsK+YWp6I1hDItkD6EcwUgcQoj3P6Lu D5lcp0hXpilIUtrNUbezs/CeOQF7sAbPHgEuqeHddK/a7DKnY43iQOmRcqEsw1OB3w1l 4RiImIhT7DHN6cGHVG4fncJBOMAQiDd4HwjZg6EJrUWciXC6vdl/yEB79SnSrPTaDmB7 CUdNUpvNSQE4DYFUPywcdZR8nivM15kQI2TbIKPSXeE31a+egjAfYuK4wvLgOhwz/sv6 t9hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LwRETRxZ; 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 i5si4093785ejo.323.2021.09.16.09.15.40; Thu, 16 Sep 2021 09:16:06 -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=LwRETRxZ; 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 S235801AbhIPQNm (ORCPT + 99 others); Thu, 16 Sep 2021 12:13:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:48542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232702AbhIPQIR (ORCPT ); Thu, 16 Sep 2021 12:08:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1AA3561130; Thu, 16 Sep 2021 16:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808415; bh=E+Q/NMIwxAuW1Z+gE2xl4ZZHOn+lxE7zclwv5ldTtl8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LwRETRxZQ9St+NIkeFIgd3G2Ds8QiJqbjM41fNMArixAygFkV426S4YTRCA0UKxIN okrVV9E96Yk7Nw/htK4y3QTvXxR3b4eYrr4zue8CtnTZtwUpdQqlZ048Os3R67/9gs pBqf3iZk2iMhNRvOLgHQoOeXtLYzNZoG8T3+Qk9o= 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.10 083/306] pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry() Date: Thu, 16 Sep 2021 17:57:08 +0200 Message-Id: <20210916155756.878173654@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 12cc4eb18637..17aa0d542d92 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -1222,6 +1222,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