Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7005637rdb; Wed, 3 Jan 2024 00:56:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwMcBpNdiERW04xznqGJVdLJR3SREa/6K385L2fPW+Ok2TifwvaWmMAfVAnZA5NCC84yrw X-Received: by 2002:a17:90a:4e48:b0:28c:a9f6:a1e7 with SMTP id t8-20020a17090a4e4800b0028ca9f6a1e7mr3090801pjl.46.1704272202895; Wed, 03 Jan 2024 00:56:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704272202; cv=none; d=google.com; s=arc-20160816; b=AIXHKO9yG2Df1PFcTwgSCTjzA523bhPRFRgjYuPRTb8YW3cv3EdD9I+ojhuCOkcZR9 oTcRKo9QERZBcBd7lvQ9sgyhDFsNRBKwONH1e0FAHYyPVPCJi84nQhz9OjIeiwARBlnh SI73qYteudFk27Fzwk5XH7KPbCHbtHHjxXC+G4NIU6iGrhhG1eK+bGTY2w50O+AIFilq DdH1RhA7XwQQzzxGQkn7HhzOhuE4G28kVrci3RXKRsqaigyAOeXviACvpL0ViW5gVcGp rJPjYDhMGMK/w+CUpaJfQPQ7zB6Ut32k7k3pDfC7C05dA/ib3C/tM5ilmaf2/a2KaVF3 Pjjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=tzXmJg9q/TEPH8vMAiIdPpmy3D/WZd5MqG19qzYtfJg=; fh=hEbyHt0eQJMFO7E3DwSRIVg+tIpigwvgzk9iWK4QnOU=; b=UthgPrG9/Tlr4sffp8eoXteWDLJwOj2qS0M+ZQ04I1ajfTianivW8Wyd4FVb4Tpxb3 gDeOO8f4dv/MMZ+7KO4a7WMt5NJbVsW7xQhnbZuButZelRfgN2/IF1EzLGEPWolx2H8i k9WaPIdT8E/J7N1msmiXJX/W9Miu7pPhqjgBRlnEkc3ozsk3MpP9N8ZOmMjVS7YcaJBz VAJTcDFTJzMTOW0zYpMat07KJlxrwKPc16MAkfplm+O83wGmsGeJdKlwoGAwSOMOQbML 2iKUOb+Hm6dCQCp11XKJ6SZ9gYyw05elPu1ovDsTP8UHKe/DJTcfAfzUy3zhV36dGQyz 517g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gUUtY0F8; spf=pass (google.com: domain of linux-kernel+bounces-15292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 19-20020a170902c21300b001d40716e195si20656637pll.613.2024.01.03.00.56.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 00:56:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gUUtY0F8; spf=pass (google.com: domain of linux-kernel+bounces-15292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B9242B211CA for ; Wed, 3 Jan 2024 08:56:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFB1C182B5; Wed, 3 Jan 2024 08:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gUUtY0F8" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AED2182A7 for ; Wed, 3 Jan 2024 08:56:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-5e7f0bf46a2so83976937b3.1 for ; Wed, 03 Jan 2024 00:56:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704272187; x=1704876987; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tzXmJg9q/TEPH8vMAiIdPpmy3D/WZd5MqG19qzYtfJg=; b=gUUtY0F80nle3WnUSmjK0lRyc0DCWVzNa78QBJjq2iugGLdOfMgd5wNHfDhBlmUXiK QsxuAgyyGbPf8DCA2HI/YqcDaZN7IH5z+OBJHLSlEZff7+TcwChe+t8yNaAXB/J/xDgz WrXYWDwf/EI7SyT2AirPQTVO8jz6QEetgIrcQW9K0eIAigvwguzAyKJQ7/H8QdNc4uoB 5fYu9BCv5lu1lKm2BXTtKPlrd1T4DPVEwbEviIQafSGy2Vh/52vzym5IzMzgfYBWK+MM CTElDmuy11hWeTNjIE0eiSsfMCFi1sZqhGHtjdcg/1BZsLAgTQQY6OxRMZhgxa2fda/N zoxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704272187; x=1704876987; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tzXmJg9q/TEPH8vMAiIdPpmy3D/WZd5MqG19qzYtfJg=; b=bmLjxjuSkMQuUmlH4UsVCF4ic80lP9f7R9F3grzyj3lv67QYaDRSDm0Mdwl0BBKpwM qGTbIxuZQZUaY+jmZy6ZUG9OzOvebf96zansOMp1bqSyCLFwgGFY1QeG97aPgQ+pAHeZ VUGgEGW70j2e8MTUUkUz1dQEtMoQEDbuQThWpjnAn+8JN0MxPgc1G2Ps7bMDeDAKgKna JLMf2GUAWWYgfgWR7BwspauKXwArmeHixutNwRcQjPfMQ1iv30CzKGAEeNXEmNKgEl63 EcefA0Z4IdOoTgEkTmn0lKRubksvznBLj4g7i2j5oy6IXb9UDZLZO43kIQ/W15FTv07/ vS/w== X-Gm-Message-State: AOJu0Yyp8uu0GhoRvdhZjJXYo2ZtQemYtrfCEkbfE5vfdZrH0OSjhiD1 CZtAjftGIfX0Xy5B//lOdvyYtDzhCmCU04MTI2wmUE1H1OknYw== X-Received: by 2002:a05:690c:2a46:b0:5ee:6403:8931 with SMTP id ej6-20020a05690c2a4600b005ee64038931mr5109646ywb.55.1704272187368; Wed, 03 Jan 2024 00:56:27 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240103085058.3771653-1-nichen@iscas.ac.cn> In-Reply-To: <20240103085058.3771653-1-nichen@iscas.ac.cn> From: Bartosz Golaszewski Date: Wed, 3 Jan 2024 09:56:16 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: st: Return pinctrl_gpio_direction_output to transfer the error To: Chen Ni Cc: patrice.chotard@foss.st.com, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 3 Jan 2024 at 09:47, Chen Ni wrote: > > Return pinctrl_gpio_direction_output() in order to transfer the error > if it fails. > > Fixes: b679d6c06b2b ("treewide: rename pinctrl_gpio_direction_output_new()") It doesn't technically fix this commit as the return value was never propagated here in the first place. Anyway: Reviewed-by: Bartosz Golaszewski Bart > Signed-off-by: Chen Ni > --- > drivers/pinctrl/pinctrl-st.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c > index 1485573b523c..5d9abd6547d0 100644 > --- a/drivers/pinctrl/pinctrl-st.c > +++ b/drivers/pinctrl/pinctrl-st.c > @@ -723,9 +723,8 @@ static int st_gpio_direction_output(struct gpio_chip *chip, > struct st_gpio_bank *bank = gpiochip_get_data(chip); > > __st_gpio_set(bank, offset, value); > - pinctrl_gpio_direction_output(chip, offset); > > - return 0; > + return pinctrl_gpio_direction_output(chip, offset); > } > > static int st_gpio_get_direction(struct gpio_chip *chip, unsigned offset) > -- > 2.25.1 >