Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp755662rwr; Fri, 5 May 2023 04:44:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Q5QCEgD/CtAN5orjGT+hF7MDsfbMvYQ+djrGO8arpuJURVHqEAhDkGc94chYtV9BPZuCq X-Received: by 2002:a05:6a20:549f:b0:f2:7da5:f277 with SMTP id i31-20020a056a20549f00b000f27da5f277mr1493604pzk.44.1683287090854; Fri, 05 May 2023 04:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683287090; cv=none; d=google.com; s=arc-20160816; b=JUomDzaZDDSwnDFb/TAKD43CnkwyeD9AfGh3PxFtced+cIZNhvMoxnDzrtdVNDufyK WOADAo/0Pgi62k9rBWXPtkIKgk3ZrvQCAAAbKKr7OV34vHNqqskpvE5KciD+e7JJGNyv qkZli98CDo3o5O+MlAdjwUdfX9a+1bopZJ9WGqJn7LRk9Do6FYzO7HasHTGU2btBbdqu ujfe75kjFo5tCqrZcSD3UE9LHJxZfW/DzoeTUBm5Rpn3+O0SA374HBJ3sDsLk7wqKMct kwFYSXpXgm0i0pRdYJO6lQSWkbF8O9XOTW7FfGf8PMkon79RORrfr55uY+RWfFtG9S3f 7YQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=puWCJyuFf3yp6BwyAz5qUYq78oF9e+xdSzj78gCEdNE=; b=WIKa+5JRFLT9LLbml+mMRsHdVqsfTcCTAF6AwfpFDOUnJ9AXus8Rqu5Wx+cA+EEqOh cTlbwkrDKKngrklmNOCX4ayqriq6xOg6VOsq8CpI2Gpw6n/CMC/Q/jum0sY2nUw+hyDf p9i19vwUX1KRhYz6VdZt3CcJSqDsQVVfSvdd+nWFjRBfW3o67Pc+F1ysrt5SXu0Pevxw hZ2ow5cvJIkgSJ3+qzSNvb6iStsKQ72T901JEERVG36QfOmuInfFknM0gmNUNDMgdPyO KZUxq0dHQOwZzgeZ5h0DM+Cs3KmgnuZWKnoXLwQBaJZjSO6XQlXXDg7JtkONCUlXaibT NgEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Y0Y/0YC+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a637a50000000b00519d96ec174si1929896pgn.411.2023.05.05.04.44.37; Fri, 05 May 2023 04:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Y0Y/0YC+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbjEELjH (ORCPT + 99 others); Fri, 5 May 2023 07:39:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbjEELjB (ORCPT ); Fri, 5 May 2023 07:39:01 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30F951A12C for ; Fri, 5 May 2023 04:39:00 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-ba1815e12efso1475493276.3 for ; Fri, 05 May 2023 04:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683286739; x=1685878739; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=puWCJyuFf3yp6BwyAz5qUYq78oF9e+xdSzj78gCEdNE=; b=Y0Y/0YC+7QL81nt9H9hIuiBWkuL7s/MD2CaHmSwYjTa9/pP1nMLmCAYN5YYZLHeY+9 QHRWhAZFPTLqMLBuQGfw3+7GQMtw8hx+rr6QOcZOEx/Q1WC8Ep7HZXRnUmuxoDm7jt71 rgSHQqKW9BTHsYCkUySzUGBr8ro5MavFn09rFJcUazJXA1O5PIUOKhUIuM/I+cWuNTqF TJEGOZW422cFvc4OOlja9+727aErAFw25YusDW1D5aFJoZsjbHCzcJQTKSnq7dtz6Fe+ TAuBu9qis9CBMPOcHnexsoS/bHvgGbNhxmXURDjYr/BOhUMysnln/dG3efrq/VdfG4hN jsOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683286739; x=1685878739; h=content-transfer-encoding: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=puWCJyuFf3yp6BwyAz5qUYq78oF9e+xdSzj78gCEdNE=; b=KrUCRo0lm+9sac07f0c8EZ13RBIEubW4LadE7C/NMAF8l1Kw/KBxR6XjfI4u+CLMyw 1BOUPovTcepd7q6rXId3saT++r9qAw3DKEWwRghWS+XwL1JqPdf3Q56gagQmeXbyzdab Wf3vbsJt9ROrvm8iIi1rRpf77tlgxe8857nLJg+nsrlJbgC+tdWRTpPc3j+YW54I25mF vEjJ1muznNerKR6yKBVbF3bdPY+vuOQQUEZedaitpUIQ4utWACW5Zpi8ZYdNdNg4A6si xJLd2P7/AUQ2jqyO9TO4W/sdnBAFT0gao0UkYIsnyamxPdzcAyXmVElrSRT/9rpVX9Al QKEw== X-Gm-Message-State: AC+VfDxyM3WoU3Pi8rB7QQTLyqkXEnLH1HXf+dwtRNyaW/Yqc73o0lyw JSr8zc8dk6IffYmtdkmQkDZJ0iTLgE8QOB6+XVobig== X-Received: by 2002:a25:c7ce:0:b0:b95:941a:86c4 with SMTP id w197-20020a25c7ce000000b00b95941a86c4mr1291465ybe.26.1683286739409; Fri, 05 May 2023 04:38:59 -0700 (PDT) MIME-Version: 1.0 References: <98c3b5890bb72415145c9fe4e1d974711edae376.1681681402.git.christophe.jaillet@wanadoo.fr> In-Reply-To: <98c3b5890bb72415145c9fe4e1d974711edae376.1681681402.git.christophe.jaillet@wanadoo.fr> From: Linus Walleij Date: Fri, 5 May 2023 13:38:48 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: bcm2835: Handle gpiochip_add_pin_range() errors To: Christophe JAILLET Cc: Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Stefan Wahren , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 16, 2023 at 11:43=E2=80=AFPM Christophe JAILLET wrote: > gpiochip_add_pin_range() can fail, so better return its error code than > a hard coded '0'. > > Fixes: d2b67744fd99 ("pinctrl: bcm2835: implement hook for missing gpio-r= anges") > Signed-off-by: Christophe JAILLET Patch applied for the next kernel cycle (becoming v6.5) Yours, Linus Walleij