From patchwork Thu Sep 16 15:57:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 512976 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1354454jao; Thu, 16 Sep 2021 09:08:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweX782N47phvAE6Z72BekzPB2IpuVorTZmeZoOmbP9ctPpmbt9HYK4S+t1+q+WFJKnv2/T X-Received: by 2002:a02:1608:: with SMTP id a8mr5044630jaa.36.1631808490473; Thu, 16 Sep 2021 09:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631808490; cv=none; d=google.com; s=arc-20160816; b=HcGXAqoEw/uIAS5WKYK+XEQ9MkX98Rz+fVFQKHFR6xjwUSPJQIX24Nhf39OnDn1AI3 sFIj0gPUspk0j0aLhww0CIHQFORJPKBM3t/A+4PK7vn0iZj8UQmb4T/+To7syVHCjjfe jbdJ+ct34W8GGYVKrJ4GrMlqMglkN/OEs/b7eB2/sCc5NFIxvq/+IhnLmkIdWOZBT33x It7STfjciW+ZsOrU+Y3G53Sd8y/ET+Z+j5KXCiksXMK2pUGysqabv9HyYgbUEbLJo0jg c2pxKi1g1AFeiUl1Ow//ETGMk93lkRRVc7hRFQ1cEKNSUpTTQEdRmhxD5IvW9KxFGZAx a2EQ== 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=snZM7g3o/MsE8GOfYQ1Oeq4BV+ITxS2a+91Sw0sXc6DGKlIESkcHY2TEqMDLw/08Dn 1eJpdz6JbLs6xp821KSMCccYb8Nkz7En9ZAi3QYQCufWsmaK/NDVpr8gJBA4cynvaHvi 28pQS7nTuAOi5FLcFqY3l7e7DiVoeA+L94VPgAVMBtlPpIvbLww0fvI54fUJJWb5coeI lud2319YrtLr4jdaDENospTXZqL7Ov0Lqt/yWZr3SOt7RpfcyT9LfK9tzMdW/ikrmzMH b2a6hmb9cPTFPNwTzKvn6FFQJvKGitfCnSXWemn5xjGV2lJrYlBDLnk2+oz3W5Niza2v +A1w== 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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 l9si2833328ilo.138.2021.09.16.09.08.10; Thu, 16 Sep 2021 09:08:10 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S233517AbhIPQJY (ORCPT + 11 others); Thu, 16 Sep 2021 12:09:24 -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 Precedence: bulk List-ID: X-Mailing-List: stable@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(+) -- 2.30.2 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; }