From patchwork Thu Sep 16 15:57:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 513018 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1419659jao; Thu, 16 Sep 2021 10:15:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTo6+rKmtRwYIxLkcun4276x42X4pNFahjycHMwc9AitnDdCVlMss3ZtvZHr5sx5XAUk7P X-Received: by 2002:a05:6602:2436:: with SMTP id g22mr5342106iob.109.1631812503052; Thu, 16 Sep 2021 10:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631812503; cv=none; d=google.com; s=arc-20160816; b=T3wpAk4Nsd3C23W2F6qsWz+DyQHGqI6dBVozJY9Zti7KBFhcNvHibatb5mT5IMyoz4 pHx4JpW42aeM2hbcVbDBdei/vK8Czgw/1WO+BXg5IX1j0KowJHdWVBqxhtV8DgJ9lvU8 iz44BUdRzjLsHQVQnIXRpgNFaGq66RVcxrWgmcI41ZBNiX3OYdvCqGZ5gugIpU26TXid 1LpR6xve6ovFKYZCVBfpZDT3+i6cb/RDBuhtsh/Y0fYCLitn3QxmWpxrscpTz2pcAuW3 mcv0nFOJgrbZaMAmHMRbtnlUmVbeOIZ3APGEwZ/Qe1Xvl+5svUkB0lbXf4U9GCK2Fa0y /J4w== 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=li+/zuH4NWOwIWeAkhiBghAeLc+uo6KrOye0xA/sRPeFVrQkGKvgjzNPFeoFq97sAh 8DXhB8QeImE1uQd6GAvWP5qfBcxKGr6caLh742EX1UEmW4U+e+ox56jzPaKZlzAgwoOF echHSFgPcYMKj5+rkumpfmH9FkDcSid7pYR/POOFXFlZl51OkEkgg6CR4OAUHaG20fqU ga61YexKY6tSeTF2lf1J2LqhW04SqIgjmXkv80ucQdU2BC+txFr3SyMs1WK1BN7JILDL qxDrYjKBUjkve3mTPXzwdWiVL5kLRNKvQQfw6ky+Mzoh0yHmXgs3yOBp3l9FGmA8OjXr 5fMg== 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 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 f24si2964490jaa.118.2021.09.16.10.15.02; Thu, 16 Sep 2021 10:15:03 -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=zgjfx55c; 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 S1344872AbhIPRQJ (ORCPT + 11 others); Thu, 16 Sep 2021 13:16: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 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 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; }