Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3371982rdb; Wed, 13 Sep 2023 09:59:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUZkSkcPDm4t2y1pVHA8lzewKded2dTCLkbWizrzqyu5ZUciTc0rkPfJC14VJ2XHgARTk5 X-Received: by 2002:a17:902:e745:b0:1c3:2ee6:380d with SMTP id p5-20020a170902e74500b001c32ee6380dmr3750571plf.48.1694624388930; Wed, 13 Sep 2023 09:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694624388; cv=none; d=google.com; s=arc-20160816; b=aLOXSFOQ509h8EVxUeLPBibHMVYNmANj70MQ3qKycY4TLBJYZlnhTd8jWQ4lWu6R8j Gsi/EdTGaUgsKHWp9qgzlfdELkJv3aIASah6BnWmVtypehBfgZVuvY6m/baupna5c+PP BSAopRRdIs5JVKu0yFsgElMkuOxGe/DUiz97I629L2E8qEeWRg2Trs6Sg6Si5xjeLTLT OvGSqR7zQSKOqCMn+vs595rw6e47mn2uDPcUXkF+9L4jK6Y1gQ2ozWq9TprVyprhku9M PQ+S222jlkSaW3B2twMx3JEAaAI/h6TjZ0bp2xxlZvHGPIBYFyh3S5vhU5kmuIM+6im0 v5BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=48dU2hQLagIX9Pt08ex4VtPwEkzu69KnmACTk65vyqM=; fh=6Pitfi3nfxyQR9D95loMKTlT/V+/T0gwgoSurxV61E8=; b=M7ofDY4Qc6s3DxbLttBQiECERaI47AKYkcS/tyw6IW/l2gDNYtO98VAK4EA8okckOT UrdnHOrJoiGf7nIPdPjyB0P3WCJZCjZcRtUq+PFZ+xDPOtJvxHDd1XyLx+TFsxVsG41E 6p6g+nKxWJED5K6CszGyd+TtV6RIBiQc/MtLbbMh3upeVIWfbcAiUQK7QyaXO9qAHaJ+ nmwGcVoWP31x8skzitoyeysrhupjY5meZ4cBnTM4xJO5dkCkNpzKbEEhuI77kk9e4KFC tzkmPDTyvRIgaH1lRRAvPsk7asvXiM+3tspGAG6QWdC+b+CN03ccqMeRga6aSFA0C3Fa hODQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SmPunnbk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k14-20020a170902c40e00b001b864e277e1si11805969plk.494.2023.09.13.09.59.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:59:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SmPunnbk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 36F7380D2E40; Wed, 13 Sep 2023 07:51:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232416AbjIMOvq (ORCPT + 99 others); Wed, 13 Sep 2023 10:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbjIMOvp (ORCPT ); Wed, 13 Sep 2023 10:51:45 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3359CBB for ; Wed, 13 Sep 2023 07:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694616653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=48dU2hQLagIX9Pt08ex4VtPwEkzu69KnmACTk65vyqM=; b=SmPunnbk63JOIeDlEFY4SyMEudQEApGoa9etxptuCXALxxDchcouYiMHLipQe5mXz7rBoh oTtbGbz45x0WFDh/4iHsHppG5UiXj3VBS3jfsCltq4lbm5P8vmCIrvPTntsTAtlwM3I8v+ 5mySHhLeq5+E+7eipkYfOxM7DvQQ/yU= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-170-Qz_T4v8gNZKT5wpOch3Myw-1; Wed, 13 Sep 2023 10:50:52 -0400 X-MC-Unique: Qz_T4v8gNZKT5wpOch3Myw-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-9a9d5e60944so446677666b.2 for ; Wed, 13 Sep 2023 07:50:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694616651; x=1695221451; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=48dU2hQLagIX9Pt08ex4VtPwEkzu69KnmACTk65vyqM=; b=FiPlonh+gI4sPREihRTcg+9QrQ8G7KLoLlBcwTTH8zU09lHsoRQh/HIitqT/Iect5V fT4J8piMAOF34Dv7aYyx9BiFAzSDl7MXQJW9haHAo4Mmt8WQo1cCXrMXT8NuS4LRRXF1 N6uia6O08BTJQrLnAPNBEJJ/84r9hvArOvYV7mBnAnAFUDI48wu/s2Q8Zvx9M7QuXCjn vrOi7DtayURsF6ZF6CgnBgQ0i6ls8W70Sp4QYhIEa+JIZUqjnIUav2a1QuhPqp/KGN7s 5qJxYP+CSy0WKiSQXeZZQ3R4z3sQmL2i4AMk7LfCDmDhuPfPY8d8rbx2p7jxvWdsxO2J SlQw== X-Gm-Message-State: AOJu0YznR7UmfYNhCP5tU57JSJKzBILTVUGOVzyi9neZj4vo1kbeiWmI zUyI+n911+rlC+ikaJOJlaLwXw1zqJqHLsdk9SpZdUKZ5ud7Koae131/2IABzwAlbNJyaLytyVS Fd1WzLyqVgwdjJuHOSdvmvBZK X-Received: by 2002:a17:906:74c7:b0:9aa:1020:8c39 with SMTP id z7-20020a17090674c700b009aa10208c39mr2278131ejl.18.1694616650915; Wed, 13 Sep 2023 07:50:50 -0700 (PDT) X-Received: by 2002:a17:906:74c7:b0:9aa:1020:8c39 with SMTP id z7-20020a17090674c700b009aa10208c39mr2278116ejl.18.1694616650569; Wed, 13 Sep 2023 07:50:50 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id n3-20020a17090695c300b0099bc8bd9066sm8613848ejy.150.2023.09.13.07.50.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Sep 2023 07:50:50 -0700 (PDT) Message-ID: <5cff2031-e25f-4222-4d1f-b0b7d87b355b@redhat.com> Date: Wed, 13 Sep 2023 16:50:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 4/5] platform/x86: int3472/discrete: use gpiod_set_active_low() Content-Language: en-US, nl To: Bartosz Golaszewski , Linus Walleij , Andy Shevchenko , Ulf Hansson , Paul Cercueil , Harvey Hunt , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Daniel Scally , Mark Gross , Heiner Kallweit Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mips@vger.kernel.org, linux-mtd@lists.infradead.org, platform-driver-x86@vger.kernel.org, Bartosz Golaszewski References: <20230913115001.23183-1-brgl@bgdev.pl> <20230913115001.23183-5-brgl@bgdev.pl> From: Hans de Goede In-Reply-To: <20230913115001.23183-5-brgl@bgdev.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:51:46 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Hi, On 9/13/23 13:50, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Use the new polarity setter instead of the more cumbersome toggle > function. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/platform/x86/intel/int3472/clk_and_regulator.c | 2 +- > drivers/platform/x86/intel/int3472/led.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/platform/x86/intel/int3472/clk_and_regulator.c b/drivers/platform/x86/intel/int3472/clk_and_regulator.c > index ef4b3141efcd..31e520838b95 100644 > --- a/drivers/platform/x86/intel/int3472/clk_and_regulator.c > +++ b/drivers/platform/x86/intel/int3472/clk_and_regulator.c > @@ -183,7 +183,7 @@ int skl_int3472_register_gpio_clock(struct int3472_discrete_device *int3472, > } > > if (polarity == GPIO_ACTIVE_LOW) > - gpiod_toggle_active_low(int3472->clock.ena_gpio); > + gpiod_set_active_low(int3472->clock.ena_gpio); > > /* Ensure the pin is in output mode and non-active state */ > gpiod_direction_output(int3472->clock.ena_gpio, 0); > diff --git a/drivers/platform/x86/intel/int3472/led.c b/drivers/platform/x86/intel/int3472/led.c > index bca1ce7d0d0c..46c9c569df5e 100644 > --- a/drivers/platform/x86/intel/int3472/led.c > +++ b/drivers/platform/x86/intel/int3472/led.c > @@ -32,7 +32,7 @@ int skl_int3472_register_pled(struct int3472_discrete_device *int3472, > "getting privacy LED GPIO\n"); > > if (polarity == GPIO_ACTIVE_LOW) > - gpiod_toggle_active_low(int3472->pled.gpio); > + gpiod_set_active_low(int3472->pled.gpio); > > /* Ensure the pin is in output mode and non-active state */ > gpiod_direction_output(int3472->pled.gpio, 0); Thanks. I agree that the new API is much better: Acked-by: Hans de Goede Feel free to merge this through the GPIO tree. Regards, Hans