Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp483293rwe; Wed, 31 Aug 2022 06:13:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Kn1CDi0F7xdTNSzA/8TvLkp0l1uj6lwYUn4gCqZWz65P7VJAYaQpbHKRlEW4XcpdtG3wx X-Received: by 2002:a17:907:60c7:b0:731:17e4:7fcc with SMTP id hv7-20020a17090760c700b0073117e47fccmr20344024ejc.73.1661951616373; Wed, 31 Aug 2022 06:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661951616; cv=none; d=google.com; s=arc-20160816; b=qvwFe7ULFxlq/BinWpyVwXKSXqH4EehuL1CsU0jeaAZ9VKfZiY1abtUD2XhWPC55Xg 5ERFOD1LPwpZXRhIFzYsSp3sQ2ihrUFITLUdfLdNpIpyUovNt/ozDtg5SkvOXubVgD6X va6oWZhgzZH693FO4blHGteAWLHC6sI/3zFwVz0FUWQ1GFhdGxdyEMEDhKL+SklpFsca mYCAwrx7r55sm3xWMi7oeLKSefECZqPo3NY2Nu68McUTIbQvgEVseU+/1BcNrMrAxXxU XZv4zc9BzwYfiLXLPRwlhNHJ8LtjMdufnZosswSQ2A606tklo8YFXvRlFlRDPJ7UlGDz 4nqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mG/N9H7N7kGHmNYHeRjUkuKbANvcYiUIAR3Dr1Ezb9E=; b=W0MHHoKp1szfxecoZRju+mrJ8lkfW39hf4N+BvAeweDB9XINzxm3IpS6m0Iep4Ob6S P29jvhw1ePQbMHcma9QsdJGiibVAIR43+vKJ5KmKbCvSVgBCrrt7NG1zvznHV698L51d tdt8vHo6HekoEcObui/jw9f0pNSfffxlpFUYmkDtXmygBf7JE3fhdpocZ5JIoQdsh+NR 6k+QynemC1e4OsGOxhkLfnYiqJfGoXw5EH458ZMZZp0iQgoyt01sd3WF9++XffSgfNGp V9J0vNDnRxq3ocVrqrnv5gLMR0GU4LwPUsA6Fqno4pe0S4fzEIb3Ghd3Sna7CNng1vHK WoJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QWsmpfcr; 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 sd2-20020a1709076e0200b0073d74bcac8dsi11234908ejc.513.2022.08.31.06.12.41; Wed, 31 Aug 2022 06:13:36 -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=QWsmpfcr; 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 S231195AbiHaMg0 (ORCPT + 99 others); Wed, 31 Aug 2022 08:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbiHaMgQ (ORCPT ); Wed, 31 Aug 2022 08:36:16 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C9757286B for ; Wed, 31 Aug 2022 05:36:02 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id u9so28096504ejy.5 for ; Wed, 31 Aug 2022 05:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=mG/N9H7N7kGHmNYHeRjUkuKbANvcYiUIAR3Dr1Ezb9E=; b=QWsmpfcrzS4uBY/x/y8ySg3Jngx/QQDEXIwqAsZZO/Jt+XFs1fbjzgMiPPhM7yBg8V IMCm3RHBgHiJ18uTVo1Vy2TaELyt94v8D7h2gZQP6azY8qnRHiIbFqAP8xoTRK4+a919 J5ZgKoKlmfUNZHnPESVXPhfuUSUiUGCHbiYh7ZKrhi7V5dE8Jiyb0us4Te9cb/OaG9vF Io01Xu1QVlhBEhITLo0xC+BHMslE6vi0IIly4+tq2a8tc069xtrC/t4e0zN+Pqn6K3YH Qz0a5O44nnyufd+Faqe8mI7zI2AFp1yyZwmCQ0S+BAIaEgEhGHLguFQmj3nAiLBl1qap rmBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=mG/N9H7N7kGHmNYHeRjUkuKbANvcYiUIAR3Dr1Ezb9E=; b=eVE4Thzoc3aK10KrI54XpICQQlJnQ3M9/CXEf7BOfSqE6ND6TDvIvFDnbNsQRNRXP8 5Mo2mhOSON1AKD0bIX6Q3rfeFuPXSaCEOM8rNeaUXDE7Nze3vCc7CSea/2FBg/3r5owz Bkj31x8lDLEpHT0M4juSaq78jFw8AeiMb1opAHgfJwjQnf/HCtpAr/xjk48ZewhNksjz 6YqfxujloMC4yWJpDBsjCRCB1XAiRYKjQhxdOE+aGR2H5yt8nEreC+myY9LWdvGbsurQ krpTJZ53UHLlSQwQvi9gSV0tqY+gvmKWGLE/hB26H42U6/IWPcn47be7uiarUUua15FL l/mw== X-Gm-Message-State: ACgBeo1a+p4vkR2smJ9oFaRggNmE2jGxenIPNuE1BxVE/LGd1VXuzObf +f0dpJik2CpLs1Wu0gu5UdfZc+n65cy1NRUkjMvd1Q== X-Received: by 2002:a17:907:6293:b0:73d:b27b:e594 with SMTP id nd19-20020a170907629300b0073db27be594mr20605961ejc.526.1661949360236; Wed, 31 Aug 2022 05:36:00 -0700 (PDT) MIME-Version: 1.0 References: <20220829133923.1114555-1-martyn.welch@collabora.com> <20220829133923.1114555-3-martyn.welch@collabora.com> In-Reply-To: <20220829133923.1114555-3-martyn.welch@collabora.com> From: Linus Walleij Date: Wed, 31 Aug 2022 14:35:49 +0200 Message-ID: Subject: Re: [PATCH 3/5] gpio: pca953x: Fix pca953x_gpio_set_pull_up_down() To: Martyn Welch Cc: Bartosz Golaszewski , kernel@collabora.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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=ham 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 Mon, Aug 29, 2022 at 3:39 PM Martyn Welch wrote: > A previous fix (dc87f6dd058a gpio: pca953x: Fix pca953x_gpio_set_config) > identified that pinconf_to_config_param() needed to be used to isolate > the config_param from the pinconf in pca953x_gpio_set_config(). This fix > however did not consider that this would also be needed in > pca953x_gpio_set_pull_up_down() to which it passes this config. > > Perform a similar call in pca953x_gpio_set_pull_up_down() to isolate the > configuration parameter there as well, rather than passing it from > pca953x_gpio_set_config() as the configuration argument may also be needed > in pca953x_gpio_set_pull_up_down() at a later date. > > Signed-off-by: Martyn Welch Acked-by: Linus Walleij Yours, Linus Walleij