Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2566628lkm; Mon, 20 Sep 2021 18:53:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyiovD5JtmfsrCuUGUX40m88WRd5/09sXvfLAGeE/QRu0fwuuhQ1JgnUi+ifDaT3vWS/pb X-Received: by 2002:a6b:7c45:: with SMTP id b5mr6242074ioq.191.1632189099329; Mon, 20 Sep 2021 18:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189099; cv=none; d=google.com; s=arc-20160816; b=cW/0IdMHE/eN7S5ZHju3uFNGfc+JG1XZ5gop86Dks7s+areI0xYA/vH0Bfj9PbACwu bZHgQvNgqIhMeLF4jYqfQ6ndjGSAaoUAnBxa1olwLwqudevt/IhLb9igcTRgayZ5MA6e JjU4vog/6cudrrVeNCQoggzvakDhzrqBgZoZi0/uq7Fk29tkHmx9AKlYCkflBwSFRdHa 0VjknasED7fv0dxTXaVrNdTwVJCuONf9rgJPxf2pE3NFpZ66s3e8VV9rcQiYuscuLEzM BUKw5O5mwjtEbrPAGYG0EWEkKS4lVRdltmw1vZ9PyFHAIhAmmY3NpBy81t8Qs4I7OLlp hidA== 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=douMnk4BH1MEnonDSl3ui0EjM4WQohlwY8112csexj0=; b=YCZYdReoELS9GXq+0WeZW2BtOusQz/kHuOMAF5+Zi5Wj2CMNJ1Bw47Q2ETrJXPYnAb yC2t58nMZ2T7pqQgkr4+tLG+wY5Kf9NrZ/EQim1gY9WEJkAjrWVMaGjThKcI9SdexSiI e+Jvc3wboMo6eln2dfqDWsxe2puxK0NSfkeWDCcXQntV5itE9bqMsqz7Vb+bGzMri/QL BgoqlBWCaVoEjtvA/5d9TE//woqyuIaES16rhK0fJ3cKrra8YSme7/dDNJ0vBEJv3PbG 27oOPVe+nQCc2hZX3Ta/+pNTIrqFJKEM0/FJhM1zHbXoSu3bGXf8/TjbVYiEuXMeBRGv 5OIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UrjeO6Sm; 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 187si14613540jaf.20.2021.09.20.18.51.28; Mon, 20 Sep 2021 18:51:39 -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=UrjeO6Sm; 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 S242240AbhITSMW (ORCPT + 99 others); Mon, 20 Sep 2021 14:12:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:33262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358465AbhITSGp (ORCPT ); Mon, 20 Sep 2021 14:06:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CEB4F61A2E; Mon, 20 Sep 2021 17:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158282; bh=yuQK2qNJKWmN4dbeOc055QGSwYjfqNRklBCpm3A7tP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UrjeO6Sm2JtTt7FYM3zaAvyM3050sYhSZ/K7Y6HUsKk9i2oDO7AUjQecymhtaBnNr UvjMxien5pIte9aowWYngBWcJiOOWLdh/7XxunMoy5TawrUfKPU3MTFCI/YrGjhur+ L9PPIr/WzZf2rTy2SVAY6daVDIHxz+aSAWsOPU+U= 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.4 052/260] pinctrl: single: Fix error return code in pcs_parse_bits_in_pinctrl_entry() Date: Mon, 20 Sep 2021 18:41:10 +0200 Message-Id: <20210920163932.877027305@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 a9d511982780..fb1c8965cb99 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -1201,6 +1201,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